-

AR_STATISTIC_ITERATE

Type Function block
Description The function block provides the AR (Application Relation) statistics for all devices. It indicates whether changed statistic values are available and successively outputs the values for every single device.

The output of the statistic values is triggered with a rising edge at the REQ input. Setting the RESET input to TRUE while the REQ input is false at the same time, resets all total counters of the Profinet statistics.
Notes
  • The statistic values in the Profinet stack are read every 1 second. This means also the extended statistics are updated every 1 second.
  • The outputs MISSED_FRAMES_GLOBAL and CHANGED_VALUE are "live"outputs. They do not have to be triggered separately with a rising edge at the REQ input. The values are updated every 1 second (see item above). Both values are global values that apply to all devices.
  • The stack internal counter for lost frames cannot be reset. This counter stops as soon as it has reached its maximum value after the last connection establishment. Due to this, also the counter that counts the number of lost frames over the total running time of the device stops, even if the counter has been reset before. The counting can be continued only after a new connection establishment of the device.
  • The REQ and RESET inputs must not be set to TRUE at the same time. If both inputs are set simultaneously, the functionality of the FB is not guaranteed.
  • A reset of the Profinet statistics with RESET = TRUE is only executed when the REQ input is FALSE at the same time.
  • If the REQ input of AR_STATISTIC_SINGLE function blocks is permanently set to TRUE, it is not guaranteed that changed values are indicated at the CHANGED_VALUE outputs.
  • Function blocks of this type have to be instantiated. The instance name of the function block has to be declared in the 'Variables' table of the POU where the FB is going to be used. The instance name must be unique within the POU.
Parameters Inputs

REQ

RESET

Outputs

MISSED_FRAMES_GLOBAL

CHANGED_VALUE

DONE

BUSY

ERROR

STATUS

STAT_NAME

MISSED_FRAMES_TOTAL

MISSED_FRAMES_ACTUAL

CONNECTION_COUNT
Error codes Error codes at the STATUS output