IAI America XSEL-KX User Manual
Page 117
![background image](/manuals/350295/117/background.png)
101
Part 4 Commands
OUT (Write output, flag as binary)
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command, declaration
Output
(Output, flag)
Command,
declaration
Operand 1
Operand 2
Optional
Optional
OUT
Output, flag Output, flag
CC
[Function]
Write the value in variable 99 to the output ports or flags from the one specified in operand 1
through the other specified in operand 2.
133
Variable 99
Upper
Lower
1
0
0
0
0
1
0
1
Binary
307
306
305
304
303
302
301
300
Output port number
ON
OFF
OFF
OFF
OFF
ON
OFF
ON
(Note 1)
A maximum of 32 bits can be output.
(Note 2)
The write data format can be changed using a FMIO command.
(Refer to the FMIO command.)
(This function is available in main application version 0.25 or later.)
[Example 1]
OUT
300
307
Write the value in variable 99 to output ports 300
through 307 as a binary.
[Example 2]
LET
1
300
Assign 300 to variable 1.
LET
2
307
Assign 307 to variable 2.
OUT
*1
*2
Write the value in variable 99 to the output ports from
the content of variable 1 (output port 300) through the
content of variable 2 (output port 307) as a binary.