FB_UserLoggingHmi

FB_UserLoggingHmi 1:

HMI parallel class to the FB_UserLogging.

Syntax:

FUNCTION_BLOCK FB_UserLoggingHmi EXTENDS FB_BaseHmi

FB_UserLoggingHmi 2: Properties

Name

Type

Access

Initial value

Description

Name

STRING

Get, Set

<SourceName>

Specifies the name of the class instance.

FB_UserLoggingHmi

MaxDays

UDINT

Get, Set

360

Maximum number of days (files).

MaxMemory

LREAL

Get, Set

1000 [MB]

Maximum memory size of the logging files.

SubDirectory

STRING

Get, Set

‘UserLog‘

Subdirectory of the logging files in the Plastic Base Application standard directory.

FB_Base

BaseState

E_BaseState

Get

eNotHandled

Initialization state of the class instance.

Error

BOOL

Get

FALSE

Class is in an error state.

ResultMessage

I_AppMessage

Get

-

Access to the class-internal EventLogger.

[PROTECTED] _Name

STRING

Get

<SourceName>

.Name without leading 'fb'.

FB_UserLoggingHmi 3: Methods

Name

Description

Reset()

Resets the error state of the class.

FB_UserLoggingHmi

Logg(...)

Logging a changed parameter from the HMI.

This method can be called from the HMI.

LoggU(…)

Logging a changed parameter from the HMI. This method extends Logg() with an additional input parameter for the physical unit.

This method can be called from the HMI.

FB_BaseHmi

Init(ipBase)

Default initialization method to pass the base class.

FB_UserLoggingHmi 4: Interfaces

Type

Description

I_Base

Standard interface on FB_Base.

I_UserLoggingHmi

Standard interface on FB_UserLoggingHmi.

I_BaseHmi

Standard interface on FB_BaseHmi.

I_BaseEmpty

For extension without standard interface.

I_BaseDev

Covers all methods and properties of the base class.

Requirements

Development Environment

Target platform

PLC libraries to include

TwinCAT 4026 >= v3.1.4026.16
TwinCAT 4024 >= v3.1.4024.66

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v12.12.0.0)