Validity: RC3E v33.3.2 (or later)
This keyword allows a variable of type STRU_TRACK (STRUCT_P) to be defined.
It is used by the tracking() function.
It consists of the following information:
Field |
Type |
Description |
---|---|---|
despos |
REAL |
Desired quota to be reached. can also be a quantity that evolves over time (quota of another axis) |
desspeed |
REAL |
It must be updated each time the function is called and represents the velocity of the despos field. In case of an axis it represents the IV of the axis itself while in case of a variable it can be calculated as the variation of the field despos over time: [new target - previous despos / field delta] |
actpos |
REAL |
Current quota of the unit controlled by the function |
actspeed |
REAL |
Current speed of the unit controlled by the function |
maxspeed |
REAL |
Maximum speed of the unit controlled by the function |
acc |
REAL |
Maximum acceleration of the unit controlled by the function |
posmin |
REAL |
Lower slave end of strokes of the unit controlled by the function |
posmax |
REAL |
Upper slave end of strokes of the unit controlled by the function |
delta |
REAL |
Sampling interval (si) |
Example declaration:
Example usage:
|