background image

Programming

16

TX-SK+ SoftKey Transmitter

AXCESS Keywords (Cont.)

IF

The IF statement provides conditional branching of program flow. 

Every IF statement must be followed by an expression enclosed in 
parentheses. This provides the beginning of a conditional execution of 
statements. For example:

IF (expression)

(* Statement 1 *)

If the expression is true, Axcess executes Statement 1 and then contin-
ues with whatever statements follow. If the expression is false, Statement 
1 is ignored. If Statement 1 is a compound statement, it must be 
enclosed in braces.

ITOA

ITOA stands for "integer to ASCII". It creates a string that represents the 
decimal value of a number. 

Example:

DEFINE_CONSTANT

CONST = 456

DEFINE_VARIABLE

STR[5]

VAR

DEFINE_PROGRAM

VAR = 789

STR = ITOA(123)          (* STR = '123' *)

STR = ITOA(CONST)        (* STR = '456' *)

STR = ITOA(VAR)          (* STR = '789' *)

The comment after each statement shows the value of the array STR 
after each assignment. The length value of STR is set to 3 in each case.

ITOHEX

ITOHEX stands for "integer to hexadecimal". It works in the same man-
ner as ITOA, except that the integer is transformed into a hexadecimal 
ASCII string.

If you substitute the ITOA keywords in the previous example with ITO-
HEX keywords, this would be the 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 hexadecimal, and is 
only used when telling Axcess that a number is hexadecimal.

LEFT_STRING

LEFT_STRING returns a string containing the number of characters 
specified starting at the beginning of the string.

For this keyword, you must specify two parameters: the string or array 
you are referencing and the number of characters you need. 

Example:

STR = LEFT_STRING (PRESETS,3)

After execution of this line, the array STR will contain the first 3 charac-
ters of the array PRESETS. If PRESETS contains the string 'HELLO', 
then STR will contain 'HEL.' Also, the length value of STR will be set to 3.

MID_STRING

This keyword returns the specified amount of characters starting at a 
specified location in the source string. Three parameters, rather than 
two, are needed for its operation: the string to reference, the position at 
which to start, and the number of characters to return.

Example:

STR = MID_STRING (PRESETS,2,3)

This line tells Axcess: "Place three characters from the array PRESETS, 
starting at location 2 and moving to the right, into the array variable 
STR." If PRESETS contains 'HELLO', this line will assign 'ELL' to the 
array STR. This keyword also will set the length value of the array receiv-
ing the result.

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: