XW2Z-200J-B10 Omron, XW2Z-200J-B10 Datasheet - Page 170

no-image

XW2Z-200J-B10

Manufacturer Part Number
XW2Z-200J-B10
Description
CONNECTOR CABLE 2M
Manufacturer
Omron
Datasheet

Specifications of XW2Z-200J-B10

Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
XW2Z200JB10
7-4-5
Interval Timer Interrupts
Interrupt task
CIO 0002.00
Application Example
In this example, the interval timer is used to generate an interrupt every
2.4 ms (0.6 ms × 4). The default System Setup settings are used. (Inputs are
not refreshed for interrupt processing.)
When the program is being executed, the interrupt task will be executed every
2.4 ms while CIO 0002.00 is ON, as shown in the following diagram.
Interrupt
task 35
STIM
2.4 ms
First Cycle Flag
(ON for 1 cycle)
0002.00
0002.00
Ladder Program
INTERVAL TIMER
Interval timer
• Start timer.
• Read elapsed time.
One-shot mode
Scheduled interrupt mode
Interrupt task program
2.4 ms
END
END
MOV
MOV
@STIM
@STIM
D00010
D00011
D00010
Generate interrupt.
#000A
#0004
#0006
#0003
#0023
Execute interrupt task.
0000
0000
2.4 ms
END
Interval timer set values:
Sets 4 for the decrementing counter
set value.
Sets 0.6 ms for the decrementing
time interval.
The interval timer starts when
CIO 0002.00 turns ON.
Task 23 hex = 35 BCD
The interval timer stops when
CIO 0002.00 turns OFF.
Every 2.4 ms the interval timer
times out and the interrupt task is
executed.
Section 7-4
147