Type |
EF |
Devices supporting the parameter |
Encoder network (Synchronization slave) |
Traceable |
Yes |
Enables or disables the Synchronization slave.
Value |
Data type |
Meaning |
---|---|---|
off / 0 |
BOOL |
The Synchronization slave is not being processed by the real-time process. |
on / 1 |
BOOL |
The Synchronization slave is enabled and being processed by the real-time process. |
The time needed to enable the synchronization may be longer than 200 ms.
Synchronization is performed synchronously within the context of the user application. This means that the execution of the application is blocked until the synchronization is completed. This can lead to a cycle time overrun. To inhibit a corresponding error message, you can disable the cycle time verification before you enable synchronization and enable it again afterwards.
See following code example:
CASE iState OF
0:
FC_CycleCheckSet(FALSE);
SyncS_Slave.Enable := FALSE
iState := 10;
10:
SyncS_Slave.Enable := TRUE
iState := 20
20:
FC_CycleCheckSet(TRUE);
iState := 30
END_CASE