IAI America SSEL User Manual
Page 151
129
Part 2 Programs
z OUTB (Write output, flag as BCD)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Optional
Optional
OUTB
Output, flag BCD digits
CC
[Function]
Write the value in variable 99 to the output ports or flags from the one specified in operand 1
for the number of digits specified in operand 2 as a BCD.
85
Variable 99
307 306 305 304
303
302
301
300
Output port number
ON OFF OFF OFF
OFF
ON
OFF
ON
(Note 1)
A maximum of eight digits (32 bits) can be output.
(Note 2)
The number of output ports and flags that can be used is 4 x n (digits).
(Note 3)
The write data format can be changed using a FMIO command (refer to the section on FMIO
command).
[Example 1]
OUTB
300
2
Write the value in variable 99 to the output ports from
300 for two digits (until output port 307) as a BCD.
[Example 2]
LET
1
300
Assign 300 to variable 1.
LET
2
2
Assign 2 to variable 2.
OUTB
*1
*2
Write the value in variable 99 to the output ports from
the content of variable 1 (output port 300) for the
content of variable 2 (two digits) (until output port 307)
as a BCD.