SEND_ALARM function. Schneider Electric Software PLC Application-Specific Functions, Micro/Junior/Pro, 4.5
Annons
Annons
Built-in DOP functions
SEND_ALARM function
Role This function is used to activate, on the screen of a CCX 17 console, an alarm message present in the PLC.
Note: Alarm messages are always displayed on the second line of the screen
( Superimpose parameter activated). They are dated and timed by the console which synchronizes them with the PLC clock.
Implementation Implementation of the SEND_ALARM 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 number
The Alarm number parameter defines the alarm message identifier.
Its value is between 900 and 999.
300
TLX DS 37 PL7 xxE
Example of application
Built-in DOP functions
The example given below makes use of the SEND_ALARM function to display an alarm message on the screen of a T CCX 1720 W console without 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
DISPLAY_ALARM function.
Application description Variables used
Initial conditions l l l writing the console address (ADR#0.04) in a table of words, 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 an alarm message on the console screen: l Overheat four = xxx °C (standard format, automatic setting imposed by the function, variable with attributes: increment of 50, l three-digit integer), 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
SEND_ALARM(%MW0:6,%KW0:27,%MW100:4);
SET %M103;
END_IF;
TLX DS 37 PL7 xxE
301
Built-in DOP functions
Entry help screen corresponding to the application:
SEND_ALARM
Parameters
Console address:
Data to be sent:
%MW0
%KW120
6
29
Message
Text: Oven overheating = ____°C
Alarm number: 901
Size
Standard
Field
Symbol:
Comment:
Display format
Report:
Double
%MW110
Overprint
Address:
%MW10
999 Modify
4
OK Cancel
302
TLX DS 37 PL7 xxE
Ladda ner
Annons