Writing The Synchronous Interrupt Task - Omron CJ2 CPU - REV 10-2010 User Manual

Cj2 cpu unit software
Table of Contents

Advertisement

Synchronous Unit (Unit No.)
Register the Synchronous Units in the PLC that are to be used in synchronous unit operation. Nor-
mally up to ten Units can be registered, but fewer Units can be registered depending on the Unit.
Refer to the operation manual for each Unit for details.
Parameter
Synchronous Units

10-8-8 Writing the Synchronous Interrupt Task

Write the program to be executed in the synchronous interrupt task and set the task type to interrupt
task 2 (scheduled interrupt 0) in the program properties. This task will include programming for synchro-
nous control, such as for digital cam control. For example, for digital cam control, this task would con-
tain ARITHMETIC PROCESS (APR) instructions or standard function blocks to control a cam curve
based on a real or virtual axis.
Related Auxiliary Area Bits and Words
Name
Synchronous Unit Oper-
ation Servicing Flag
Synchronous Input Data
Refresh Error Code
Synchronous Operation
Cycle Time
CJ2 CPU Unit Software User's Manual
Settings
Names of CPU Units
CPU Unit only
and other Units that
support synchro-
nous unit operation
Bit/word
A10100.00
This flag turns ON from the second synchro-
nous operation cycle when the CPU Unit can
service Synchronous Units for the synchro-
nous unit operation function. It is OFF at all
other times, including the first synchronous
operation cycle after starting or restarting the
PLC.
Use this flag in user programming to control
program execution related to synchronous unit
operation.
A10101
This word contains 0001 hex when the CPU
Unit fails to receive synchronous input data
from a Synchronous Unit. It contains 0000 hex
after synchronous input data is successfully
received. It is updated each synchronous
operation cycle.
Use this word in user programming as a condi-
tion for using synchronous input data.
A10102
This word contains the synchronous operation
cycle time set in the PLC Setup in 0.1-ms
increments from the point when the set cycle
time is valid.
Use this word to read the set synchronous
operation cycle time from user programming,
such as from a function block.
10 CPU Unit Functions
Default
Description
Click an empty row
to display a list of
Synchronous Units.
Select a Unit from
the list.
Description
Related Auxiliary
Area bits and
words
---
10
Read/Write
Read
Read
Read
10-97

Advertisement

Table of Contents
loading

Table of Contents