Diagnostics and Alarms
Original instructions
General Diagnostics
The module reports in the status bits for a general diagnostic of the module and its channels:
Detected error or detected fault
IODDT (T_CPT_FLM_IN2)
Where:
  • r = rack number
  • m = module number
  • c = channel number
Device DDT (T_CPT_FLM_IN2)
Where:
  • c = channel number
Label
Address
Label
Module detected error (1)
%Ir.m.MOD.ERR
MOD_HEALTH
Channel detected error (1)
CH_ERROR
%Ir.m.c.ERR
CPT_CH_IN[c].CPT_CH_IN_CH_HEALTH
Error detected while reading channel status
STS_ERR
%MWr.m.c.1.0
External detected fault on inputs(2)
EXTERNAL_FLT_INPUTS
%MWr.m.c.2.0
External detected fault on outputs(2)
EXTERNAL_FLT_OUTPUTS
%MWr.m.c.2.1
Sensor supply detected fault(2)
SENSOR_SUP_FLT
%MWr.m.c.3.2
CPT_CH_IN[c].SENSOR_SUP_FLT
Actuator supply detected fault(2)
ACTUATOR_SUP_FLT
%MWr.m.c.3.3
CPT_CH_IN[c].ACTUATOR_SUP_FLT
MPU broken input line(2)
MPU_BROKEN_LINE
%MWr.m.c.3.4
CPT_CH_IN[c].MPU_BROKEN_LINE
Short circuit or overload on the output (2)
SHORT_CIRCUIT_OUTPUT
%MWr.m.c.3.5
CPT_CH_IN[c].SHORT_CIRCUIT_OUTPUT
(1) 
Implicit language objects: Global diagnostic bits maintained by the system.
(2) 
In topological data model (with IODDT), the application has to trigger the elementary function READ_STS to make those status bits refreshed from the module.
Application Diagnostic
The following bits of the COUNTER_STATUS word provides details on the validity of the produced values:
Bit Position
Label
Meaning
0
VALIDITY_FREQUENCY
0 reports that the frequency value is no more refreshed for any reason
1 when the frequency value can be used
1
VALIDITY_RATIO
0 reports that the ratio value is no more refreshed for any reason
1 when the ratio value can be used
2
VALIDITY_ANGLE
0 reports that the angle value is no more refreshed for any reason
1 when the angle value can be used
5
STOPPED
Input frequency is stopped for more than 1 second
6
UNDER_LIMIT
Input frequency too low
The frequency is less than 100 Hz when the sampling period is 10 ms. In general the frequency is less than the sampling rate.
Frequency value still provided and valid until the input frequency detected stopped
7
OVER_LIMIT
Input frequency too high
Input frequency reaches 80% or more than the input bandwidth. Bandwidth depends on the configured input filter.
Value still provided and valid until the input frequency detected stopped because the input frequency fast
Alarm Bits
The alarm bits enable the module to latch events until the application has treated it.
The events checked to provide an alarm are:
Alarm bits are provided in Ebool format via the variable interface and can be stamped into a SOE managed with M580 CPU which the module is declared into the MAST task.
The following diagram gives the principle:
The following table presents the alarm bits (%I):
Bit (%I)
Label
Meaning
4
ST_ALARM_STOPPED
Signals that the input frequency has been detected stopped for at least one second.
5
ST_ALARM_UNDER_LIMIT
Signals that the input frequency has been detected too slow
6
ST_ALARM_OVER_LIMIT
Signals that the input frequency has been detected too fast
7
ST_ALARM_FREQUENCY_LESS
Signals that the frequency value is less than the configured limits
8
ST_ALARM_FREQUENCY_WINDOW
Signals that the frequency value is in the window defined by the configured limits
9
ST_ALARM_FREQUENCY_GREAT
Signals that the frequency value is greater than the configured limits
The following table presents the commands to reset the alarm bits (%Q):
Bit (%Q)
Label
Meaning
6
RESET_ALARMS
Reset and disable all alarm signals
7
RESET_ALARM_STOPPED
Reset and disable the alarm bit ST_ALARM_STOPPED
8
RESET_ALARM_UNDER_LIMIT
Reset and disable the alarm bit ST_ALARM_UNDER_LIMIT
9
RESET_ALARM_OVER_LIMIT
Reset and disable the alarm bit ST_ALARM_OVER_LIMIT
10
RESET_ALARM_FREQUENCY_LESS
Reset and disable the alarm bit ST_ALARM_FREQUENCY_LESS
11
RESET_ALARM_FREQUENCY_WINDOW
Reset and disable the alarm bit ST_ALARM_FREQUENCY_WINDOW
12
RESET_ALARM_FREQUENCY_GREAT
Reset and disable the alarm bit ST_ALARM_FREQUENCY_GREAT