![background image](http://html1.mh-extra.com/html/amx/softkey-tx-sk/softkey-tx-sk_instruction-manual_2939359022.webp)
Programming
18
TX-SK+ SoftKey Transmitter
AXCESS Keywords (Cont.)
RELEASE
The RELEASE keyword is used in the same way as PUSH, except the
operation underneath a RELEASE statement will be executed if the cor-
responding button is released.
RELEASE_CHANNEL
RELEASE_CHANNEL stores the channel whose button was most
recently released.
This system variable is used in a program in the same manner as
PUSH_CHANNEL.
Note
: PUSH_CHANNEL and RELEASE_CHANNEL cannot both have a
non-zero value during the same pass through mainline. At least one of
them will always be zero.
RIGHT_STRING
This keyword requires the same parameters as LEFT_STRING. How-
ever, RIGHT_STRING begins reading at the end of the string array for
the specified amount of characters.
Example:
STR = RIGHT_STRING (PRESETS,2)
Assuming PRESETS still contains 'HELLO', replacing LEFT_STRING in
the previous example with RIGHT_STRING will assign the string 'LLO' to
STR. This keyword also will set the length value of the array receiving the
result.
SEND_STRING
Sends a string to a specific Axcess device. In some cases, a sequence
of strings can be interpreted as a command by the device.
Syntax:
SEND_STRING device, 'string'
SET_LENGTH_STRING
Sets the length value of 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_PULSE_TIME
To set the length of time for PULSE, use the keyword
SET_PULSE_TIME.
Time is measured in tenths of seconds, and the default is one half-sec-
ond. The PULSE time remains the same value until it is changed in the
program. Here is an example of SET_PULSE_TIME:
SET_PULSE_TIME(12)
This sets the current duration of PULSEs to 1.2 seconds. It recom-
mended that you return pulse time to the default setting of .5 seconds, as
in the following example:
SET_PULSE_TIME(5)
TO
The TO keyword is used to activate a channel or variable for as long as
the corresponding device-channel of its PUSH statement is activated.
When the device-channel referenced by the PUSH statement changes
from off to on, the TO activates the device-channel or variable in the
brackets following it. When the device-channel of its PUSH is released,
the TO statement stops activating its device- channel or variable. For this
reason, TO must be placed underneath a PUSH statement.
The TO keyword has several conditions:
• It must be used only below a PUSH statement.
• It cannot be used with the WAIT keyword. For detailed information,
refer to Multiple Waits in the Waits and Timer Keywords section.
• It cannot be placed in the DEFINE_START section.