TwinCAT PLC Library Hydraulics - Version 1.4 — 4.4.8.1 MC_AxRtLogAxisEntry_BkPlcMc (from V3.0)

PLCopen Motion Control 4.4.8 Message logging 4.4.8.1 MC_AxRtLogAxisEntry_BkPlcMc (from V3.0) The function block enters an axis-related message in the LogBuffer of the library. Further information about creating a log buffer can be found under FAQ #10 in the Knowledge Base [ } 218] . NOTE! All axis-related library function blocks use this function block for message outputs. VAR_INOUT Axis: POINTER TO Axis_Ref_BkPlcMc; END_VAR VAR_INPUT Execute: BOOL:=FALSE; pBuffer: POINTER TO ST_TcPlcMcLogBuffer; LogLevel: DWORD:=0; Source: DWORD:=0; Message: STRING(255); ArgType: INT:=0; diArg: DINT:=0; lrArg: LREAL:=0; sArg: STRING(255); END_VAR Execute :

The function block is activated by a rising edge at this input. pBuffer : This parameter is used to transfer the address of a variable of type ST_TcPlcMcLogBuffer [ } 107] . LogLevel : A coded specification of the message type. A Logger Levels [ } 244] value from the Global Constants [ } 235] should be used. Source : A coded specification of the message source. A logger sources [ } 244] value from the Global Constants [ } 235] should be used. Message : The message text. ArgType : The type of the optional argument. diArg : The value of the optional argument, if it is of type DINT. lrArg : The value of the optional argument, if it is of type LREAL. sArg :

The value of the optional argument, if it is of type STRING. Behaviour of the function block The only difference between the function block and MC_AxRtLogEntry_BkPlcMc [ } 185] is that the axis name appears before the message. PLC Library Hydraulics 184 Version: 1.4