This keyword allows a variable of type STRU_MVITPCJ (STRUCT_P) to be defined.
It is used by the mva_to_n_cj() motion function.
It consists of the following information:
Field |
Type |
Description |
---|---|---|
nAx |
I32 |
Axis number |
target |
REAL |
Position to be reached [units] |
v |
REAL |
Speed [units/sec] |
acc |
REAL |
Acceleration/deceleration [units/sec²] |
jerk |
REAL |
Jerk [units/sec³] |
decH |
REAL |
Deceleration on hold [units/sec²] |
Example of a one-axis declaration:
Three-axis declaration example:
Example of accessing member v:
Example usage:
NOTE: For access remember that indexes start at 0. |