A
A-3 Inner Workings of CP1L
SYSMAC CP1L Getting Started Guide
109
Ap
pend
ix
z
Execution by Instructions with Immediate Refresh Variation
If the immediate refresh variation has been specified for an instruction, and the
built-in I/O area has been specified as an operand, then I/O refreshing is performed
when the instruction is executed during the program execution cycle.
Note
1.
Immediate refreshing is possible on the built-in I/O area only.
For CP-series expansion (I/O) units, use the IORF instruction.
2.
Bit-specific instructions:
The channel (16 bits) containing the specified bit will be refreshed.
Channel-specified instruction:
The specified channel (16 bits) will be refreshed.
3.
Inputs and S (source) operands:
The input is refreshed immediately before executing the instruction.
Outputs and D (destination) operands:
The output is refreshed immediately after executing the instruction.
z
Executing IORF(I/O REFRESH) Instructions
IORF (I/O REFRESH) instructions can be used to refresh all I/O data or just the
data within the specified range, at a desired timing. IORF instructions refresh CP-
series expansion (I/O) units.
Note
IORF instructions take a relatively long time to execute. The execution time will
increase as the number of channels being refreshed increases. Hence, the total
cycle time may be extended. It should be noted that the total cycle time may be
increased significantly.
For details, refer to
SECTION 4 Instruction Execution Times and Number of Steps
of
CP Series CP1H/CP1L CPU Unit Programming Manual
(W451).
!LD
!OUT
100.00
!MOV
1
101
0.00
Immediate refresh
0 CH
100 CH
1 CH
101 CH
0
0
0
11
15
7
15
15
11
7
15
0
Actual I/O data (built-in I/O)
D1: Starting CH number
D2: Ending CH number
I/O channel data between D1 and D2 will be refreshed.
IOR F
D1
D2
W07E-EN-02+CP1L+GettingStartedGuide.book Seite 109 Montag, 15. September 2008 11:15 11