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
UserLoggerSymbolproperty of thePlcSymbolscategory of the Configurator control. - Logging controls from the TF8550 NuGet packages:
- Install NuGet package
Beckhoff.TwinCAT.HMI.ControlsorBeckhoff.TwinCAT.HMI.Temperature. - In the controls, set the
LogChangesByUserproperty from theUser Changes Loggingcategory 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.Controlsand 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
Pathproperty of theFile Configcategory 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 |
