-

AR_STATISTIC_SINGLE

Type Function block
Description The function block provides the AR (Application Relation) statistic for a specific Profinet device. The Profinet device for which the AR statistic is to be read is specified at the STAT_NAME input.

The output of the statistic values for the Profinet device specified at the STAT_NAME input is triggered with a rising edge at the REQ input.
Notes
  • 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 within one function block cannot be set to TRUE simultaneously. These signals are locked against each other.
  • 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 of the AR_STATISTIC_ITERATE function blocks.
  • 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

STAT_NAME

Outputs

DONE

BUSY

ERROR

STATUS

MISSED_FRAMES_TOTAL

MISSED_FRAMES_ACTUAL

CONNECTION_COUNT
Error codes Error codes at the STATUS output