10 CPU Unit Functions
10-82
CJ2 CPU Unit Software User’s Manual
Synchronous unit operation is performed using the following flow.
1 The Synchronous Units synchronize internal processing with each other and send synchronous
input data to the CPU Unit once each synchronous operation cycle.
2 The CPU Unit stores the synchronous data in memory and executes an interrupt task for syn-
chronous unit operation. This interrupt task is called the synchronous interrupt task.
3 The CPU Unit sends the results of the synchronous interrupt task to all of the Synchronous Units
as synchronous output data.
Overall Flow of Synchronous Unit Operation
Item Description
Synchronous data
refresh
Synchronous data is refreshed between the CPU Unit and Synchronous Units on the
synchronous operation cycle, which is not affected by the normal cycle time of the
CPU Unit. A special area called the Synchronous Data Refresh Area is allocated for
synchronous data refreshing. The data in this area is exchanged between the Units as
synchronous data.
Synchronous
input data refresh
The input data for the synchronous data refresh is sent from the Synchronous Units to
the CPU Unit.
Synchronous out-
put data refresh
The output data for the synchronous data refresh is sent from the CPU Unit to the Syn-
chronous Units.
Synchronous operation
cycle
The synchronous operation cycle is used to generate the synchronous signal, which is
used to synchronize the timing of internal processing in the Synchronous Units. This
cycle is also used to refresh synchronous data.
Synchronous Units
CJ2 CPU Unit
Normal cyclic
processing
Write a program for synchronous unit operation, such as for digital cam control.
1. Synchronous input data refresh
3. Synchronous output data refresh
2. Synchronous interrupt task
Interrupted
Internal processing
Interrupt
task
Synchronous
operation cycle
1. Synchronous input data refresh
3. Synchronous output data refresh
2. Synchronous interrupt task
CPU Unit
Synchronous Unit A
Synchronous Unit B
Synchronous signal
Time
Synchronous signal
Synchronous
operation cycle
Synchronous
operation cycle
Interrupt
task
Interrupt
task
Internal processing
Internal processing
Internal processing
Internal processing
Internal processing
Power turned ON to PLC