background image

MULTITASKER

400-0402-003

22

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

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=F

1

,F

2

,…}

Sn

= Subroutine ID (n = # from 1 to 180)

F

1

,F

2

… = Functions must be separated by a 

comma.

Example 1: 

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}

Содержание MULTITASKER MT101-114

Страница 1: ...MULTITASKER MANUAL PART NUMBER 400 0402 003 FRONT PANELS FOR THE 12 SLOT MULTITASKER USER S GUIDE MT101 114 115 117 The MT101 115 is pictured above...

Страница 2: ...COMMANDS 10 SYSTEM COMMANDS 10 GROUP COMMANDS 12 CONFIGURATION COMMANDS 13 SPECIAL COMMANDS 14 LED COMMANDS 16 KEY COMMANDS 17 SUBROUTINE COMMANDS 22 SUMMARY OF COMMANDS 25 CONTROL SOFTWARE 26 MENU M...

Страница 3: ...an surfaces with a dry cloth Never use strong detergents or solvents such as alcohol or thinner Do not use a wet cloth or water to clean the unit 1 4 FCC NOTICE This device complies with Part 15 of th...

Страница 4: ...nctions The key layout on the MT101 115 117 resembles a typical switcher or matrix switcher configuration with larger keys used for input output control and smaller keys used for special features The...

Страница 5: ...2 RS 232 36 PROGRAMMABLE BUTTONS RS 232 CONTROL FROM FRONT PANEL FROM FRONT PANEL RS 232 CONTROL MT101 115 117 MT101 114 MT101 115 117 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25...

Страница 6: ...re headers PCB A and PCB B as shown Connect power from the power supply connector as shown LARGE 8 PIN HEADER on PCB A and PCB B Connect the ribbon cable from the rear DB9 connector on the rear of the...

Страница 7: ...WRS22 SEL2C8 for vol adj 2 WRS23 SEL3C8 3 WRS24 SEL4C8 4 WRS25 SEL5C8 5 WRS26 SEL6C8 6 WRS27 SEL7C8 7 WRS28 SEL8C8 8 KEYS WRK1 0 0 0 1 0 Press Hold to clear LEDs WRK2 2 52 0 0 0 Turn Group 1 On Off WR...

Страница 8: ...r The unit is now operational OPERATION 7 The key programs and subroutines described in this section may be programmed on the fly or saved in a text file and downloaded to the MultiTasker using commun...

Страница 9: ...roup of keys for Matrix card input and output selections Input Selection Keys 13 28 Output Selection Keys 29 36 Card Selection Keys 7 12 Using these conventions the LEDs will flash automatically showi...

Страница 10: ...capabilities which are accessible through standard RS 232 communication Control can be accomplished using a computer a control system or any other device capable of sending RS 232 commands The factor...

Страница 11: ...this section are organized into the following groups System Commands Group Commands Configuration Commands Special Commands LED Commands Key Commands Subroutine Commands SYSTEM COMMANDS System command...

Страница 12: ...set to 10 and there is a signal detected Send the command C2 to receive the following status MT103 121C02 VR690 0197 005C02 ONC02 EQ10C02 SI1C02 All status feedback is enclosed in brackets Each data...

Страница 13: ...y sending the command WRC2C4C6G5 After executing this command G5 will consist of C2 C4 and C6 Now add C8 to G5 by sending WRC8G5 C8 is added to G5 and G5 is not overwritten View the contents of G5 by...

Страница 14: ...tween each command stored in a subroutine Only skilled programmers should use this command Command Format RATE n n rate x100msec n from 0 20 Example Set the communication rate to 0 by sending the comm...

Страница 15: ...d for 2 5 seconds the key representing the desired baud rate 4 After 2 5 seconds all 4 LEDs will be extinguished 5 The new baud rate is set SPECIAL COMMANDS These commands allow special character stri...

Страница 16: ...and string Command Format x y z x y z text string a b c or 1 2 3 or Example Send the command string abc 123 xyz to the RS 232 bus The string will be ignored by the MultiTasker but not the unit receivi...

Страница 17: ...e LEDs for a single matrix card This command is used in conjunction with the STA command Command Format CLFCn Cn card number n is from 1 to max slots Example Key 2 on the front panel is programmed wit...

Страница 18: ...connections In either case all connections would be indicated Selecting an input key will show all the outputs to which the input is connected An output key will show only the one input to which it is...

Страница 19: ...t states so it can be assigned to execute five different subroutines The following table shows the state number and the condition a key must be in for the subroutine assigned to a particular state to...

Страница 20: ...the locked unlocked status of the keys 39 UNLK or UNLOCK This command will unlock one key or all keys Command Format UNLKn or UNLOCKn n Key n from 1 to 36 for all Example 1 The command UNLK1 unlocks K...

Страница 21: ...and RDK12 and verifying the feedback is as follows KEY 12 012 000 000 000 000 CONF_RM_MON 44 CLRLK This command is used to clear the key label for one key or for all keys Command Format CLRLKn Kn Key...

Страница 22: ...the same key program There are two parts to the key program file The first contains the subroutine information and the second the label information SUBROUTINE Format Key subroutines Example 0 1 1 5 1...

Страница 23: ...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...

Страница 24: ...informs the controller that the function pieces are to be joined together When joined together the function pieces must define a legal command or the function will be ignored Matrix Functions Example...

Страница 25: ...message is displayed as follows PLEASE WAIT 20 SECONDS SUBROUTINES ARE CLEARED 55 TEST This command performs a destructive test of the memory buffer keys and LEDs All subs will be erased during this t...

Страница 26: ...command 26 x y z Bypass command for ISM5000 27 x y z Bypass command for ISM5000 28 TEST Test memory nondestructive 29 HELP Display available commands LED Commands 30 LEDn Set a single LED 31 LEDm n S...

Страница 27: ...ith unit ID 1 5 The system then interrogates all the cards in its enclosure and then lists the cards Example 01 MT103 122 02 MT103 123 04 MT104 130 6 Enter the 2 digit ID and a menu for the card will...

Страница 28: ...wer voltage is incorrect Solution Make sure that the input power range is within 85 264 VAC and also make sure that the power is connected to the input power connector If there is still a problem call...

Отзывы: