80
Program Example for Linear Mode
Section 7-6
7-6
Program Example for Linear Mode
This section explains a program example for a system using counter 1 of the
High-speed Counter Unit in linear mode.
Note
After writing a program, make sure that the program works properly.
System Configuration
Process Control for a Conveyor Belt
Operation
The positions of workpieces on a conveyor belt are detected by means of
pulse inputs from the encoder, and processes are then carried out at the
required positions.
1,2,3...
1.
The photoelectric sensor detects that a workpiece has been placed on the
conveyor belt, and the count is reset.
2.
Processes are carried out at each process station according to the count.
3.
The stopping and starting of the motor and the movement of the gripper
hand are controlled at the PC.
Offset phase inputs multiplied by 1 are input to the encoder.
BCD data is used in the system.
The counter is reset at the rising edge of external control input IN1.
Switch Settings
The unit number of the High-speed Counter Unit is set to 1 and the Unit will
have NPN external outputs.
Wiring
Connect the outputs of the photoelectric sensor to external control IN1.
Connect the A- and B-phase outputs of the incremental encoder to counter 1
inputs A and B.
Connect external outputs 0 to 3 to the process display lamps.
Connect the outputs of the Contact Output Unit (C200H-OC224) to the motor
and the gripper hand.
C200H-OC224
Contact Output Unit
C200H-CT021
High-speed Counter Unit
Use an Encoder
Conversion Adapter to
connect line driver
outputs from an
encoder with open
collector outputs.
Process display lamps
External
outputs 0 to 3
Encoder
Conversion
Adapter
Encoder
inputs
External control input IN1
Gripper
hand
Motor
Process station
Photoelectric
sensor
Process station
Workpiece
Conveyor belt
Incremental encoder
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 ...