Omron SYSMAC CJ Series User Manual page 106

Sysmac cj series cpu unit pulse i/o module
Hide thumbs Also See for SYSMAC CJ Series:
Table of Contents

Advertisement

6 Interrupts
(2) Enabling Interrupt Inputs
Pulse I/O
Terminal
Module
symbol
No.
0 (on the
IN00
right)
IN01
IN02
IN03
1 (on the
IN10
left)
IN11
IN12
IN13
Example
Cyclic task
Reading the PV of an Interrupt Input Counter in Counter Mode
The present value of an interrupt input counter can be read in the following two ways.
• Reading the PV Refreshed at the I/O Refresh
Timing or When the Interrupt Task Is Started
• Value updated when a ladder program is exe-
cuted
6-12
Correspond-
ing bit
Function
address
CIO 2960.00
Interrupt input 0
CIO 2960.01
Interrupt input 1
CIO 2960.02
Interrupt input 2
CIO 2960.03
Interrupt input 3
CIO 2962.00
Interrupt input 4
CIO 2962.01
Interrupt input 5
CIO 2962.02
Interrupt input 6
CIO 2962.03
Interrupt input 7
(1) Specify detecting ON or OFF input signals.
For interrupt input 2, specify 112.
Specifies detecting ON signals.
MSKS
(2) Enabling interrupts.
112
For interrupt input 2, specify 102.
#0000
Enables interrupt in Direct Mode.
MSKS
102
#0000
(3) Input received at IN02.
(4) Starting the interrupt task
Interrupt task number 142
END
Execution condition
Interrupt
task number
140
141
142
143
144
145
146
147
END
→ Read from the Auxiliary Area. (Refer to Related
Parameters in the Auxiliary Area
→ Read PV by executing a PRV(881) instruction.
@PRV
P: Port specifier, Example: Interrupt input 0
#0100
C: Control Data (to read PV)
#0000
D: First Destination Word
D100
15
D100
CJ2M CPU Unit Pulse I/O Module User's Manual
Operand N
Operand C
Interrupt
Specifying to
identifier
detect ON or OFF
100
#0000: Enable
interrupt (Direct
101
Mode)
102
#0001: Disable
103
interrupt
104
#0002: Enable
interrupt (Counter
105
Mode, decrement)
106
#0003: Enable
107
interrupt (Counter
Mode, increment)
on page 6-13
0
Counter PV that was read
PV
.)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cj2m-cpu seriesSysmac cj2m-md21 series

Table of Contents