
165
Part 4 Commands
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 data format used for read can be changed using a FMIO command (refer to the
explanation of the 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.
166
Part 4 Commands
FMIO (Set IN, INB, OUT, OUTB command format)
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 FMIO Format
type
Prohibited CP
[Function] Set the data format for reading or writing I/O ports and flags with an IN, INB, OUT or OUTB
command.
[1] Operand 1 = 0 (Default status when a FMIO command has not been executed)
Data is read or written without being reversed.
(I/O, flag number upper)
(I/O, flag number lower)
01234567h
01h 23h 45h 67h
0000 0001 0010 0011 0100 0101 0110 0111
Variable 99
Temporary data
I/O port, flag status (0 = OFF, 1 = ON)
OUT(B) command
IN(B) command
[2] Operand 1 = 1
Data is read or written after its upper eight bits and lower eight bits are reversed every
16 bits.
(I/O, flag number upper)
(I/O, flag number lower)
01234567h
23h 01h 67h 45h
0010 0011 0000 0001 0110 0111 0100 0101
Variable 99
I/O port, flag status (0 = OFF, 1 = ON)
Temporary data
OUT(B) command
IN(B) command
[3] Operand 1 = 2
Data is read or written after its upper 16 bits and lower 16 bits are reversed every 32
bits.
(I/O, flag number upper)
(I/O, flag number lower)
01234567h
45h 67h 01h 23h
0100 0101 0110 0111 0000 0001 0010 0011
Variable 99
I/O port, flag status (0 = OFF, 1 = ON)
Temporary data
OUT(B) command
IN(B) command
168
Содержание 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: ......