Validity: RC3E v33.5.8-7 (or later).
This keyword allows a variable of type STRU_FOLLOW2_S (STRUCT_P) to be defined.
It is used by the mva_follow2() motion function.
It consists of the following information:
Field |
Type |
Description |
||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
nAxS |
U32 |
Slave axis number |
||||||||||||||||||||||||||||||||||||||||||||||||
command |
U32 |
Command and configuration word:
|
||||||||||||||||||||||||||||||||||||||||||||||||
errorCode |
U32 |
Error codes (see error code table below) |
||||||||||||||||||||||||||||||||||||||||||||||||
MASTER DATA: |
||||||||||||||||||||||||||||||||||||||||||||||||||
masterCycle |
REAL |
Master cycle step if fixed-cycle master (B16= 0). Minimum master cycle step if variable-cycle master (B16=1). NOTE: If variable-cycle master can also be left at 0, in which case, however, no checks are made on the recovery speed. |
||||||||||||||||||||||||||||||||||||||||||||||||
qSyncMaster |
REAL |
Master quota used as a synchronism reference. If fixed-cycle master (B16=0) it is assumed as a relative quota for the cycle and should be set once. |
||||||||||||||||||||||||||||||||||||||||||||||||
qMaster |
REAL |
Master position. It must always be updated before each function call. If axis it corresponds to the IP |
||||||||||||||||||||||||||||||||||||||||||||||||
velMaster |
REAL |
Master speed. It must always be updated before each function call. If axis it corresponds to the IV |
||||||||||||||||||||||||||||||||||||||||||||||||
accMaster |
REAL |
Master acceleration. It must always be updated before each function call. If axis it corresponds to the AI. NOTE: This parameter is only used to correctly calculate accSlave. |
||||||||||||||||||||||||||||||||||||||||||||||||
SLAVE DATA: |
||||||||||||||||||||||||||||||||||||||||||||||||||
slaveCycle |
REAL |
Step increment of qSyncSlave quota to handle repeated-cyclic following. (if linear slave should be left at 0) |
||||||||||||||||||||||||||||||||||||||||||||||||
qSyncSlave |
REAL |
Synchronism start quota of slave axis |
||||||||||||||||||||||||||||||||||||||||||||||||
qOutSlave |
REAL |
Synchronism final quota of slave axis |
||||||||||||||||||||||||||||||||||||||||||||||||
qParkSlave |
REAL |
Parking quota of the slave axis |
||||||||||||||||||||||||||||||||||||||||||||||||
spaceStopSlave |
REAL |
Stop space of the slave from qOutSlave. Valid only if linear slave (slaveCycle = 0) |
||||||||||||||||||||||||||||||||||||||||||||||||
spaceWaitInPark |
REAL |
Master advance space during which the slave axis remains stationary at parking quota qParkSlave at each cycle before starting the next tracking. This parameter is only valid if the slave is linear (slaveCycle = 0) or if the slave is cyclic and the stop at quota qParkSlave is enabled at each cycle (B20=1) |
||||||||||||||||||||||||||||||||||||||||||||||||
velPositSlave |
REAL |
Speed initial positioning on qParkSlave |
||||||||||||||||||||||||||||||||||||||||||||||||
accPositSlave |
REAL |
Acceleration initial positioning on qParkSlave |
||||||||||||||||||||||||||||||||||||||||||||||||
jerkPositSlave |
REAL |
Jerk initial positioning on qParkSlave |
||||||||||||||||||||||||||||||||||||||||||||||||
kSlaveMaster |
REAL |
Master speed to slave speed conversion constant used during the synchronized segment (velSlave = velMaster * kSlaveMaster). NOTE: It is used to equalize units if they are different, or to differentiate speeds during the synchronized segment. |
Error codes table
Example of use:
|