Download TML_LIB Motion Library v2.0 User Manual

Transcript
3.3.6.25 TS_SendSynchronization
Prototype:
BOOL TML_EXPORT TS_SendSynchronization(LONG Period);
Arguments:
Name
Input
Period
Output
return
Description
Time period between two synchronization messages. It is
expressed in TML time units
TRUE if no error, FALSE if error
Description: The function enables/disables the synchronization procedure between axes. The
synchronization process is activated when the parameter Period has a non-zero value. The
active axis is set as the synchronization master and the other axes become synchronization
slaves. To disable the synchronization procedure set the Period to zero.
The synchronization process is performed in two steps. First, the master sends a synchronization
message to all axes, including to itself. When this message is received, all the axes read their
own internal time. Next, the master sends its internal time to all the slaves, which compare it with
their own internal time. If there are differences, the slaves correct slightly their sampling periods in
order to keep them synchronized with those of the master. As effect, when synchronization
procedure is active, the execution of the control loops on the slaves is synchronized with those of
the master within a 10µs time interval. Due to this powerful feature, drifts between master and
slave axes are eliminated. The Period represents the time interval in internal units between the
synchronization messages sent by the master. Recommended value is 20ms.
Related functions:
TS_SetGearingMaster, TS_SetGearingSlave TS_SetCammingMaster,
TS_SetCammingSlave
Associated examples: –
© Technosoft 2009
69
TML_LIB – User Manual