XW2B-80J7-1A Omron, XW2B-80J7-1A Datasheet - Page 168

no-image

XW2B-80J7-1A

Manufacturer Part Number
XW2B-80J7-1A
Description
RELAY UNIT
Manufacturer
Omron
Datasheet

Specifications of XW2B-80J7-1A

Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
XW2B80J71A
7-3-6
Input Interrupts
Application Example
This example shows input interrupt 0 and input interrupt 1 used in interrupt
input mode and counter mode, respectively.
Before executing the program, verify that the following System Setup settings
have been made: input 0 and input 1 both set to Interruption (up). The other
System Setup settings are set to their default settings.
Interrupt
task 0
Interrupt
task 1
P_First_Cycle
0002.00
(ON for the first cycle)
0002.00
P_On (Always ON)
CLC
END
END
MOV
@CLI
@CLI
@MSKS
@MSKS
@MSKS
@MSKS
ADB
MSKS
#000A
#000A
#0000
#0001
#0001
#0001
#0000
#0000
#0001
#0002
#0000
#0001
#0001
#0001
#0001
#0002
A521
A521
A521
The SV of input interrupt 1 counter
mode operation is set to 10 in 4-digit
hexadecimal (000A).
When CIO 0002.00 is ON, the
following instructions are executed.
(1) Clears any masked interrupts
(2) Enables interrupts by input
(3) Enables interrupts by input
When CIO 0002.00 is OFF, MSKS(690)
masks input interrupts 0 and 1 and
disables those interrupts.
Interrupt task 000 is called when
there is an interrupt from input
interrupt 0, 10 is added to the
counter SV for input interrupt 1 (the
SV increases to 20), and the
counter is refreshed.
When input interrupt 1 counts down
to 0, interrupt task 001 is called and
executed.
for input interrupts 0 and 1.
interrupt 0 in Input interrupt
mode.
interrupt 1 in counter mode.
(The counter SV is 10 decimal.)
Section 7-3
145