Direct output to Event Logger
In order to use the output directly to the “new” Event Logger, specify the keyword TC3_EVENT_LOGGER in P-STUP-00167. Errors are then logged directly by the CNC in the new format and no longer via the ChannelError() PLC block. Errors continue to be output to the PLC
If the PLC is no longer required to evaluate CNC error messages, error output to the PLC can be suppressed by:
Alternatively, the mode can be set accordingly via the cnc_error_manager_mode_w CNC object
Output of messages from the NC program to the event logger
Function available as of CNC Build V3.1.3080.11
The user can utilise the NC command #MSG to send messages from the NC program to the TwinCAT3 event logger. Messages are output channel-specific.
This takes place with the warning ID 1035. Messages can be output both immediately after decoding or synchronised with processing of the interpolator (SYN).
Messages have the INFO priority for the event logger. Messages have no acknowledgement. If a message is programmed with a mode that has an acknowledgement (ACK or SYN_ACK), the warning ID 1036 is output. This message is sent without acknowledgement request.
The user can explicitly clear messages in the programming.
Messages are also cleared on CNC reset or when the controller is shut down.
Programming Example
Messages to the event logger
The resource file TcCncErrors.xml must be modified in order to obtain the following output in the Beckhoff GUI with the NC command lines displayed.