415
6
6 Positioning and Interpolation DRVI: Relative positioning
◆
Program example
This instruction is used to control the actuator to move from the specied origin to the destination.
DRVI: Relative positioning
◆
Overview
A specied number of pulses are output at the specied pulse frequency in the specied direction through
the specied output port. The action is based on the relative position.
DRVI
S1 S2 D1 D2
Relative positioning Applicable model:
H3U
S1 Pulse
count
Specied number of pulse outputs
16-bit instruction
(9 steps)
DRVI: Continuous
execution
32-bit instruction
(17 steps)
DDRVI: Continuous
execution
S2 Output
frequency
Specied pulse output frequency
D1 Output
port
High-speed pulse output port
D2 Output
direction
Pulse running direction port or bit variable
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S1 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM V Z Modication K H E
S2 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM V Z Modication K H E
D1 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM V Z Modication K H E
D2 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM V Z Modication K H E
Note: The elements in gray background are supported.
◆
Functions and actions
This instruction is used to output a specied number of pulses at the specied frequency and in the
specied direction through the specied port, and drive the servo actuator to move toward the given offset
based on the current position. This instruction is applicable only to the PLC of the transistor output type.
Wherein: