Section 6 Program Code Issues Program Stop Complication
3BSE042835-600 101
Source name
The source name parameter of the AlarmCondBasic instance shall not be connected
to a parameter. By doing so, the Name parameter of the closest alarm owner will be
used as source name. It is therefore important that all objects with alarms have a
Name parameter. This Name parameter shall be assigned an unique value to have
the alarm objects to work properly.
Enable and Disable alarm from alarm list vs. Faceplate
Disable from the faceplate means disabling of XStat and XAct as well as disabling
of alarm/event. This means that the disabled alarm will be visible in the alarm list
after a Disable from faceplate or code. The standard library objects should monitor
the Alarm State and disable the alarm if the user then tries to enable the alarm from
the alarm list. It is also possible to disable an active alarm from the alarm list. Doing
so will however not influence the XStat or XAct outputs.
NLS for alarm and event
The NLS translator for alarms is discussed in sub-section National Language
Support (NLS) on page 75.
The condition name for the alarms shall be NLS-treated. This is done by assigning
an NLS-string as default value of the CondNameX parameter.
The parameter Message of AlarmCondBasic shall be connected to a string variable,
called MessageAlarmCondition. The value of MessageAlarmCondition shall
describe what has happened. If an alarm limit exceeded, the value of the limit shall
be included. The value shall be NLS handled. Example:
||SL_Greater_than_{1}_{2}\5\Degrees
which gives the following result in English “Greater than 5 Degrees”. See National
Language Support (NLS) on page 75.
Program Stop Complication
Just before the running program is stopped during a new download all the
asynchronous procedures return -15 as error code (cErrProgramStopping, the
requested operation is rejected because application program shutdown is in
progress). This is a highly probable error code, which the programmer has to take