3. Instructions
844
CS/CJ/NSJ Series Instructions Reference Manual (W474)
• When the input condition is met, self maintenance is performed by output A and IOWR(223) is
executed with each cycle until the Equals Flag turns ON. When the writing is completed and the
Equals Flag turns ON, output B turns ON and the self maintenance is cleared.
• Be sure to place condition flags directly after IOWR(223) instructions, and not after any other
instructions. If a condition flag is placed after another instruction, it will be affected by the execution
results of that instruction.
Precaution
• IOWR(223) can be used in an interrupt task, which allows high-speed processing of specific I/O data
with an interrupt. If IOWR(223) is used in an interrupt task, always disable cyclic refreshing of the
specified Special I/O Unit by turning ON the corresponding Special I/O Unit Cyclic Refreshing
Disable Bit in the PLC Setup.
• When cyclic refreshing of the specified Special I/O Unit is enabled in the PLC Setup (the
corresponding Special I/O Unit Cyclic Refreshing Disable Bit is OFF), a non-fatal Duplicate Refresh
Error will occur and the Interrupt Task Error Flag (A40213) will go ON in the following cases.
• Words allocated to the same Special I/O Unit were already refreshed by IORF(097) or
FIORF(225).
• Words allocated to the same Special I/O Unit were read or written by IORD(222) or IOWR(223).
Example Programming
In this example, IOWR(223) is used to write data.
D
D+1 D
CPU Unit
When CIO 0.00 is turned ON, the 10 words in D100 to D109
are written to the Special I/O Unit.
Number of words
to transfer: 10
Unit number: 3
The control code (C) varies depending on the Special I/O Unit.
Special I/O Unit (Unit #3)
10 words
0.00 10.00
10.00
20.00
20.00
D100
D100
#000A3
D109