Omron SYSMAC CJ Series User Manual page 156

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
Ladder Program
The CTBL(882) instruction is used to execute interrupt tasks when the target positions are reached.
2960.02
Start motor
Confirm that the stop position is correct after the motor stops.
W0.02
Motor stopped
When the present value of the high-speed counter matches target value 1 (3,000), interrupt task 143
is executed.
Interrupt task
number 143
7-46
>=L
<L
A270
A270
&3500
&3550
>=L
A270
&3550
P_On
RSET
Reset when motor stops
W0.02
Clear the PV of high-speed
MOVL
counter 0 to 0.
#0
D0
INI
Specifies high-speed counter 0
#0010
PV change
#0002
New PV data (Clears PV to 0.)
D0
CTBL
Specifies high-speed counter 0
#0
Specifies comparison with target
#0
values and starts comparison
D600
First word of comparison table
SET
Motor operation reset.
2961.00
2961.02
The stop position is normal if the
present value of the high-speed
counter (A270) is between 3500
Normal stop
(0DAC hex) and 3550 (0DDE hex).
position
2961.03
An error stop will occur if the
present value of the
high-speed counter (A270) is
Error stop
higher than 3550 (0DDE hex).
position
SET
Turns ON motor low
speed output.
2961.01
CJ2M CPU Unit Pulse I/O Module User's Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cj2m-cpu seriesSysmac cj2m-md21 series

Table of Contents