Diagnostic options

The internal CNC schedule can be logged to diagnose MultiCore functions. This can take place at different times or interactions:

Logging first takes place in an internal logging format. Logging is then prepared in a subsequent step into a suitable representation (text format, view).

Logging the MultiCore functions
Logging the MultiCore functions

Controller start-up

For controller start-up, the logging time can be set using P-STUP-00213 of the schedule events. Logging is deactivated with a value=0 (default).

Events are logged to the text file specified in P-STUP-00214.

Example

example

Parameterisation example for diagnosing MultiCore events in the start-up list

#

# *******************************************

# TC_STARTUP_DESC: TwinCAT CNC configuration

# *******************************************

task_trace.geo.max_records        2000

task_trace.geo.filename           multicore-startup.log

task_trace.geo.history_filename   multicore-history.log

#

Logging in diagnostic data

When CNC diagnostic data is requested, the past log entries of the schedule (history) are output automatically. The length of the logging time is specified as a fixed value. The name of the output file can be modified using the start-up parameter P-STUP-00215

Using CNC objects

The following CNC objects are available for diagnostic purposes:

Example of outputs

The output format, e.g. the MultiCore-Startup.log, looks like this:

Internal logging format
Internal logging format

The representations below are produced by an internal tool to prepare the above output format.

Example output of a MultiCore schedule diagnostic file
Example output of a MultiCore schedule diagnostic file

Each MultiCore log file contains internal context information at the start, such as version number, schedule type, cycle times, etc., which make it easier to diagnose error response.

Script example
Script example