
163
Part 4 Commands
INB (Read I/O, 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
INB
Output, flag BCD digits
CC
[Function] Read the I/O ports or flags from the one specified in operand 1 for the number of digits
specified in operand 2, to variable 99 as a BCD.
15 14 13 12 11 10 9 8 Input port number
ON OFF OFF OFF OFF
ON
OFF
ON
85
Variable 99
(Note 1)
A maximum of eight digits (32 bits) can be input.
(Note 2)
The number of I/O ports and flags that can be used is 4 x n (digits).
(Note 3)
The data format used for read can be changed using a FMIO command (refer to the
explanation of the FMIO command).
[Example 1]
INB
8
2
Read input ports 8 through 15, to variable 99 as a
BCD.
[Example 2]
LET
1
8
Assign 8 to variable 1.
LET
2
2
Assign 2 to variable 2.
INB
*1
*2
Read the input ports from the content of variable 1
(input port 8) for the content of variable 2 (two digits)
(until input port 15), to variable 99 as a BCD.
Upper digit
Lower digit
8
5
164
Part 4 Commands
OUT (Write output, flag as binary)
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
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 data format used for read can be changed using a FMIO command (refer to the
explanation of the FMIO command).
[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.
166
Содержание X-SEL PX
Страница 1: ...Operation ManualSeventh Edition X SEL Controller PX QX Type Tenth Edition ...
Страница 2: ......
Страница 8: ......
Страница 14: ......
Страница 39: ...15 Part 1 Installation Reference Circuit Diagram Surge absorber Solenoid valve Controller 0 V 15 ...
Страница 410: ...383 Appendix 386 ...
Страница 452: ...425 Appendix 5 428 ...
Страница 559: ......