Installation guide

100 Programming Commands
EXOUT I/O Function
ACTION: Sets or returns the state of the specified expansion I/O outputs.
PROGRAM SYNTAX: EXOUT(nnn) - used in expression
EXOUT(nnn,len) - used in expression
EXOUT(nnn)=expression
EXOUT(nnn,len)=expression
REMARKS: The nnn is the I/O terminal point.
board1 board2 board3 board4
nnn= (100-147) or (200-247) or (300-347) or (400-447)
len is the number of I/O points. len range is 1-24.
SET SINGLE
OUTPUT SYNTAX: EXOUT(nnn)=expression
"expression" turns output nnn on (expression is non-zero) or off (ex-
pression=0).
EXAMPLES: EXOUT(207)=-3 'turns output 7 on board 2 on
EXOUT(207)=0 'turns output 7 on board 2 off
READ SINGLE
OUTPUT SYNTAX: EXOUT(nnn) - used in expression
returns the last output commanded (1 or 0) for this I/O pin.
Note: this is different from the state of the I/O pin.
EXAMPLES: EXOUT(207)=1 'board 2 output 7 is turned on.
A=EXOUT(207) 'A is set to 1 (last commanded output for 207).
SET MULTIPLE
OUTPUTS SYNTAX: EXOUT(nnn,len)=expression
The expression is evaluated and converted to an integer value. The least
significant "len" bits of the binary representation are then used to set
outputs "nnn" to "nnn+len-1" respectively.
EXAMPLES: EXOUT(207,3)=6.2 'sets outputs 207-209
6.2 is converted to integer 6, the binary representation of 6 is 110. Thus
output 207=off, output 208=on and output 209=on.
READ MULTIPLE
OUTPUTS SYNTAX: EXOUT(nnn,len) - used in an expression
Evaluates to a number corresponding to the last outputs commanded
(1or 0) for these I/O pins. The number is the binary weighted sum of the
last commanded outputs nnn to (nnn+len-1). Note: this is different from
the state of the I/O pins.
EXAMPLES: EXOUT(207,3)=4 'output 209=on, output 208=off and output
207=off.
A=EXOUT(208,2) 'A=2 since output 209=on and output 208=off.