Altinex MT101-114, MT101-115, MT101-117 Subroutine Commands, Rds, ALL Subroutines are Empty, Wrs

Page 23

MULTITASKER

SUBROUTINE COMMANDS

49.{RDS}

This command reads and displays the contents of one or all subroutines.

Command Format: {RDSn}

n= Sub ID (n = # from 1 to 180, * for all) Example 1: (Display one subroutine.)

Display the contents of SUB1 by sending {RDS1} and the system will display the subroutine number and its contents. The display will be in the following format:

SUB001: LED*=0, LED1=1...............

OK

SUB001

= subroutine number

LED*=0, LED1=1

= stored functions

OK

= done

Example 2: (Display all subroutines.)

Display all the subroutines. Send the command {RDS*} and the display will be in the following format:

SUB001: ON1C2, OFFC3, LED36=1.........

SUB002: ON2C2, OFF3C3, LED2=1.........

SUB005: ON3C2, OFF6C3, LED3=0.........

OK

NOTE: Empty subroutines will NOT be displayed. If all the subroutines are empty, the following will be displayed:

ALL SUBROUTINES ARE EMPTY

50.{WRS}

This command appends functions to a subroutine. The subroutine contents may be cleared using the {CLRS} command. The command length is limited only by available memory, but no more than 30 characters should be sent in a single write statement.

Subroutines for front panel control most often perform actions when a key is pressed. It is a good programming practice to make the subroutine number relate to the key number.

For example, Key 12 is used to perform functions stored in subroutines 12 or 112 depending on the state the key. The control may be passed to SUB12 if the key is pressed when the LED is off and the control will be passed to SUB112 if the key is pressed when the LED is flashing.

Example:

Key # = SUB#

LED is OFF

=SUB#+50 .....LED is ON

=SUB#+100 ...LED is FLASHING

=SUB#+150 ...Key is Pressed & Held Key 10= SUB10 .........LED is OFF

=SUB60 .........LED is ON

=SUB110 .......LED is FLASHING

=SUB160 .......Key is Pressed & Held Key 10= {WRK10=10,60,110,160,0}

COMPLETE FUNCTIONS Command Format: {WRSn=F1,F2,…}

Sn

=

Subroutine ID (n = # from 1 to 180)

F1,F2

=

Functions must be separated by a

Example 1:

comma.

 

Program SUB1 with the following functions: ON1C3, ON2C3, and LED1=1. Send the following command :

{WRS1=ON1C3, ON2C3, LED1=1}

Add more functions such as ON3C3 and ON4C3 to the subroutine. Each write statement is appended to the functions that are already stored in the subroutine. Therefore, to add the functions ON3C3 and ON4C3, it is only necessary to send the following command:

{WRS1=ON3C3, ON4C3}

400-0402-003

22

Image 23
Contents MT101-114/115/117 Table of Contents General Precautions / Safety WarningsInstallation CleaningMT101-114/115/117 Electrical Technical SpecificationsMT101-114/115/117 General KEY Number Locations Product DescriptionDiagram 1 Installation Instructions Application DiagramsSubroutines Diagram 2 Sample Matrix SetupMultiTasker Computer Control System AC Power Cord Before Opening the EnclosureOperation DisconnectKEY Programming POWER-UP SUB1 U0/U1Saving Card Configurations Identify Unit IDRS-232 Protocol RS-232 Connection 1 RS-232 CommunicationSET Description of CommandsRS-232 Commands VERIDUi RESDFB EFBRMC STA1STA0 12. WRBEEPn RateRATE= RATE=STXM BaudBAUD= TXRHelp Xyz27. @xyz TestClfc LED CommandsLEDn= LEDm-nRDK STAWRK KEY8= 8,108,0,0,0 Speakers VolumeKEY ClrkLock Unlk or UnlockRdsk RdlkWrlk ClrlkUplk ClrvkWRS Subroutine CommandsRDS ALL Subroutines are EmptyWRS=S Matrix FunctionsWait SUBClrs Subroutines are ClearedDFB VERSET RESTroubleshooting Guide Toll Free 1-800-ALTINEX Limited WARRANTY/RETURN Policies Contact InformationAltinex Policies