Omron CQM1H - PROGRAM Programming Manual page 139

Programmable controllers; inner boards
Table of Contents

Advertisement

Pulse I/O Board
Example 3: Using
PLS(––) to Accelerate/
Decelerate the Frequency
at the Same Rate
114
The following example shows PLS2(––) used to output 100,000 CW pulses
from port 1. The frequency is accelerated to 10 kHz at approximately 500 Hz/
4 ms and decelerated at the same rate.
Five seconds after the CW pulses have been output, another PLS2(––)
instruction outputs 100,000 CCW pulses with the same settings.
DM 0000 0050
DM 0001 1000
DM 0002 0000
DM 0003 0010
00000
05000
AR 0514
TIM 000
The following diagram shows the frequency of pulse outputs from port 1 as
the program is executed.
Frequency
CW pulse output
10 kHz
500 Hz
approx. 4 ms
1 kHz
100,000 pulses
IR 05000
turns ON
SET 05000
IR 05000 is turned ON when IR 00000 is ON.
@PLS2(−−)
When IR 05000 turns ON, PLS2(−−) starts CW pulse output
from port 1.
001
Acceleration rate: Approx. 500 Hz/4 ms
000
Target frequency: 10,000 Hz
Number of pulses: 100,000
DM 0000
TIM 000
When AR 0514 (Pulse Output Completed Flag) turns ON,
a 5-second timer is started.
#0050
@PLS2(−−)
After 5 seconds elapses following completion of CW pulse
output, PLS2(−−) starts CCW pulse output from port 1 using
001
same conditions:
001
Acceleration rate: Approx. 500 Hz/4 ms
Target frequency: 10 kHz
DM 0000
Number of pulses: 100,000
RSET 05000
Turns 05000 OFF when TIM 000 times out.
CCW pulse output
500 Hz
approx. 4 ms
100,000 pulses
AR 0514
After 5 s
turns ON
Section 2-2
About 500 Hz/4 ms
Time

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents