13-54 13. OMRON
PLC_CTL
Macro command “PLC_CTL F0 F1 F2”
Contents F0 F1 (= $u n) F2
Read (specified with ASCII code)
Channel 1
1 - 8
(PLC1 - 8)
nStation number
4
n + 1 Command: 0
n + 2 Top address
n + 3 Word count: m
n + 4 to
n + (3 + m)
Read data
Write (specified with ASCII code)
Channel 1
1 - 8
(PLC1 - 8)
nStation number
4 + m
n + 1 Command: 1
n + 2 Top address
n + 3 Word count: m
n + 4 to
n + (3 + m)
Write data
Command process abort
1 - 8
(PLC1 - 8)
nStation number
2
n + 1 Command: 2
Data management
Channel 1
Data check command: compare
1 - 8
(PLC1 - 8)
nStation number
4
n + 1 Command: 3
n + 2 Top address
n + 3 Bytes
Data management
Channel 1
Data check command: calculation
1 - 8
(PLC1 - 8)
nStation number
4
n + 1 Command: 4
n + 2 Top address
n + 3 Bytes
Data management
Channel 1
Writing count management command:
subtraction
1 - 8
(PLC1 - 8)
nStation number
4
n + 1 Command: 5
n + 2 Top address
n + 3 Number of updates
Data management
Channel 1
Writing count management command:
addition
1 - 8
(PLC1 - 8)
nStation number
4
n + 1 Command: 6
n + 2 Top address
n + 3 Number of updates
Repeated writing
1 - 8
(PLC1 - 8)
nStation number
2
n + 1 Command: 7
Controller control
1 - 8
(PLC1 - 8)
nStation number
4
n + 1 Command: 8
n + 2
OUT1 operation
0: No operation
1: ON
2: OFF
n + 3
OUT2 operation
0: No operation
1: ON
2: OFF
n + 4
Current input status (IN1)
0: OFF
1: ON
n + 5
Current input status (IN2)
0: OFF
1: ON
n + 6
Output status after execution of operation (OUT1)
0: OFF
1: ON
n + 7
Output status after execution of operation (OUT2)
0: OFF
1: ON
Error information read out
1 - 8
(PLC1 - 8)
nStation number
2
n + 1 Command: 9
n + 2 to n + 4 Latest error log information (new)
n + 5 to
n + 91
Latest error log information (old), max. 29 logs
Abort (reset)
1 - 8
(PLC1 - 8)
nStation number
2
n + 1 Command: 10
Exit code acquisition
Channel 1
1 - 8
(PLC1 - 8)
nStation number
2
n + 1 Command: 12
n + 2
Exit code
*1