DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
Program Example:
When M10 = ON, DRVA instruction executes absolute positioning on Y0 at target position 20000,
target frequency 2kHz. Y1 = OFF indicates positive direction.
M10
DRVA K20000 K2000 Y0 Y1
Points to note:
1. Operation of absolute positioning:
Pulse output executes according to the specified absolute position from zero point
+3,000
0
0
Zero point
Ramp up time
Start / End freq. Min: 6Hz
Ramp down time
Target position
2. Registers for setting ramp up/down time and start/end frequency:
Output Y0:
Default: 100ms
Y0(D1343)
Y0(D1340)
Y0 (D1340)
Min: 6Hz
Min: 6Hz
Y0(D1343)
Ramp-up
slope
Sample time
of ramp-up
Pulse output frequency
End freq.
Target position
Ramp down time
Ramp up time
Default: 100ms
Current
position
Start freq.
This instruction can be used many times in user program, but only one instruction will be
activated at a time. For example, if Y0 is currently activated, other instructions use Y0 won’t
be executed. Therefore, instructions first activated will be first executed.
After activating the instruction, all parameters cannot be modified unless instruction is OFF.
For associated special flags and special registers, please refer to Points to note of DDRVI
instruction.