This keyword allows a variable of type STRU_SYNCHRO (STRUCT_P) to be defined.
It is used by the mv_synchro() motion function.
It consists of the following information:
Field |
Type |
Description |
---|---|---|
qMaster |
REAL |
Master position. Must be updated before each function call |
velMaster |
REAL |
Speed of the master. Must be updated before each function call |
qSyncMaster |
REAL |
Master axis synchronism quota |
qSlave |
REAL |
Position of the slave. Must be updated before each function call |
velSlave |
REAL |
Slave speed. Must be updated before each function call |
qSyncSlave |
REAL |
Synchronism quota of the slave axis |
velSyncSlave |
REAL |
Speed that the slave must have at the synchronism quota qSyncSlave |
velMaxSlave |
REAL |
This is the upper speed limit allowed for slave axis movement. In case the correction formula required to rise above the maximum speed, the value returned by the function would be equal to velMaxSlave |
accMaxSlave |
REAL |
This is the maximum acceleration value accepted for the slave axis. The amount of correctable error is automatically reduced so that the set acceleration value is not exceeded |
si |
REAL |
Sampling time si |
kappa |
REAL |
Allows the trajectory of the slave to be warped: the higher the value, the more the slave movement is anticipated, i.e., more space is attempted during the first half of the mission. Reasonable values range from 1.0 (no advance) up to 3.0 (maximum advance) |
Example declaration:
Example
|