Technical data

Download, testing and diagnostics
CPU 317T: Technology Functions
8-26 A5E00251798-03
8.8.10 Tracing values of the user program in the CPU
The "Trace" technology DB forms the interface between TraceTool and the user
program. For tracing, you can write two values of the data type DINT, two values of
the data type DWORD and four values of the data type REAL to the relevant
variables of the Trace DB. The ErrorID variable may not be overwritten by the user
program.
The DB data are fetched from the integrated technology within the technology DB
update cycle. The technology DB update cycle can be set in S7T Config by
selecting Target system > Set system cycle clocks....
The DB is non-retentive, irrespective of the retentivity setting of the CPU.
Variable S7_TraceDINT[0..1]
The S7_TraceDINT variable is an ARRAY consisting of two elements of the data
type DINT.
These values can be selected for tracing Technology > userdata1 > user1 and
user2 when you select the signal source in the TraceTool of S7T Config.
Variable S7_TraceDWORD[0..1]
The S7_TraceDWORD variable is an ARRAY consisting of two elements of the
data type DWORD. Use these variables to trace bit information, such as the status
word / error word, in the TraceTool of S7T Config. In the TraceTool, you can select
the bit information as you are used to in the SIMATIC numbering system.
These values can be selected for tracing Technology > userdata1 > user3 and
user4 when you select the signal source in the TraceTool of S7T Config.
Variable S7_TraceREAL[0..3]
The S7_TraceREAL variable is an ARRAY consisting of four elements of the data
type REAL.
These values can be selected for tracing Technology > userdata1 > user5, user6,
user7 and user8 when you select the signal source in the TraceTool of S7T Config.