TCUNIT_ADSLOGSTR  Function

This function allows to put ADS strings into the TcUnit ADS message buffer. If ADSLOGSTR() is used directly, the messages can come out of sequence in relation to the message created by TcUnit as TcUnit buffers the messages to not overflow the ADS message router. By using this function, the ADS-messages are put in the same buffer as TcUnit is using for its output and thus the sequence will be correct


Inputs

Name Type Description
msgCtrlMask DWORD Message control mask
msgFmtStr T_MaxString Message format string
strArg T_MaxString STRING argument
Declaration source
(* This function allows to put ADS strings into the TcUnit ADS message buffer. If ADSLOGSTR() is used directly,
   the messages can come out of sequence in relation to the message created by TcUnit as TcUnit buffers the messages to
   not overflow the ADS message router. By using this function, the ADS-messages are put in the same buffer as
   TcUnit is using for its output and thus the sequence will be correct *)
FUNCTION TCUNIT_ADSLOGSTR
VAR_INPUT
    msgCtrlMask : DWORD; // Message control mask
    msgFmtStr : T_MaxString; // Message format string
    strArg : T_MaxString; // STRING argument
END_VAR