Power Up And Synchronization With The User Program; Monitoring The Synchronization With Peripheralfaulttask - Siemens SIMOTION TM15 Commissioning Manual

Terminal modules
Hide thumbs Also See for SIMOTION TM15:
Table of Contents

Advertisement

2.5

Power Up and Synchronization with the User Program

An isochronous bus is required for operation of the TM1x terminal modules.
The terminal modules must have powered up and reached the synchronized state before
they can be read- or write-accessed. Synchronization of the terminal modules requires at
least 18 position control cycle clocks.
Until synchronization, the digital outputs are disabled (low level at the terminal).
The TM1x terminal modules are not ready to operate until they are successfully
synchronized with the SIMOTION CPU. During this startup phase, the input and output
variables must not be accessed directly or else an I/O access error will occur and the CPU
will go to STOP mode.
In addition, all access attempts of the Measuring Input, Output Cam, or Output Cam Track
technology objects in a non-synchronized state will trigger a technological alarm.
The start-up operation can be monitored by directly accessing the TM1x module status word
or via the PeripheralFaultTask.
2.5.1

Monitoring the synchronization with PeripheralFaultTask

During the transition from STARTUP to RUN, all TM1x Terminal Modules are in the
"NOT_SYNCHRONIZED" state.
● As soon as the Terminal Modules have been successfully synchronized, the
● If synchronization fails, the PeripheralFaultTask with interrupt ID
Example
To synchronize the user task, a user variable TM_SYNC is set to FALSE in the StartUpTask
and set to TRUE in the PeripheralFaultTask with interrupt ID =
SC_IO_MODULE_SYNCHRONIZED. The status of TM_SYNC is queried in the user task
before the (first) direct access operation.
The following TaskStartInfo is supplied in the PeripheralFaultTask every time it is called:
DINT
DINT
DINT
DWORD TSI#details
UINT
UINT
TM15 / TM17 High Feature Operating Manual
Commissioning Manual, 05/2009
PeripheralFaultTask with interrupt ID "_SC_IO_MODULE_SYNCHRONIZED" (=214) is
called.
"_SC_IO_MODULE_NOT_SYNCHRONIZED" (=215) is called.
TSI#logBaseAdrIn
TSI#logBaseAdrOut // valid only when not equal to _SC_INVALID_ADDRESS
TSI#logDiagAdr
TSI#eventClass
TSI#faultId
2.5 Power Up and Synchronization with the User Program
// valid only when not equal to _SC_INVALID_ADDRESS
// valid only when not equal to _SC_INVALID_ADDRESS
// set to 0
// set to 0
// set to 0
Configuration/programming
37

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simotion tm17

Table of Contents