Siemens SIMOTION Function Manual page 37

Motion control basic functions for modular machines
Hide thumbs Also See for SIMOTION:
Table of Contents

Advertisement

Procedure for user-controlled synchronization
In order to synchronize the interfaces configured as isochronous DP masters in the
SIMOTION_2 device with the higher-level bus cycle clock, you should proceed as follows:
1. First, you must activate the corresponding alarms for initiating the PeripheralFaultTask. To
2. If a higher-level bus cycle clock is recognized at the corresponding interface (this event is
Note
If the alarms for initiating the PeripheralFaultTask are activated, they must be activated in the
execution system and an appropriate program assigned. Otherwise the SIMOTION device
enters the STOP operating mode when this event occurs.
Status diagram of user-controlled synchronization
The status diagram in the figure below describes the fundamental procedure for synchronizing
isochronous DP master interfaces in a SIMOTION device with a higher-level bus cycle clock.
Basic Functions for Modular Machines
Function Manual, 04/2014
Synchronizing SIMOTION devices with a higher-level bus cycle clock
3.3 Synchronization of a SIMOTION device with an isochronous DP master interface
do this, call up the _enableDpInterfaceSynchronizationMode system function using the
parameter dpInterfaceSyncMode = MASTER_SLAVE_ALARMMESSAGES_1.
– The events _SC_DP_CLOCK_DETECTED ( = 207) and
_SC_DP_SYNCHRONIZATION_LOST ( = 208) then initiate the PeripheralFaultTask
and can be queried in their TaskStartInfo (TSI#InterruptId).
– The modeOfDpInterfaceSynchronization system variable is set to
MASTER_SLAVE_ALARMMESSAGES_1.
The syntax of this system function is described in detail in the "System Functions/Variables
Devices" List Manual (reference list) and in the online help (see index).
signaled by TSI#InterruptId = _SC_DP_CLOCK_DETECTED ( = 207)), synchronization can
be carried out:
– Deactivate all DP slaves and assigned technology objects that are connected to the
isochronous DP master interfaces and in which faults could occur during a phase jump
(e.g. SINAMICS drives) (see Activating and deactivating components and technology
objects (Page 57)).
– Call the _synchronizeDpInterfaces system function.
You can find out about the current synchronization state using the
stateOfDpInterfaceSynchronization system variable.
– Once synchronization has been successfully completed, activate the DP slaves which
you previously deactivated and their assigned technology objects (see Activating and
deactivating components and technology objects (Page 57)).
The synchronized state continues to apply unless it is disrupted, e.g. if the constant bus
cycle clock should fail.
The syntax of this system function is described in detail in the "System Functions/Variables
Devices" List Manual (reference list) and in the online help (see index).
37

Advertisement

Table of Contents
loading

Table of Contents