Motion Coordinator Technical Reference Manual
Trio BASIC Commands 8-53
Input / Output Commands
INPUTS0 / INPUTS1
Type:
System Parameter
Description:
The
INPUTS0
parameter holds 24 volt Input channels 0..15 as a system parameter.
INPUTS1
parameter holds 24 volt Input channels 16..31 as a system parameter.
Reading the inputs using these system parameters is not normally required. The
IN(x,y) command should be used instead. They are made available in this format to
make the input channels available accessible to the
SCOPE
command which can only
store parameters.
INVERT_IN
Type:
Command.
Syntax:
INVERT_IN(input,on/off)
Description:
The INVERT_IN command allows the input channels 0..31 to be individually inverted
in software. This is important as these input channels can be assigned to activate
functions such as feedhold. The INVERT_IN function sets the inversion for one chan-
nel ON or OFF. It can only be applied to inputs 0..31.
Example1:
>>? IN(3)
0.0000
>>INVERT_IN(3,ON)
>>? IN(3)
1.0000
>>
KEY
Type:
Function.
Description:
Returns
TRUE
or
FALSE
depending on whether a character has been received on an
input device or not. This command does not read the character but allows the pro-
gram to test if any character has arrived. A true result will be reset when the char-
acter is read with
GET.
The
KEY
command checks the channel specified by
INDEVICE
or by a # channel
number.