The driver provides this function block in order to process alarms inside the application. The function block should be called to acknowledge an alarm.

Acknowledge first alarm in the FIFO queue:

  • It removes the first alarm from the FIFO queue.
  • Depending on the parameter values, it also sends the alarm acknowledgement (RTA_DATA Alarm Ack) back to the device.

NOTE: If you do not call this function block, the alarm will remain in the FIFO queue.

Inputs

Parameter

Data type

Description

EN

BOOL

Enable FB to acknowledge alarm.

  • If TRUE, the alarm will be removed from FIFO. And if SEND_ACK parameter is TRUE also, an alarm acknowledgement will be sent to the device.
  • If FALSE, nothing happens

SEND_ACK

BOOL

  • TRUE if you want the controller to send an alarm acknowledgement to the device.
  • FALSE otherwise

PNIOSTATUS

UDINT

PNIO Status to be sent in the alarm acknowledgement.

How a Profinet status is composed is shown below the tables.

  • Special case No Error:
    PNIOStatus (=0x00, 0x00, 0x00, 0x00) = 0x00000000
  • Special case Alarm Type Not Supported or if a reserved Alarm Type is used:
    PNIOStatus (=0xDA, 0x81, 0x3C, 0x00) =0xDA813C00
  • Special case Wrong Submodule State:
    PNIOStatus (=0xDA, 0x81, 0x3C, 0x01) =0xDA813C01

Outputs

Parameter

Data type

Description

Q

BOOL

  • TRUE if OK.
  • FALSE if not OK.

Created with the Personal Edition of HelpNDoc: Create Professional CHM Help Files with HelpNDoc's Easy-to-Use Tool