Settings for Logging

Overview

  1. Select PLC > Data recording from the project navigator
    The Data recording window is displayed.
  2. Set Application to Logging
    • General settings

      Item

      Setting range

      Description

      Application Logging, Trace

      Select Logging

      Buffer size (kWords)

      8–1024

      Select buffer size

      File name on SD card All ASCII characters in the range from 0x20 to 0x7E can be used. Set a file name
      Files per SD card folder

      1–2000

      Set the maximum number of files in one folder

      If exceeded

      Delete oldest file/Stop logging

      Action if max. files is reached:

      • Delete oldest file: Completes a file, and deletes the oldest file in the PLC. After that, creates a new file.

      • Stop logging: Stops logging.

      File writing

      Automatic/Per sample

      • Automatic: Once a file is completed, it is written to the SD card.

      • Per sample: After every sample, the file is completed and written to the SD card.
    • Logging

      Item

      Setting range

      Description

      Start when changing to RUN mode

      Activate/deactivate

      Select a condition to start data recording.
      • Activated: Data recording starts when changing to the RUN mode.
      • Deactivated: Data recording is started or stopped by the operation of programming tool or the FP_LOGTRACE_START/FP_LOGTRACE_STOP instructions in user programs.
      Sampling trigger Bit
      • Select this option if the sampling should be triggered by a bit. Enter a global variable or select a system variable to specify the trigger bit.

      • Logging is executed when the condition is met at the end of a scan.

      Instruction (FP_LOGTRACE_SAMPLE)

      Data recording is triggered by executing FP_LOGTRACE_START or FP_LOGTRACE_SAMPLE. The FP instructions only work if Sampling trigger is set to Instruction (FP_LOGTRACE_SAMPLE). Please note that no error message appears when you compile a PLC program that uses FP_LOGTRACE_START or FP_LOGTRACE_SAMPLE and Sampling trigger is NOT set to Instruction (FP_LOGTRACE_SAMPLE). However, an error will occur in the PLC and will be displayed in the PLC status dialog.

      Interval
      • Select this option if the sampling should be executed after a specified time interval has passed.
      • Enter the time interval. Available time units are s, min, h.

      • When the unit is s or min, adjust to trigger sampling at 0min. 0s. of every hour. When the unit is h, adjust to trigger sampling at 00:00:00 of every day.
      Time

      Select a clock time as logging trigger for starting logging.

      Every minute, hour, day, week, month or year
      Detailed time settings Specify details corresponding to the first time setting.
    • File completion conditions

      Item Setting range Description
      Bit

      Specify an arbitrary bit device.

      • Select this option if the saving of the file should be triggered by a bit. Select a variable from the Variables pane, e.g. sys_bIsLog0Done.

      • Select a bit which turns on for only one scan at the end of the scan.

      Time Every minute, hour, day, week, month or year

      Select this option if the file should be saved at a certain time and specify the time accordingly.

      Detailed time settings Specify details corresponding to the first time setting.
      Samples per file

      1–1000000

      Select this option if the file should be saved after a certain number of samples. Specify the upper limit.

Tip
  • It is possible to set more than one file completion condition.

  • Even when active logging stops, a file will be saved.

Related topics:

Modified on: 2020-10-01Feedback on this pagePanasonic hotline