
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 to the technology module.
The following TaskStartInfo is supplied in the PeripheralFaultTask every time it is called:
UDINT
TSI#interruptID
// scan for triggering event
DINT
TSI#logBaseAdrIn
// valid only when not equal to _SC_INVALID_ADDRESS
DINT
TSI#logBaseAdrOut
// valid only when not equal to _SC_INVALID_ADDRESS
DINT
TSI#logDiagAdr
// valid only when not equal to _SC_INVALID_ADDRESS
DWORD
TSI#details
// set to 0
UINT
TSI#eventClass
// set to 0
UINT
TSI#faultId
// set to 0
The TaskStartInfo contains the logical address of the relevant technology module.
TSI#logDiagAdr, TSI#details, TSI#eventClass and TSI#faultId do not have any significance
for technology modules.
Further information
Further information on synchronization can be found in the SIMATIC manuals, see SIMATIC
documentation (Page 15).
For further information on the TaskStartInfo, refer to the
SIMOTION ST Structured Text Manual.
3.5
Saving and compiling a user project with SCOUT/SCOUT TIA
To save and compile with HW Config or SIMOTION SCOUT, proceed as described below:
Saving and compiling with HW Config
1. Save and compile the project via the menu Station -> Save and compile.
2. Before downloading the hardware configuration, you can select the "Check consistency"
option in the Station menu. In this way, you can check whether the hardware configuration
has been defined without errors, e.g. with regard to PROFINET settings, etc.
3. Transfer the project to the controller.
Configuring
3.5 Saving and compiling a user project with SCOUT/SCOUT TIA
Technology Modules TM Timer DIDQ for SIMOTION SCOUT and SIMOTION SCOUT TIA
60
Commissioning Manual, 01/2015