107
Program Example for Gate Mode
Section 9-5
9-5
Program Example for Gate Mode
This section explains a program example for a system using the High-speed
Counter Unit in gate mode.
Note
After writing a program, make sure that the program works properly.
System Configuration
Measuring Product Dimensions
Operation
Encoder inputs are counted while the photoelectric sensor is ON, and the
dimensions of products moving along the conveyer belt are measured. The
PC determines whether or not those dimensions are acceptable.
The value in the parentheses is for counter 2.
Offset phase inputs multiplied by 1 are input to the encoder.
BCD data and external control input IN1 are used in the system.
Switch Settings
The unit number of the High-speed Counter Unit is set to 1.
Wiring
The A- and B-phase outputs of the incremental encoder are connected to
counter 1 inputs A and B.
Connect the outputs of the photoelectric sensor to external control input IN1.
DM Settings
C200H-CT021 High-speed Counter Unit
External control input IN1
Photoelectric
sensor for detection
Encoder
inputs A, B
Encoder
Conversion
Adapter
Use an Encoder Conversion Adapter to
connect line driver outputs from an
encoder with open collector outputs.
Incremental encoder for
detection of conveyor belt speed
Product
C200HX
Pulse inputs
External control
input IN1
Counting
Word n+6 bit 00 (08)
Present counter value
At PC
Arithmetic
operation
DM 1100
DM 1101
Gate mode, BCD data, offset phase pulse
inputs x 1, and external control input mode
Summary of Contents for C200H-CT021
Page 1: ...C200H CT021 High speed Counter Unit Operation Manual Revised December 2000 ...
Page 2: ...iv ...
Page 4: ...vi ...