4 Understanding Programming
4-22
CP2E CPU Unit Software User’s Manual(W614)
The following methods are used to refresh external I/O.
•
Cyclic refreshing
•
Immediate refreshing (instructions with the ! variation and IORF)
I/O is all refreshed after ladder programs are executed.
Execute an instruction with the immediate refresh variation or an IORF instruction to perform I/O
refreshing while ladder programming is being executed.
The method of specifying immediate refreshing depends on whether the object to be refreshed is built-
in I/O or an Expansion Unit.
•
To specify immediate refreshing for the CPU Unit
’
s built-in I/O, specify the immediate refresh variation
(!) of the instruction.
•
To specify immediate refreshing for Expansion I/O or an Expansion Unit, use the IORF instruction.
z
Instructions with Refresh Variation (!)
Add an exclamation mark (!) in front of the instruction to specify immediate refreshing.
I/O will be refreshed as shown below when an instruction is executing if a real I/O bit in the CPU
Unit
’
s built-in I/O is specified as an operand.
•
Bit Operands: I/O refreshing for the bit will be performed.
•
Word Operands: I/O refreshing for the 16 specified bits will be performed.
•
Input or Source Operands: Inputs are refreshed immediately before the instruction is executed.
•
Output or Destination Operands: Outputs are refreshed immediately after the instruction is executed.
z
IORF(097) Instruction
An I/O refresh (IORF) instruction is supported as a special instruction to refresh actual I/O data in
the specified word range. By using this instruction, it is possible to refresh all data or data in a spec-
ified range of actual I/O in CP-series Expansion I/O and Expansion Unit during the cycle.
Precautions for Correct Use
Precautions for Correct Use
It is not possible to use the immediate refresh variation (!) for the actual I/O of Expansion I/O or
an Expansion Unit. Use the IORF instruction.
4-4-7
I/O Refresh Timing
Cyclic Refreshing
Immediate Refresh
Start
LD1.01
OUT2.09
E
N
D
I/O refresh
CIO 0001
15
0
CIO 0002
15
0
16-
b
it increments
All act
u
al I/O data
Cyclic refreshing
(
b
atch)
Содержание SYSMAC CP Series
Страница 1: ...USER S MANUAL Cat No W614 E1 01 SYSMAC CP Series CP2E E D CP2E S D CP2E N D CP2E CPU Unit Software ...
Страница 3: ......
Страница 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Страница 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Страница 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Страница 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Страница 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Страница 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Страница 577: ......