Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 54

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Programming Concepts
Immediate Refresh
Instructions with Refresh
Variation (!)
Units Refreshed for
IORF(097)
Top
! LD 1.01
! OUT 2.09
END
Top
! MOV 3 4
END
I/O refresh
Execute IORF(097) for all required words or use instructions with the immedi-
ate refresh option prior to the END(001) instruction if I/O refreshing is required
in other tasks.
I/O will be refreshed as shown below when an instruction is executing if an
real I/O bit in the built-in I/O of the CPU Unit is specified as an operand.
• When a bit operand is specified for an instruction, I/O will be refreshed for
the 16 bits of the word containing the bit.
• When a word operand is specified for an instruction, I/O will be refreshed
for the 16 bits that are specified.
• Inputs will be refreshed for input or source operand just before an instruc-
tion is executed.
• Outputs will be refreshed for outputs or destination (D) operands just after
an instruction is execute.
Add an exclamation mark (!) (immediate refresh option) in front of the instruc-
tion.
Note
Immediate refreshing is not supported for real I/O data allocated to CP-
series/CPM1A Expansion Units or Expansion I/O Units, but IORF(097) is sup-
ported for them.
An I/O REFRESH instruction (IORF(097)) that refreshes real I/O data in a
specified word range is available as a special instruction for CP-
series/CPM1A Expansion Units and Expansion I/O Units. All or just a speci-
fied range of real I/O bits can be refreshed during a cycle with this instruction.
Note
IORF(097) cannot be used for real I/O bits allocated to the built-in I/O of the
CPU Unit. Use instructions with the immediate refresh option for this I/O.
IORF(097) can also be used to refresh words allocated to CJ-series Special
I/O Units.
15
CIO 1
15
CIO 2
15
CIO 3
15
CIO 4
Cyclic refresh
(batch processing)
All real data
Section 1-1
0
16-bit units
0
0
16-bit units
0
21

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents