background image

Programming

19

TX-SK+ SoftKey Transmitter

AXCESS Keywords (Cont.)

TO (Cont.)

The channel or variable will act under the rules set by 
DEFINE_LATCHING, DEFINE_MUTUALLY_EXCLUSIVE, and 
DEFINE_TOGGLING. For more information, refer to the Channel Char-
acteristics section. You will learn about these definitions later, when you 
add more to your program.

WAIT

The WAIT keyword is used to activate functions after a specified delay 
time has elapsed. When a WAIT is encountered, Axcess places the 
WAIT statement into a list in memory and continues on with the rest of 
the program. 

After each pass through mainline, the Central Controller scans this wait 
list, and if any WAITS have come due, Axcess executes the statement or 
compound statement immediately following the expired WAIT keyword. 

• Up to 50 WAITS are allowed in the list at a time.

• Time is measured in tenths of a second. 

WHILE

Axcess checks to see if the condition following it is true, then either exe-
cutes statements within the WHILE statement, or continues to the next 
statements in the code.

Example:

DEFINE_VARIABLE

RELAY_INDEX              (* FOR TURNING ON RELAYS *)

DEFINE_PROGRAM

RELAY_INDEX = 1

WHILE (RELAY_INDEX <= 14)

{

  ON[RELAY,RELAY_INDEX]

  RELAY_INDEX = RELAY 1

}

In this example, the variable RELAY_INDEX is first set to 1. Next, the 
WHILE statement checks to see if RELAY_INDEX is less than or equal to 
14. Since it is (making the statement true), Axcess executes the com-
pound statement directly following the WHILE. Since RELAY_INDEX 
equals 1, the device-channel referenced by [RELAY,1] is turned on, and 
RELAY_INDEX is incremented by one. Then the program loops back to 
the WHILE statement. This loop continues until RELAY_INDEX becomes 
15; in this case the compound statement following the WHILE is not exe-
cuted, and Axcess continues to the rest of the program. This block of 
code effectively turns on the first 14 channels of device RELAY.

Summary of Contents for SoftKey TX-SK+

Page 1: ...instruction manual Transmitters TX SK SoftKey Transmitter...

Page 2: ...RMA is cancelled will be refused AMX is not responsible for products returned without a valid RMA number AMX Corporation is not liable for any damages caused by its products or for the failure of its...

Page 3: ...us 5 Contrast 5 Baud 5 Sleep timeout 5 Back light timeout 6 IR RF serial number 190 XXXX models only 6 IR serial number 194 XXX XXXX models only 6 RF serial number 194 XXX XXXX models only 6 Display c...

Page 4: ...ii TX SK SoftKey Transmitter Table of Contents Bitwise Operator Keywords 21 SoftKey Programming 22...

Page 5: ...o use menus that support a wide variety of wireless audiovisual equipment It includes 10 variable function SoftKey Pushbuttons TX SK wireless transmitter with serial number 194 XXX XXXX support 455 kH...

Page 6: ...with AMX format IR and RF codes using program control RS 232 Master Control Port programmable for bi directional RS 232 control commands using the RS 232 Master Control port Signal Types 38 kHz IR fre...

Page 7: ...maining menu pushbuttons can be programmed to display new menus transmit wireless commands or both Menu The MENU pushbutton opens the main menu BACK LIGHT The BACK LIGHT pushbutton toggles the back li...

Page 8: ...files for this feature are addressed as device 2 in TX SK transmitter RS 232 Control The TX SK s RS 232 Master Control port can be used for direct bi directional communication with an RS 232 controll...

Page 9: ...djacent to the appropriate baud rate FIG 5 to set the baud rate and port type as a master or RS 232 control port The current baud rate appears in the top left corner of the LCD Sleep timeout Press the...

Page 10: ...isables all IR or RF code transmissions IR serial number 194 XXX XXXX models only Press the IR pushbutton FIG 9 to set the IR frequency to 38 KHz 455 KHz or to off Off mode disables all IR transmissio...

Page 11: ...to ENABLED to upload or download AXCESS programs via a PC to AMX programming cable connection Set the port to DISABLED to transmit RS 232 control signals System information The System Information pag...

Page 12: ...pushbuttons simultaneously to open the SETUP page 2 Set DISPLAY CHANNELS to ON 3 Press the desired pushbutton and note the device and channel number that appears on the bottom line 4 Check AXCESS or...

Page 13: ...CESS or SKDesign programs to the TX SK The CC 232 DB 9 female connector to stereo mini plug cable connects directly to your PC s serial port and the TX SK The CC 232 DB 9 male connector to stereo mini...

Page 14: ...Pushbuttons and Menu Options 10 TX SK SoftKey Transmitter...

Page 15: ...turns to the statement directly following the CALL statement CANCEL_ALL_WAIT CANCEL_ALL_WAIT nullifies every WAIT currently in the list CANCEL_WAIT CANCEL_WAIT completely nullifies a WAIT removing it...

Page 16: ...program The process of defining them is very similar to defin ing devices Assigning a value to an identifier in this section locks that value to the identifier for the entire program making it possib...

Page 17: ...CardFrame These cards have device numbers 1 2 and 3 You also need to control a projection screen some drapes and lights Two relay cards one in slot 4 and one in slot 5 will handle these the first card...

Page 18: ...LY_EXCLUSIVE keyword The double period shortcut specifies a range of device channels to be defined as mutually exclusive For example DEFINE_MUTUALLY_EXCLUSIVE RELAY SCREEN_UP RELAY SCREEN_DOWN defines...

Page 19: ...d at 65 535 For example 10 20 65 525 DEFINE_VARIABLE TEMP Single variables BUFFER 1 Array variables INTEGER CAM_PRESET 1 Integers and variables When the system is turned off variables retain their val...

Page 20: ...e result STR ITOHEX 123 STR 7B STR ITOHEX CONST STR 1C8 STR ITOHEX VAR STR 315 Notice there are no dollar signs in the results This is because the dol lar sign indicates a numerical value expressed in...

Page 21: ...time remains the same value until it is changed in the program For example SET_PULSE_TIME 12 This sets the current duration of future PULSEs to 1 2 seconds It is always a good practice to return puls...

Page 22: ...an array to a specified value The length value of an array is used by several of the Axcess string operation keywords Max string size 64 characters Syntax SET_LENGTH_STRING string array number SET_PUL...

Page 23: ...sured in tenths of a second WHILE Axcess checks to see if the condition following it is true then either exe cutes statements within the WHILE statement or continues to the next statements in the code...

Page 24: ...en the opposite of a condition makes the expression true Example IF NOT X 2 If X 2 these statements are executed OR Typically used in IF statements to check for a true condition The logical opera tor...

Page 25: ...the byte is inverted that is each 1 bit becomes and vice versa The result of the operation can be tested with an IF statement or assigned to a variable Example X BNOT 1 X is equal to 155 BOR Performs...

Page 26: ...ING SOFTKEY 1B 1 THIS WILL PRINT AN INVERTED VIDEO BAR ON ROW 1 RETURN TO NORMAL VIDEO SEND_STRING SOFTKEY 1C 1 THIS WILL REMOVE THE INVERTED VIDEO BAR ON ROW 1 WRITE TO SPECIFIED PAGE SEND_STRING SOF...

Page 27: ...NS ON EACH LINE ROW YOU CAN HAVE EIGHT CHARACTERS OF TEXT NOTE BUTTONS ARE NUMBERED STARTING FROM THE TOP DOWN BUTTON NUMBER CORRESPONDING ROW 1 2 2 5 3 8 4 11 5 14 6 17 7 20 8 23 9 26 10 29 11 30 USU...

Page 28: ...A AUSTRALIA BELGIUM BRAZIL CANADA CHINA ENGLAND FRANCE GERMANY GREECE HONG KONG INDIA INDONESIA ITALY JAPAN LEBANON MALAYSIA MEXICO NETHERLANDS NEW ZEALAND PHILIPPINES PORTUGAL RUSSIA SINGAPORE SPAIN...

Reviews: