This keyword allows a variable of type STRU_REACHTARGET (STRUCT_P) to be defined.
It is used by the mv_reach_target() motion function.
It consists of the following information:
Field |
Type |
Description |
---|---|---|
velSlave |
REAL |
Current slave speed, must be updated by application software |
velMinSlave |
REAL |
Minimum speed allowed during docking |
velMaxSlave |
REAL |
Maximum speed allowed during docking |
accMAxSlave |
REAL |
Maximum acceleration allowed during docking |
vTarget |
REAL |
Desired speed of the slave at the synchronism position |
ds |
REAL |
Missing space at the slave at the synchronism point |
tm |
REAL |
Missing time to the master at the synchronism point |
si |
REAL |
Sample interval |
Example declaration:
Example of use:
|