Lenze function blocks and functions, Library: l_plcloggingaccess.lib, Function l_addlog - creating logbook entry – Lenze PLC Designer PLC Designer (R3-1) User Manual
Page 25: L-force | plc designer

L-force | PLC Designer
Lenze Specific Functions
DMS 4.1 EN 03/2011 TD29
23
2.1
Lenze Function Blocks and Functions
2.1.1
Library: L_PLCLoggingAccess.lib
Function L_AddLog - Creating logbook entry
Function library: L_PLCLoggingAccess.lib
This function makes it possible to make an entry in the logbook of the L-force
controller. It supplies the return value TRUE when the entry has been made.
Inputs
Designator / Data type
Info / Setting options
eSeverity / L_TSeverity
Logging severity - Risk of the error
L_FatalError
L_Error, L_Warning
L_Information
The Enum parameter eSeverity (IEC_INT) is sent as the severity (BYTE) to
Add2Log.
eFacility / L_TFacility
Logging facility: - Area out of which the error is reported
L_PLC_USER_LOG_SCOPE1
L_PLC_USER_LOG_SCOPE2
L_PLC_USER_LOG_SCOPE3
The Enum parameter eFacility (IEC_INT) is sent as the facility (WORD) to
Add2Log.
sLogPayLoad / STRING(80)
Logbook entry
The Ansi string from "sLogPayLoad" is sent as a 1-byte string parameter to
Add2Log. ("hs", SLOGPAYLOAD)