Supported IOWR/IORD-Instructions
Section 4-5
87
4-5-3-3
(Re) Configure Unit
During operation of the Unit (PLC is in RUN/MONITOR-mode), the Unit can be
configured by using the IOWR-instruction from the PLC ladder program. Issuing
the IOWR-instruction from the PLC ladder program results in transferring all the
Unit configuration data to the Unit. The Unit configuration data consists of the data
in the Special I/O Unit DM Area and the Range/Comparison Data.
Example:
The Counter Unit is assigned Machine Number 2. You want to (re) configure the
Unit by transferring all the configuration settings to the Unit (the PLC is in RUN/
MONITOR-mode).
1. The configuration settings can also be transferred to the Unit by Powering Up
the CJ-series PLC system or by restarting the Unit.
2. The Counter Values remain unchanged after the “(Re) Configure Unit” instruc-
tion has been sent to the Unit.
!Caution
Before you make your ladder program operational, make sure that the IOWR-
instruction “(Re) Configure Unit” uses valid configuration data. If the Unit configu-
ration data contains invalid settings the Unit will
stop
operating and report the
error(s).
4-5-3-4
Error Clear Command
The error-codes of errors occurring at the Counter Unit are stored in the Unit and
are available to you as a Error History Log File (refer to section 5-2
for more details about the error categories that can be distinguished and filing
errors).
The error-codes generated by IORD/IOWR-instruction errors and Interrupt FIFO
Full errors can be cleared by issuing the Error Clear command (“EC”) with the
IOWR-instruction. After the errors have been cleared, they are still available to you
from the Error History Log File. To troubleshoot errors from other categories refer
to section 5-2
for the applicable remedy.
Item
IOWR
IORD
Control Code
No. of
Words
CC1
CC2
(Re) Configure Unit
Y
N
0D
01
1
IOWR(223)
#0D01
CC1= 0D, CC2= 01
-
S=Not relevant (fill in valid constant, e.g. D0300 containing #0000)
#00010002
D= #0002 (Machine Number) and D+1= #0001 (# words)
Item
IOWR
IORD
Control Code
No. of
Words
CC1
CC2
Clear Error(s)
Y
N
EC
00
1