2-353
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Basic I/O Unit Instructions
2
IORF
Units Refreshed by IORF(097)
Note CP1E CPU Unit built-in I/O area cannot be refreshed with IORF(097).
CP1E CPU Unit built-in I/O area can be refreshed with immediate refreshing specifications (!).
Function
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 Dis-
able Bit in the PLC Setup.
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.
The I/O refreshing initiated by IORF(097) will be stopped midway if an I/O bus error occurs during I/O
refreshing.
Sample program

Refreshing Words in the I/O Bit Area

When CIO 0.00 turns ON in the following example, CIO 2 to CIO 4 (36 inputs) are refreshed (1) and
then after the required processing is performed (2), CIO 104 (8 outputs) is refreshed (3).
Unit type CH Refreshable by IORF(097)
CPU Unit with
30 or 40 I/O
Points
CP1E CPU Unit built-in I/O: 0CH, 1CH, 100CH and 101CH No
CP1W Expansion I/O Unit: 2CH to 99CH, 102CH to 199CH Yes
CP1W Expansion Unit: 2CH to 99CH, 102CH to 199CH Yes
CPU Unit with
60 I/O Points
CP1E CPU Unit built-in I/O: 0CH, 1CH, 2CH, 100CH, 101CH and 102CH No
CP1W Expansion I/O Unit: 3CH to 99CH, 103CH to 199CH Yes
CP1W Expansion Unit: 3CH to 99CH, 103CH to 199CH Yes
NA-type CPU
Unit
CP1E CPU Unit built-in I/O: 0CH and 100CH No
CP1E CPU Unit built-in analog: 90CH, 91CH and 190CH Yes
CP1W Expansion I/O Unit: 1CH to 99CH, 101CH to 199CH Yes
CP1W Expansion Unit: 1CH to 99CH, 101CH to 199CH Yes
IORF(097) refreshes the I/O words between St and E,
inclusively. IORF(097) is used to refresh words allo-
cated to CP1W Expansion (I/O) Units. For 30 or 40 I/O
Points, Expansion (I/O) Units are allocated words
between CIO 002 and CIO 099, CIO102 and CIO199.
For 60 I/O Points, Expansion (I/O) Units are allocated
words between CIO 003 and CIO 099, CIO103 and
CIO199. For NA20 I/O Points, Expansion (I/O) Units
are allocated words between CIO 001 and CIO 099,
CIO101 and CIO199.
St
E
I/O refreshing
I/O bit area
CP1W Expansion Units,
CP1W Expansion I/O Units
IORF
2
4
0.00
St
E
St
E
IORF
104
104
St
E
015
0
15
St CIO 2
CIO 3
E CIO 4
CIO 104
CIO 2 and CIO 3
CIO 102 and CIO 103
CIO 4
CIO 104
(1)
(2)
(3) I/O refreshing
Processing
CPM1A Expansion I/O Units