DebugMsg (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

ALL

Firmware version:

1.00 / 1.00.00


The DebugMsg function will print a text string to the debug window - either in the RTCU Emulator or from a connected RTCU device.

 

If DebugMsg is called from a program running on an RTCU device, and there is a connection between the RTCU IDE and an RTCU device, the DebugMsg() messages is shown in the Debug Messages window.

If the message is longer than 239 characters, it will be split across multiple lines in the RTCU IDE and the split lines will be terminated with "...".

 

Input:

message : STRING

Message string.

 

Returns:

None

 

Declaration:

FUNCTION DebugMsg;
VAR_INPUT
  message : STRING;
END_VAR;

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
BEGIN
  ...
  // show a message in the debug window
  DebugMsg(message:="Hello from VPL Program");
  ...
END;
 
END_PROGRAM;