![background image](http://html1.mh-extra.com/html/omron/cj1g-cpu-series/cj1g-cpu-series_programming-manual_742489059.webp)
38
Basic Concepts
Section 2-1
2-1-10 Refresh Timing
The following methods are used to refresh external I/O.
• Cyclic refresh
• Immediate refresh (! specified instruction, IORF instruction)
Refer to the section on CPU Unit operation in the CS/CJ Series Operation
Manual for details on the I/O refresh.
Cyclic Refresh
Every program allocated to a ready cyclic task or a task where interrupt condi-
tion has been met will execute starting from the beginning program address
and will run until the END(001) instruction. After all ready cyclic tasks or tasks
where interrupt condition have been met have executed, cyclic refresh will
refresh all I/O points at the same time.
Note Programs can be executed in multiple tasks. I/O will be refreshed after the
final END(001) instruction in the program allocated to the highest number
(among all ready cyclic tasks) and will not be refreshed after the END(001)
instruction in programs allocated to other cyclic tasks.
Execute an IORF instruction for all required words 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 is specified as an operand.
CIO 0001
15
0
CIO 0002
15
0
CIO 0003
15
0
CIO 0004
15
0
Top
I/O refresh
Top
Cyclic refresh
(batch processing)
All real data
16-bit units
16-bit units
! LD 000101
! OUT 000209
END
! MOV 0003
END
Units
Refreshed data
C200H Basic I/O Units (CS Series only)
I/O will be refreshed for the 16 bits con-
taining the bit.
CJ Basic I/O Units
Summary of Contents for CJ1G-CPU series
Page 3: ...iv...
Page 5: ...vi...
Page 21: ...xxii Conformance to EC Directives 6...
Page 169: ...148 Task Control Instructions Section 3 32...
Page 203: ...182 Programming Device Operations for Tasks Section 4 4...
Page 253: ...232 Using File Memory Section 5 3...
Page 337: ...316 Other Functions Section 6 11...
Page 347: ......
Page 369: ......
Page 373: ......
Page 379: ......
Page 381: ...360 Revision History...