Validity: RC3E v33.5.8-7 (or later).
This keyword allows a variable of type STRU_FOLLOW2 (STRUCT_P) to be defined.
It is used by the mv_follow2() motion function.
It consists of the following information:
Field |
Type |
Description |
||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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. |
||||||||||||||||||||||||||||||||||||||||||||||||
qSlave |
REAL |
Current slave quota updated runtime by the function (the first time the function is used it should be initialized to the actual value at which the slave axis is) |
||||||||||||||||||||||||||||||||||||||||||||||||
vSlave |
REAL |
Current slave speed updated runtime by the function |
||||||||||||||||||||||||||||||||||||||||||||||||
aSlave |
REAL |
Current slave acceleration updated runtime by the function. NOTE: Its value is correct only if the accMaster parameter is set correctly. |
||||||||||||||||||||||||||||||||||||||||||||||||
maxSpe |
REAL |
It is the maximum speed value for the movement of the slave. Used if relative test is enabled (B17=0) |
||||||||||||||||||||||||||||||||||||||||||||||||
maxAcc |
REAL |
Is the maximum acceleration value for the movement of the slave. Used if relative test enabled (B18=0) |
||||||||||||||||||||||||||||||||||||||||||||||||
INTERNAL STORAGE: |
||||||||||||||||||||||||||||||||||||||||||||||||||
resDouble[14] |
REAL |
Reserved |
||||||||||||||||||||||||||||||||||||||||||||||||
resInt[2] |
REAL |
Reserved |
Error codes table
Example of use:
|