Programming a message to the Event Logger

Function available as of CNC Build V3.1.3080.11

A message is output to the TwinCAR3 Event Logger via the warning ID 1035.

Syntax:

#MSG EVENT_LOGGER [<mode>] ["<message_information>"]

Messages to the Event Logger can be output both immediately after decoding and synchronised with the processing state of the interpolator.

Direct output to the decoder without a mode entry and synchronous to the processing state with SYN.

It is not possible to use the ACK or SYN_ACK modes, otherwise the warning ID 1036 is output.

When

#MSG SYN EVENT_LOGGER [""]

is programmed, all active message are cleared.

Programing Example

prg_example

Messages to the event logger

%Eventlogger_test.nc

N020 P1 = 123

N030 #MSG EVENT_LOGGER["Asynchronous message %d", P1]

N040 #MSG SYN EVENT_LOGGER["Synchronous message"]

(Clear messages)

N050 #MSG SYN EVENT_LOGGER[""]

M30