EasyManuals Logo

Omron CP1L CPU User Manual

Omron CP1L CPU
167 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #137 background imageLoading...
Page #137 background image
A
A-4 CP1L Programming Examples
136 SYSMAC CP1L Getting Started Guide
Appendix
Programming Example 2
Use a CTBL (register comparison table) instruction to execute an interrupt process
when the target value is achieved.
Slowing and stopping are executed as interrupt tasks, allowing high-speed
processes to be executed without affecting the cycle time.
zLadder Program
Use a CTBL instruction to execute interrupt tasks when the target position is
reached.
When the PV of the high-speed counter matches target value 1 (3000), interrupt task
04 will be executed.
RSET
W0.02
SET
100.00
D600
#0
#0
#0DDE
>=(325)
A270
#0DAC
>=(325)
A270
#0DDE
<(310)
A270
CTBL(882)
A531.00
Reset "motor stopped"
0.02
Start motor
Software reset for high-speed counter 0
W0.02
Motor stopped
100.02
Normal stop position
100.03
Error stop position
Specification for high-speed counter 0
Start comparison with target
Lower CH of comparison table
Set "motor run"
After motor stops, check the stop position.
Stop position is normal if the
high-speed counter (A270) is between
3500 (0DAC Hex) and 3550 (0DDE Hex).
Stop position is in error if the
high-speed counter (A270) is
greater than 3550 (0DDE Hex).
SET
100.01
P_On
Set "motor slow"
Interrupt task
04
W07E-EN-02+CP1L+GettingStartedGuide.book Seite 136 Montag, 15. September 2008 11:15 11

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CP1L CPU and is the answer not in the manual?

Omron CP1L CPU Specifications

General IconGeneral
BrandOmron
ModelCP1L CPU
CategoryProcessor
LanguageEnglish

Related product manuals