EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 54

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
21
Programming Concepts Section 1-1
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.
Immediate Refresh
Instructions with Refresh
Variation (!)
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.
Units Refreshed for
IORF(097)
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.
CIO 1
15 0
CIO 2
15 0
CIO 3
15 0
CIO 4
15 0
Top
! LD 1.01
! OUT 2.09
END
END
Top
! MOV 3 4
I/O refresh
Cyclic refresh
(batch processing)
16-bit unit
s
16-bit unit
s
All real data

Table of Contents

Related product manuals