Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 813

Table of Contents

Advertisement

Precaution
• IORF(097) can be used in an interrupt task, which allows high-speed processing of specific I/O data
with an interrupt. If IORF(097) 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).
• When cyclic refreshing of a Special I/O Unit is disabled, execute IORF(097) or FIORF(225) to refresh
the Unit's data within 11 seconds after program execution starts. If IORF(097) or FIORF(225) is not
executed within 11 seconds to refresh the Unit's data, a CPU Unit Monitor Error will occur in the
Special I/O Unit and the ERH and RUN Indicators will be lit.
• If words for which there is no Unit mounted exist between St and E, nothing will be done for those
words and only the words allocated to Units will be refreshed.
• An error will occur if words in both the I/O Area (CIO 0000 to CIO 0999) and the Special I/O Unit Area
(CIO 2000 to CIO 2959) are specified for the same instruction.
• Both C200H Special I/O Units and CS Special I/O Units can be refreshed using the same instruction.
(CS Series only)
• All of the words allocated to C200H Group-2 High-density I/O Units must be refreshed at one time.
The Unit's I/O words will be refreshed if the first word allocated to the Unit is in the specified range of
I/O words. (The Unit's words will not be refreshed if the starting word is after the first word allocated
to the Unit, but they will be refreshed even if the end word is before the last word allocated to the
Unit.) (CS Series only)
• I/O refreshing will not be performed for Units for which an I/O table error has occurred. (CS Series
only)
• The I/O refreshing initiated by IORF(097) will be stopped midway if an I/O bus error occurs during I/O
refreshing.
Example Programming
Refreshing Words in the I/O Area
The following example shows how to refresh 16 words from CIO 15 to CIO 30 when CIO 0.00 turns ON.
0.00
St
E
Refreshing Words in the Special I/O Unit Area
The following example shows how to refresh 30 words from CIO 2000 to CIO 2029 when CIO 0.00 turns
ON.
0.00
St
E
CS/CJ/NSJ Series Instructions Reference Manual (W474)
St:
I/O refreshing
E:
St:
E:
I/O Unit
Special I/O Unit
I/O refreshing
3. Instructions
3
777

Advertisement

Table of Contents
loading

Table of Contents