Report Statistics Data

To report statistics for a master, define these properties:
Property
Description
Statistics Reporting
Modbus
addresses for the data transmission variable and control variable. For the data transmission variable, the value returned is an integer which represents the poll time in 1/100th of a second. For the control variable, the data type is either Boolean (coil) or integer (holding register).
Use different
Modbus
addresses for all control and status holding registers, and control variable coils.
Variable Data Type
Value
Message
Boolean (coil)
False
Enabled
True
Disabled
Integer (holding register)
0
Enabled
Non-zero
Disabled
Statistics Type
The type of statistics to record for the
Modbus
master:
Statistics Type
Description
Max Scan Rate
The maximum scan time
Scan Rate
The latest scan time
Average
The average scan time
Depending on the statistics type, the control variable performs a different function. For
Max Scan Rate
and
Average
, a falling and rising edge sequence resets the measurement.
Statistics Type
Control Variable Value
Result
Max Scan Rate
False -> True (Boolean)
0 -> non-zero (Integer)
Max value remains until next cycle completed.
Max value then updated with time of next
Max Scan Rate
complete cycle.
True -> False (Boolean)
non-zero -> 0 (Integer)
Triggers a reset
Scan Rate
False -> True (Boolean)
0 -> non-zero (Integer)
No effect (data updated every cycle)
True -> False (Boolean)
non-zero -> 0 (Integer)
No effect (data updated every cycle)
Average
False -> True (Boolean)
0 -> non-zero (Integer)
Average value remains until next cycle completed.
Average value then updated with time of
Average
next complete cycle.
True -> False (Boolean)
non-zero -> 0 (Integer)
Triggers a reset
The master poll scan is defined as the time taken to poll all of the slaves defined for the master. The first slave defined in the poll list is taken as the start and end point of the timing sequence.
Sequence Number
Message
1
Slave 1 Msg 1
Master
Poll 1
2
Slave 2 Msg 1
3
Slave 3 Msg 1
4
Slave 1 Msg 2
Master
Poll 2
5
Slave 2 Msg 2
6
Slave 3 Msg 2
7
Slave 1 Msg 3
Master
Poll 3
8
Slave 2 Msg 1
9
Slave 3 Msg 3
10
Slave 1 Msg 4
Master
Poll 4
11
Slave 2 Msg 2
12
Slave 3 Msg 1
13
Slave 1 Msg 1
Master
Poll 5
14
Slave 2 Msg 1
15
Slave 3 Msg 2
To report statistics data for a
Modbus
master
  1. Click the
    Statistics
    tab, and then select the
    Report Statistics
    check box.
  2. In the
    Statistics Reporting
    area, define the
    Modbus
    addresses for these variables:
    • Data
      , application variable sending the data to the application
    • Control
      , application variable performing a different function depending on the statistics type
  3. In the
    Statistics Type
    area, select a statistics type:
    • Max Scan Rate
      , the maximum scan time
    • Scan Rate
      , the latest scan time
    • Average
      , the average scan time
  4. Click
    Save
    .
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal