Application Example - Omron CJ2 CPU - REV 10-2010 User Manual

Cj2 cpu unit software
Table of Contents

Advertisement

Item
Synchronous interrupt
task
Overview of Settings for Synchronous Unit Operation
The following settings are used for synchronous unit operation.
Item
Synchronous unit operation
Synchronous data refresh
Synchronous operation cycle
Synchronous interrupt task

Application Example

Synchronizing Operation between Servomotors
In this application, the operation of some servomotors is synchronized according to the operation of
an encoder. Here, synchronous data input to the CPU Unit from a High-speed Counter Unit is pro-
cessed in a synchronous operation program in the synchronous interrupt task, e.g., a program for a
digital cam. The results are output from the CPU Unit to some Position Control Units as synchro-
nous data to use in position control.
CJ2 CPU Unit (with unit
version 1.1 or later)
Example:
Electronic cam control
CJ2 CPU Unit Software User's Manual
The synchronous interrupt task is executed after the input data for the synchronous
data refresh is received by the CPU Unit. Interrupt task 2 (scheduled interrupt 0) is
used for the synchronous interrupt task.
Synchronous unit operation can be used without using the synchronous interrupt task.
Description
You can enable and disable synchronous
unit operation.
• The Synchronous Units to be used in
synchronous unit operation must be reg-
istered.
• The Synchronous Data Refresh Area
must be allocated.
The synchronous data for each Synchro-
nous Unit must be set.
The synchronous cycle time is set.
The program in this task is executed.
Synchronous Units
Example:
Position Control Units
10 CPU Unit Functions
Description
Setting method
PLC Setup
PLC Setup
The synchronous data settings for
each Synchronous Unit is
accessed from the PLC Setup
PLC Setup
Select interrupt task 2 (scheduled
interrupt 0) in the program proper-
ties.
Synchronous unit operation can
be used without using the syn-
chronous interrupt task.
Synchronous data
refreshing
10
Motor drive
Servomotor
10-83

Advertisement

Table of Contents
loading

Table of Contents