Error alarm flags

Example

FP address: E15

IEC address: %MX10.15

NOTE

Error alarm flags (E) are only available for FP2SH/FP10SH.

Description

Restrictions

Example

The diagram below illustrates the internal structure and address assignment in the special data register area of this error buffer.

Global variables

POU header

LD body

Error alarm diagram

  1.  (1) sys_iNumberOfErrorAlarms: number of alarms that have occurred
  2.  (2) sys_iErrorAlarm1RelayNumber...sys_iErrorAlarm19RelayNumber: error alarm flags stored in the order they were set to TRUE
  3.  (3) Error alarm E15 is set to TRUE
  4.  (4) Time at which the first error alarm flag was set to TRUE:
    •  (1) sys_wErrorAlarm1MinSec: second and minute data
    •  (2) sys_wErrorAlarm1DayHour: hour and day data
    •  (3) sys_wErrorAlarm1YearMon: month and year data
    •  (4) sys_bIsErrorAlarmRelayOn : TRUE when one of the error alarm flags E0–E2047 is TRUE

Because in Control FPWIN Pro all write operations on error flags are internally compiled into SET and RST instructions, all write operations to an error flag affect the special internal flag R9040 and the special data registers DT90400 to DT90422.

When all error alarm flags are set to FALSE, sys_bIsErrorAlarmRelayOn will be set to FALSE.

To monitor alarm flags using Control FPWIN Pro: Monitor > Special flags and registers > Alarm flags or evaluate the system variables of alarm flags.

Related topics:

Modified on: 2019-12-10Feedback on this pagePanasonic hotline