External Interrupts - Omron CJ2 CPU UNIT SOFTWARE User Manual

Cj2 cpu unit software
Hide thumbs Also See for CJ2 CPU UNIT SOFTWARE:
Table of Contents

Advertisement

5 Understanding Programming
(Interrupt Input Unit retrieval)
Interrupt task execution
Cycle execution task execution
(main program)

External Interrupts

Interrupt processing is performed at the CPU Unit in PLCs containing Special I/O Units or CPU Bus
Units. Settings do not have to be made at the CPU Unit unless the program contains an external inter-
rupt task for a particular task number. The Special I/O Unit or CPU Bus Unit must be connected in the
CPU Rack to enable external interrupts.
Receiving external interrupt tasks is always enabled. The maximum number of tasks is 256 (interrupt
task numbers 0 to 255).
Example: External Interrupt from a CJ1W-CT021 High-speed Counter Unit
CPU Unit
Cyclic task
Interrupt task
I/O memory
To communicate to the CPU Unit the status information for the two external control inputs and 32 out-
puts of this Unit for other than I/O refreshing, set the external control inputs or outputs so that they trig-
ger the external interrupt task.
Precautions for Correct Use
Precautions for Correct Use
Do not use the same number for more than one interrupt task.
If an external interrupt task (0 to 255) has the same number as a power OFF task (task 1),
scheduled interrupt task (task 2 or 3), or I/O interrupt task (100 to 131), the interrupt task will be
executed for either interrupt condition (external interrupt or the other interrupt condition).
External Interrupts from Pulse I/O Modules
When a Pulse I/O Module is used with a CJ2M CPU Unit, external interrupt tasks can be executed
based on the results of comparison for high-speed counter inputs. With target comparison, the com-
parison conditions (target values and counting directions) are registered in the CTBL(882) compari-
son table along with the corresponding interrupt task number. The specified interrupt task will be
executed when the high-speed counter PV matches the registered target value.
5-28
Input
Input ON delay time
I/O interrupt task
interrupt response time
Specifies
CJ1W-CT021
external interrupt
task number and
requests
interrupt
processing.
Ladder program
Cyclic task
execution time
return time
Data
CJ2 CPU Unit Software User's Manual
Ready for next
interrupt Input Unit retrieval

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ2 CPU UNIT SOFTWARE and is the answer not in the manual?

Questions and answers

Thomas
January 16, 2025

How do I retrieve fault codes from plc: CJ2M-CPU35

Subscribe to Our Youtube Channel

Table of Contents

Save PDF