XW2Z-200J-B9 Omron, XW2Z-200J-B9 Datasheet - Page 246

no-image

XW2Z-200J-B9

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

Specifications of XW2Z-200J-B9

Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
XW2Z200JB9
Example 2:
High-speed Counter
Range Comparison &
Bit Pattern Output
Pulse Inputs
(Always ON)
0002.00
P_On
Control program 2
Control program 1
Control program 3
Start high-speed
counter.
Reset Bit
A860.00
A860.01
END
END
END
END
@CTBL
D00000
#0001
#0000
In this example, pulse input 1 operates a high-speed counter, the high-speed
counter PV is compared in a range comparison, and corresponding bit pattern
is output internally when the PV is within a specified range. The internal bit
pattern value is output by a transfer to CIO 2961.
The Reset Bit is kept ON in the program and the counter PV is reset when the
phase-Z signal turns ON after the PV reaches its maximum value. Before run-
ning the program, make the following settings in the System Setup and restart
the FQM1 to enable the new settings.
The other System Setup settings are left at their default settings.
Example
When the PV is between 0 and 2,500 hex, CIO 2961.00 is ON.
When the PV is between 2,501 and 7,500 hex, CIO 2961.01 is ON.
When the PV is between 7,501 and 10,000 hex, CIO 2961.02 is ON.
When the PV is 10,001 hex or higher, CIO 2961.03 is ON.
Turns ON the High-speed Counter 1 Reset Bit.
Registers a target value comparison table for the PV
from high-speed counter 1 and starts the comparison.
(In this case, the comparison table begins at D00000.)
Starts high-speed counter 1.
Interrupt task 10
Interrupt task 11
Interrupt task 12
Counter 1:
Linear counter, Counting speed = 50 kHz, Phase Z and software reset, and
Increment/decrement pulse input
D00000
D00001
D00002
D00003
D00004
D00005
D00006
D00007
D00008
D00009
0 0 0 3
2 5 0 0
0 0 0 0
0 0 0 A
7 5 0 0
0 0 0 0
0 0 0 B
0 0 0 0
0 0 0 1
0 0 0 C
3 comparison conditions
Target value 1 = 2,500
Interrupt task 10
Target value 2 = 7,500
Target value 3 = 10,000
Interrupt task 12
Interrupt task 11
Section 7-5
219