Logging user changes
To log user changes using TF8550 NuGet packages, the following steps must be observed and set in the TwinCAT HMI project:
- Setting the configurator control:
- Create an instance of type FB_UserLoggingHmi in the PLC project if it does not already exist.
- Map the PLC symbol in the HMI project.
- Include the symbol at
UserLoggerSymbol
property of thePlcSymbols
category of the Configurator control. - Logging controls from the TF8550 NuGet packages:
- Install NuGet package
Beckhoff.TwinCAT.HMI.Controls
orBeckhoff.TwinCAT.HMI.Temperature
. - In the controls, set the
LogChangesByUser
property from theUser Changes Logging
category toTRUE
. - Logging further controls:
- Select a meaningful event of the control for which logging is to take place.
- Use function LogUserChanges or LogUserChangesSymbol from the NuGet package
Beckhoff.TwinCAT.HMI.Controls
and set transfer parameters. - Applying UserLoggingViewer control:
- Drag UserLoggingViewer control from the toolbox onto a content.
- Transfer the path containing the UserLog files to the control under the
Path
property of theFile Config
category using the virtual directories. - The files are created by default under the path
C:\Data\Machine\UserLog
(the path can be adjusted via the PLC).
![]() | Available since version 12.7.0 |