Infosys在阅读器中打开 / AI 翻译

TF8xxx - Industry specific · 0 次阅读

Logging user changes

To log user changes using TF8550 NuGet packages, the following steps must be observed and set in the TwinCAT HMI project:

  1. 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 the PlcSymbols category of the Configurator control.
  2. Logging controls from the TF8550 NuGet packages:
    • Install NuGet package Beckhoff.TwinCAT.HMI.Controls or Beckhoff.TwinCAT.HMI.Temperature.
    • In the controls, set the LogChangesByUser property from the User Changes Logging category to TRUE.
  3. 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.
  4. 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 the File 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).
Logging user changes 1:

Available since version 12.7.0