Creating Ladder Programs - Omron SYSMAC CJ Series User Manual

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

Advertisement

7 High-speed Counters
Encoders with Line Driver Outputs (Conforming to AM26LS31)
Encoder
Example:
E6B2-CWZ1X
Line driver outputs
Power supply
Encoder
7-1-6

Creating Ladder Programs

Execution
Generating interrupts for the
high-speed counter PV (num-
ber of pulses) and perform
high-speed processing.
Reading the high-speed
counter PV (number of
pulses).
Reading the high-speed
counter frequency (speed).
Reading the rotational speed
or total number of pulses from
the high-speed counter input
Changing or reading the PV of
the high-speed counter when
an interrupt input occurs
Reading the direction of the
high-speed counter
7-12
Pulse I/O Module
Differential Phase Input Mode
+
A
Black
27 (High-speed counter 0: Phase-A load +)
Black (striped)
-
A
29 (High-speed counter 0: Phase-A load − )
+
B
White
28 (High-speed counter 0: Phase-B load +)
White
-
B
(striped)
30 (High-speed counter 0: Phase-B load − )
+
Z
Orange
10 (High-speed counter 0: Phase-Z load +)
Orange
-
Z
(striped)
12 (High-speed counter 0: Phase-Z load − )
5-VDC power supply
5 VDC
Brown
+5 V
0 V
Blue
0 V
(Do not use the same I/O power supply as other equipment.)
Shielded twisted-pair cable
A+
A-
B+
B-
Z+
Z-
Specify interrupt tasks with
CTBL(882) instructions.
Read the high-speed counter PV from
the Auxiliary Area or using the
PRV(881) instruction and convert it to
position or length data using instruc-
tions or measure the length using
comparison instructions such as =, <,
and >.
Execute a PRV(881) instruction.
Execute a PRV2(883) instruction.
Use the software latch to write the PV
of the high-speed counter just before
the interrupt task is executed to the
Auxiliary Area.
Read the high-speed counter direction
from the Auxiliary Area or by execut-
ing the PRV(881) instruction to read
status.
Pulse I/O Module
27
29
28
30
10
12
Program
7-3 High-speed
Counter Interrupts
7-2-4 Reading the
Present Value
7-2-5 Frequency
Measurement
7-2-6 Measuring the
Rotational Speed or
Total Rotations
Using Software
Latches on page 6-8
7-2-7 Reading the
Count Direction
CJ2M CPU Unit Pulse I/O Module User's Manual
Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cj2m-cpu seriesSysmac cj2m-md21 series

Table of Contents