This keyword allows a variable of type STRU_MVGENITP (STRUCT_P) to be defined.
It is used by the mva_to_n_v() motion function.
It consists of the following information:
Field |
Type |
Description |
---|---|---|
nAx |
I32 |
Axis number |
target |
REAL |
Target to be reached (position). If the target is less than (pos_thr / 10), RTE considers the space null. So in case the user wishes to make micro advances (< pos_thr / 10) he will have to set the variable pos_thr appropriately |
v |
REAL |
Speed to reach the target. NOTE: When interpolating multiple axes, the speed used may be less than the set speed (only the slowest axis to reach the target uses it, the others will use a lower speed). |
vf |
REAL |
Final speed at target |
accI |
REAL |
Initial maximum acceleration/deceleration to get to v |
accF |
REAL |
Final maximum acceleration/deceleration to bring to target (on target I will have zero acceleration) |
accH |
REAL |
Acceleration in case of hold |
Example of declaration:
Example of a three-axis declaration:
Example of use:
NOTE: To access remember that indexes start from 0. |