8-48 Trio BASIC Commands
Input / Output Commands
Trio Motion Technology
The
DEFKEY
command can be used to re-define what numbers are to be put in the
variable when a key is pressed on a MEMBRANE keypad or Mini-Membrane keypad
interfaced using an FO-VFKB module. To use the
DEFKEY
table the values are read
using
GET#3
:
GET#3,k
The key numbers of the membrane keypad are shown in chapter 5 of this manual.
To each of these key numbers is assigned a value by the
DEFKEY
command that is
returned by a
GET#3
command.
Parameters:
Example:
The command
DEFKEY (33,13
) would therefore be used to generate 13 when the
first key on row 3 of a pad was pressed. Note
DEFKEY
can only be used to redefine
input on channel#3.
FLAG
Type:
Command/Function
Syntax:
FLAG(flag no [,value])
Description:
The
FLAG
command is used to set and read a bank of 32 flag bits. The
FLAG
com-
mand can be used with one or two parameters. With one parameter specified the
status of the given flag bit is returned. With two parameters specified the given flag
is set to the value of the second parameter. The
FLAG
command is provided to aid
compatibility with earlier controllers and is not recommended for new programs.
012345678910
11 12 13 14 15 16 17 18 19 20 21
22 23 24 25 26 27 28 29 30 31 32
33 34 35 36 37 38 39 40 41 42 43
44 45 46 47 48 49 50 51 52 53 54
key no:
start key number
keyvalue1:
value returned by start key through a
GET
or
GET#3
command.
keyvalue2..
keyvalue11:
values returned by successive keys through a
GET
or
GET#3
command.