DVP-ES2/EX2/SS2/SA2/SX2 Operation Manual - Programming
3-442
MOV
MOV
MOV
K100
K100
K100
D0
M1002 D1131
D1343
D1348
SET
DMOV K0 D1030
EI
FEND
IRET
END
DCLLM X4 K50000 K100000 Y0
INC
M1534
M0
M1000
I401
MOV K100 D1340
MOV K100 D1343
MOV K100 D1343
2. Execution results:
100kHzD1340D1343X4 = OFF --> OND1340D1348
Specified number of output pulses: 50, 000
Actual number of output pulses (D1030, D1031) = K51000
Frequency
Y0 output stops
Time
Pulse number
Program Example 2: Immediate stop high-speed pulse output by high speed counter
1. Adopt counter C243 (better to be reset before execution) with AB-phase input from the
encoder. Set target number of feedbacks = 50,000; target frequency = 100kHz; pulse output
device: Y0, Y1 (CH0); start/end frequency (D1340) = 200Hz; ramp-up time (D1343) = 300ms;
ramp-down time (D1348) = 600ms; percentage value (D1131) = 100; present value of output
pulses (D1030, D1031) = 0..