Omron CP1E - INTRODUCTION Introduction Manual page 144

Cp1l/cp1e cpu unit
Hide thumbs Also See for CP1E - INTRODUCTION:
Table of Contents

Advertisement

A-4 CP1L Programming Examples
Programming Example 1
Ladder Program
Counter values are used to start/slow/stop the motor.
0.02
Start motor
A
100.00
Motor run
After motor stops, check the stop position.
W0.00
Stop motor
W0.01
Motor stopped
142
SYSMAC CP1L/CP1E Introduction Manual
Use comparison instructions to compare counter values.
The program can be created easily by using comparison instructions to compare
counter values.
W0.00
Stop motor
>=(325)
A270
#0BB8
>=(325)
A270
#0DAC
0.02
Start motor
>=(325)
A270
#0DAC
>=(325)
A270
#0DDE
DIFU
Software reset
for high-speed counter 0
A531.00
100.00
Motor run
100.01
When high-speed
counter (A270) reaches
3000 (0BB8 Hex),
Motor slow
the motor decelerates.
W0.00
When high-speed
counter (A270) reaches
3500 (0DAC Hex),
Stop motor
the motor is stopped.
W0.01
Motor stopped
Stop position is normal if the
100.02
high-speed counter (A270) is
<(310)
between 3500 (0DAC Hex)
and 3550 (0DDE Hex).
A270
Normal stop
position
#0DDE
100.03
Stop position is in error if
the high-speed counter (A270)
is greater than 3550
Error stop
(0DDE Hex).
position

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents