A
Appendix
A-4 CP1L Programming Examples
144 SYSMAC CP1L/CP1E Introduction Manual
When the PV of the high-speed counter matches target value 2 (3500), interrupt task
05 will be executed.
DM Area Setup
The comparison table for the CTBL (register comparison table) instruction should
be allocated to DM D600 through D606.
A-4-6 Using Servo Drivers for Positioning
■Functions Used
●Pulse Output by Built-in Output
Pulse signal outputs from the built-in output of a CPU unit can be used for
positioning and speed control of a servo motor driver with up to 2 axes.
Note CP1E E-type CPU units have no pulse output functions.
■Operation Overview
The following example is for a single-axis handling machine that is used to transfer
product.
Origin search will be executed, followed by positioning operations to points A and B.
Interrupt task
05
Reset "motor run"
Reset "motor stopped"
Reset "motor slow"
P_On
RSET
SET
RSET
100.00
100.01
W0.02
Channel Value Content
D600 0002 Items compared: 2
D601 0BB8 Target value 1: 3000 BCD (BB8 Hex)
D602 0000
D603 0004 Target value 1: Interrupt task No.4
D604 0DAC Target value 2: 3500 BCD (DAC Hex)
D605 0000
D606 0005 Target value 2: Interrupt task No.5
Point B
Point A
Origin