Back

Topic

[KB1028]CwAudit and Timestamped frames

Tags: Cimway

5 years ago
By RT
Options
Print
Applies to:

PcVue all versions before 16


Summary:

Use the CwAudit utility to trace time-stamped frames.
The CwAudit utility is a tool for activating traces related to data acquisition via the CIMWAY communication manager.
It is located in the BIN directory of PcVue.
In order to use it, it is necessary to launch it BEFORE launching the CIMWAY communication (ideally: launch it before launching PcVue)
You can test it with a sample project available in this article: Timestamped ModbusIP project.

Caution: Since PcVue version 16, CwAudit.exe has been removed. It is now possible to activate traces at equipment level directly in the Application Explorer.


Details:

In order to track the data from the time-stamped frames, you must

  1. configure CwAudit as follows:
    • Menu Trace → Cimway32 : select driver number. If there is only one network: Driver1
      CwAudit Cimway32
    • Menu Trace → Drivers → Driver1: select Bit18, Bit19, Bit20, Bit21, Bit31
      CwAudit Drivers
    • Menu Trace → Start : to start tracing
      CwAudit Start
  2. In Scada Basic, activate CIMWAY traces on the equipement using the following instruction:
    CIMWAY(“SENDMSG“,”NetworkId.EquipmentId”, “TraceOn“);
    Scada Basic tracesInterpretation of traces:

    [Date][mask]     TimestampedFrame ExtractInformationFromFrame Nb Bloc=x
    [Date][mask]     TimestampType Num=x Add=y Type=z Val0=a Val1=b Date=c Time=d
    [Date][mask]     VariableFrame matched with Type=z Add=y
    [Date][mask]     TimestampedFrame Reset Block Number Header value = w

    Line 1 : number of blocks read on the frame TimeStamped
    Line 2 : reading of the time-stamped data on the frame TimeStamped. Ex. TimestampType: CEI
    Line 3 : correspondence between the data read and the variable on the frame VariableFrame → variable found
    Line 4 : reset the header of the transfer area so that the equipment deletes the blocks read

  3. Result:
    CwAudit Result

The information you see in this dialog box can be retrieved in Etc folder of PcVue, in CwAudit trace files.


Created on: 10 Jul 2019 Last update: 30 May 2024