Omron SYSMAC CP Series Instruction & Reference Manual page 389

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

Units Refreshed by IORF(097)
Unit type
CPU Unit with
CP1E CPU Unit built-in I/O: 0CH, 1CH, 100CH and 101CH
30 or 40 I/O
CP1W Expansion I/O Unit: 2CH to 99CH, 102CH to 199CH
Points
CP1W Expansion Unit: 2CH to 99CH, 102CH to 199CH
CPU Unit with
CP1E CPU Unit built-in I/O: 0CH, 1CH, 2CH, 100CH, 101CH and 102CH
60 I/O Points
CP1W Expansion I/O Unit: 3CH to 99CH, 103CH to 199CH
CP1W Expansion Unit: 3CH to 99CH, 103CH to 199CH
NA-type CPU
CP1E CPU Unit built-in I/O: 0CH and 100CH
Unit
CP1E CPU Unit built-in analog: 90CH, 91CH and 190CH
CP1W Expansion I/O Unit: 1CH to 99CH, 101CH to 199CH
CP1W Expansion Unit: 1CH to 99CH, 101CH to 199CH
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
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.
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).
0.00
St
E
Processing
St
E
CP1E CPU Unit Instructions Reference Manual(W483)
CH
IORF
(1)
2
4
(2)
15
St CIO 2
(3)
IORF
CIO 3
104
E CIO 4
104
15
St
CIO 104
E
Refreshable by IORF(097)
No
Yes
Yes
No
Yes
Yes
No
Yes
Yes
Yes
I/O bit area
St
E
CPM1A Expansion I/O Units
0
CIO 2 and CIO 3
I/O refreshing
0
CIO 102 and CIO 103
2 Instructions
CP1W Expansion Units,
CP1W Expansion I/O Units
I/O refreshing
CIO 4
CIO 104
2-353
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents