PANEL_CMD function. Schneider Electric Software PLC Application-Specific Functions, Micro/Junior/Pro, 4.5
विज्ञापन
विज्ञापन
Built-in DOP functions
PANEL_CMD function
Role This function is used to send various simple commands of the following type to the l l l l
MMI console: clearing a line or the screen, printing or clearing the operator entry log, printing or clearing the alarms log, alarm management.
Note: The PANEL_CMD function is available whether or not the CCX 17 has an application.
Parameters field The principle of implementing the Parameters field is elaborated in the Description of parameters (See Description of the parameters common to the different DOP
Field: Command This field is used to set the command associated with the PANEL_CMD function.
l l
For: clearing a line; the line number must be specified, canceling an alarm; you must designate the alarm number which corresponds to identifier given while using SEND_ALRM or DISPLAY_ALRM.
318
TLX DS 37 PL7 xxE
Built-in DOP functions
Application example
The example below shows the implementation of the PANEL_CMD function for the purpose of canceling a T CCX 1720 W console alarm.
This is connected to a TSX Premium via the AUX port (configured in UNI-TELWAY link, addresses 4 - 5).
Application description l l l
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: wiping the console screen on user demand, canceling the alarm on fault acknowledgement, storing the function execution.
Variables used
%MW0:6: console address
%KW350:x: Wipe data to be sent,
%KW360:x: Cancel data to be sent,
%MW100:4: report
%MW100:X0: activity bit
%MW102: timeout
%M102: activation condition
%M100: fault acknowledgement
Program corresponding to the application
( *INIT console address, condition, timeout *)
IF %S1.3 THEN
%MW0:6:=ADR#0.0.4;
%MW102:=500;
%M120:2:=0;
END_IF;
(* Clear alarm … *)
IF %M100 AND NOT %M120 AND NOT %MW100:X0 THEN
PANEL_CMD(%MW0:6,%KW360:3,%MW100:4);
SET %M120
END_IF;
* Clear screen *)
IF %M102 AND NOT %M121 AND NOT %MW100:X0 THEN
PANEL_CMD(%MW0:6,%KW350:3,%MW100:4);
SET %M121;
END_IF;
TLX DS 37 PL7 xxE
319
Built-in DOP functions
Entry help screens corresponding to the application:
PANEL-CMD
Parameters
Console address:
Data to be sent:
%MW0
%KW40
Commands
Clear
Screen
Entry log
Alarm log
Alarm management
Cancel an Alarm
6
2
Line
OK
Report:
Line number
%MW100
1
4
Clear
Clear
Alarm number
Cancel
PANEL-CMD
Parameters
Console address:
Data to be sent:
1
Commands
ADR#0.0.4
%KW350
Clear
Screen
Entry log
Alarm log
Alarm management
Cancel an Alarm
2
Line
Clear
Clear
Report:
Line number
Alarm number
%MW50 4
1
1
OK Cancel
320
TLX DS 37 PL7 xxE
डाउनलोड
विज्ञापन