Omron SYSMAC CS Series Instruction & Reference Manual page 796

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

3. Instructions
• 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.
0.00
10.00
20.00
D100
D109
762
When CIO 0.00 is turned ON, the 10 words in D100 to D109
are written to the Special I/O Unit.
D100
D
#A0003
10.00
20.00
CPU Unit
10 words
D+1
Number of words
to transfer: 10
The control code (C) varies depending on the Special I/O Unit.
Special I/O Unit (Unit #3)
CS/CJ/NSJ Series Instructions Reference Manual (W474)
D
Unit number: 3

Advertisement

Table of Contents
loading

Table of Contents