Industrial pc | parameter setting & configuration – Lenze PC-based Automation Industrial PC User Manual
Page 63

2.5 EN - 01/2012
L
63
Industrial PC | Parameter setting & configuration
Programming with the »PLC Designer«
Accessing IPC parameters from the PLC
8.3.2
The LLS_AddLog function block - Generate logbook entry
This function renders it possible to make an entry in the logbook of the Industrial PC.
The function supplies a return value TRUE if the entry was carried out.
Inputs
Function library:
PLCLoggingAccess
LLS_AddLog
T_LLS_Severity ⎯ eSeverity
Status ⎯ BOOL
T_LLS_Facility ⎯ eFacility
Valid ⎯ BOOL
STRING(80) ⎯ sLogPayLoad
Error ⎯ BOOL
Identifier/data type
Information/possible settings
eSeverity
T_LLS_Severity
Logging Severity - risk of the error
• LLS_FatalError
• LLS_Error, LLS_Warning
• LLS_Information
The Enum parameter eSeverity (IEC_INT) transferred to Add2Log as severity (BYTE).
eFacility
T_LLS_Facility
Logging Facility: - area from which the error is reported
• LLS_PLC_USER_LOG_SCOPE1
• LLS_PLC_USER_LOG_SCOPE2
• LLS_PLC_USER_LOG_SCOPE3
The Enum parameter eFacility (IEC_INT) is transferred to Add2Log as Facility
(WORD).
sLogPayLoad
STRING(80)
Logbook entry
The Ansi string from "sLogPayLoad" is transferred to Add2Log as 1-byte string
parameter. ("hs", SLOGPAYLOAD)