DISPLAY_GRP function. Schneider Electric Software PLC Application-Specific Functions, Micro/Junior/Pro, 4.5
Hirdetés
Hirdetés
Built-in DOP functions
DISPLAY_GRP function
Role This function is used to simultaneously display a group of messages contained in the CCX17 operator dialog console memory.
Implementation
Specific parameter:
Message group number
Implementation of the DISPLAY_MSG function is developed in the Description of parameters (See Description of the parameters common to the different DOP
The Message group number parameter defines the group message identifier contained in the CCX 17 memory.
Its value is between 1 and 100.
Example of application
The example given below makes use of the DISPLAY_GRP function to display a group of two status messages 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 without application, is shown using the
SEND_MSG function.
Application description Variables used l l
The aim of this example is, after setting application to RUN (%S13 =1): l initializing the PLC variables, l writing the console address (ADR#0.04) in word table, l l adjustment of timeout to 50 s, condition of execution, clearing the console screen (see PANEL_CMD function), displaying the group of state n°1 messages contained in the CCX 17 application, for: l message n°1: Manu and Auto (standard format, moved to line 1, l l
Column 1), message n°2: Four 4 (double format, automatic centering, Line 4), storing the function execution.
%MW0:6: console address
%KW0:x: message 1 data to send
%MW100:4: report
%MW100:X0: activity bit
%MW102: timeout
%M100: activation condition
304
TLX DS 37 PL7 xxE
Built-in DOP functions
Introduction to the console
Manu Auto
Oven 4
Fixed messages
Program corresponding to the application
( * INIT console address, condition, timeout
*)
IF %S1.3 THEN
%MW0:6:=ADR#0.0.4;
%MW102:=500;
%M100:=0;
END_IF;
(*Write Auto, Manu and Four4 messages*)
IF NOT %M100 AND NOT %MW100:X0 THEN
DISPLAY_GRP(%MW0:6,%KW0,%MW100:4);
SET %M100;
END_IF;
DISPLAY_GRP
Parameters
Console address: %MW10
Data to be sent: %KW0
Value of data to be sent
Message group number:
Entry help screen corresponding to the application:
1
6 Report: %MW100 4
OK Cancel
TLX DS 37 PL7 xxE
305
Letöltés
Hirdetés