background image

Programming

13

TX-SK+ SoftKey Transmitter

AXCESS Keywords (Cont.)

DEFINE_CONSTANT (Cont.)

More than one constant can have the same number. For example, PLAY 
and FWD can both equal 1. You may see this if two cards do not have the 
same channels for the same functions. For example, PLAY on the VCR 
control card might be channel 1, and FWD on the slide control card could 
also be channel 1.

By definition, the same constant cannot reference more than one num-
ber. This might seem obvious, but this type of error could work its way 
into larger programs. If you make this mistake, Axcess notifies you with a 
DUPLICATE SYMBOL error message upon compiling.

DEFINE_DEVICE

When you start writing a program, label each device in the system. Each 
device on AXlink must have a unique device number. For example, card 
1 may have device number 1, and card 2 may have device number 2. 
Whenever you use this device name in your program, Axcess will auto-
matically use the corresponding device number to reference the device. 
This is the function of the DEFINE_DEVICE section. It is placed at the 
beginning of the program, and allows you to name the devices. 

However, with a long list of devices connected to AXlink, these numbers 
can be difficult to remember. Assigning actual names to these devices is 
much easier.

The first step in writing a program is defining the devices in your system. 
For example, you have a VCR, a CD player, and a cassette deck, and 
you are controlling them with the first three cards in your 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 handles both the screen 
and drapes). A Touch Panel will be used to control all of these devices. 
Your DEFINE_DEVICE section should look like this:

Note

: The devices included in this code are used for example purposes 

only. It is not a specific recommendation or endorsement.

DEFINE_DEVICE

VCR           = 1         (* AXC-IR/S: VCR *)

CD            = 2         (* AXC-IR/S: CD PLAYER *)

CASS          = 3         (* AXC-REL8: VCR *)

RELAY         = 4         (* AXC-REL8: SCREENS AND DRAPES 

*)

LIGHTS        = 5         (* AXC-REL8: LOW VOLTAGE 

LIGHTING *)

VPROJ         = 6         (* AXC-IR/S: PROJECTOR *)

TP            = 128       (* AXU-CVA COLOR VIDEO PANEL *)

From this point on, you can reference device 1 with the name VCR, 
device 2 with the name CD, and so on.

The Push window at the bottom of the screen is changed. If the devices 
in the previous example are on AXlink, Axcess modifies the window to 
use the given device name instead of the device's number. This provides 
a quick reference tool for future programming.

There is one more reason for using DEFINE_DEVICE. When you com-
pare devices using the Compare Current Devices... option in the Diag-
nostics menu, Axcess checks all the devices listed under 
DEFINE_DEVICE. Next, it checks which devices are on AXlink. Axcess 
then tells you the devices that you did not define in your program. These 
devices cannot be used or referenced until they are defined, so check 
that all devices are under this heading.

AMX encourages the practice of starting control panel device numbers at 
device 128. This includes radio frequency (RF) receivers, touch panels, 
softwire panels, and all other control panels and receivers.

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: