DISPLAY_ALRM function. Schneider Electric Software PLC Application-Specific Functions, Micro/Junior/Pro, 4.5
Pubblicità
Pubblicità
Built-in DOP functions
DISPLAY_ALRM function
Role
Implementation
This function is used to display an alarm message contained in the CCX17 operator dialog console memory.
Implementation of the DISPLAY_ALRM function is developed in the Description of parameters (See Description of the parameters common to the different DOP
Note: It is imperative that the associated message in the CCX 17 console is deactivated on the disappearance of the alarm in the PLC (see function
PANEL_CMD), in order to enable a potential new activation of this alarm.
Specific parameter:
Alarm message number
The Alarm message number parameter defines the alarm message identifier contained in the CCX 17 memory.
Its value is between 1 and 300.
l l
An alarm can be activated exclusively by: letter box (requires MMI 17 WIN software), built-in DOP functions
Note: Only the alarms with numbers higher than the length of the letterbox can be accessed by the DISPLAY_ALRM function.
Application example
The example given below makes use of the DISPLAY_ALRM function to display an alarm message on the screen of a T CCX 1720 W console containing an application.
This is connected to a TSX Premium via the AUX port (configured in UNI-TELWAY link, addresses 4 - 5).
Note: This same example, using a CCX 17 with application, is shown using the
SEND_ALRM function.
306
TLX DS 37 PL7 xxE
Built-in DOP functions
Application description Variables used
Initial conditions l l l writing the console address (ADR#0.04) in a word table, adjustment of timeout to 50 s, condition of execution,
Application: The aim of this example is: l l to detect overshoot of a temperature threshold (500 °C), to display the alarm message contained in the CCX 17 application, for: l Overheat four = xxx °C (standard format, automatic setting imposed by the function, variable with attributes: increment of 50, three-digit integer), l storing the function execution.
%MW0:6: console address
%KW80:x: data to be sent.
%MW100:4: report
%MW100:X0: activity bit
%MW102: timeout
%M103: activation condition
%MW10: Temperature variable
Introduction to the console
System display Alarm message
*ALARM*
Oven overheating = xxx °C
Program corresponding to the application
( *INIT console address, condition, timeout
*)
IF %S1.3 THEN
%MW0:6:=ADR#0.0.4;
%MW102:=500;
%M103:=0;
END_IF;
(*Time overrun control*)
IF %MW10>500 THEN
SET %M12;
ELSE RESET %M12;
END_IF;
(* Write Surch alarm message… *)
IF %M12 AND NOT %M103 AND NOT %MW100:X0 THEN
DISPLAY_ALRM(%MW0:6,%KW0,%MW100:4);
SET %M103;
END_IF;
TLX DS 37 PL7 xxE
307
Built-in DOP functions
Entry help screen corresponding to the application:
DISPLAY_ALRM
Parameters
Console address: %MW0
Data to be sent: %KW150
6 Report: %MW100 4
Value of data to be sent
Number of alarm message: 1
OK Cancel
308
TLX DS 37 PL7 xxE
Scarica
Pubblicità