5-85
5 Understanding Programming
CJ2 CPU Unit Software User’s Manual
5-6 Instructions
5
5-6-4 I/O Refresh Timing
Additional Information
The following figure shows an example application of a DLNK(226) instruction.
Example: Data Links
If DLNK(226) is executed for a CPU Bus Unit that is busy refreshing data, data will not be refreshed
and the Equals Flag will turn OFF. Normally, the Equals Flag should be programmed as shown
below to be sure that refreshing has been completed normally.
END
DLNK
M
DLNK
N
Cyclic task n
Data links are refreshed here for the CPU
Bus Unit with unit number N.
Data links are refreshed here for the CPU
Bus Unit with unit number M.
Data links are all refreshed here for
Controller Link and SYSMAC Link.
Peripheral servicing
I/O refresh
DLNK
&0
Execution condition
Refreshes data for the CPU Bus
Unit with unit number 0.
Turns ON bit "a" if data
refreshing fails, enabling the
problem to be detected.
= Flag
Bit "a"