SEND_MSG function. Schneider Electric Software PLC Application-Specific Functions, Micro/Junior/Pro, 4.5
जाहिरात
जाहिरात
Built-in DOP functions
SEND_MSG function
Role
Implementation
Application example
This function is used to display a message with a dynamic variable (if necessary) on a CCX 17 console screen.
Implementation of the SEND_MSG function is developed in the Description of parameters (See Description of the parameters common to the different DOP
The example given below makes use of the SEND_MSG function to display two status messages on the screen of a T CCX 1720 W console without 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
DISPLAY_GRP 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 l writing the console address (ADR#0.04) in a word table, adjustment of timeout to 50 s, l conditions of execution, clearing the console screen (see PANEL_CMD function), to display status messages on the console screen: l Manu and Auto (standard format, positioned on line 1, Column 1), l l Four 4 (double format, automatic centering, Line 4), storing the function display execution.
%MW0:6: console address
%KW0:x: message 1 data to send
%KW40:x: message 2 data to send
%MW100:4: report
%MW100:X0: activity bit
%MW102: timeout
%M100:2: conditions of activation,
TLX DS 37 PL7 xxE
293
Built-in DOP functions
Introduction to the console
Manu Auto
Four 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:2:=0;
END_IF;
(*Write Auto, Manu and Four4 messages*)
IF NOT %M100 AND NOT %MW100:X0 THEN
SEND_MSG(%MW0:6,%KW0:28,%MW100:4);
SET %M100;
END_IF;
IF NOT %M101 AND NOT %MW100:X0 THEN
SEND_MSG(%MW0:6,%KW0:28,%MW100:4);
SET %M101;
END_IF;
Entry help screens corresponding to the application:
SEND_MSG
Parameters
Console address:
Data to Send:
%MW0
%KW0
6
28
Message
Text: Manu Auto
Position
Mode
Manual
Line 1 Column
Column alignment
1
Auto Left Centered Right
Report:
Attributes
Flashing
Clear
None
Field
Field type
None Address Date
Symbol:
Comment:
Display format
Address:
%MW100 4
Size
Standard
Double
Parameters
Line
Data to Send:
Message
Text: Time Four 4
Position
Mode
Update
Manual
Auto
Modify
%MW0
%KW40
Line
Column alignment
Left
4 Column
6
12
15
Centered Right
Report: %MW100 4
Attributes
Flashing
Reverse video
Size
Standard
Double
Clear
None Line Scree
OK Cancel Field
Field type
None Address
Address:
Date Time
Update Symbol:
Comment:
Display format
Modify
OK Cancel
294
TLX DS 37 PL7 xxE
डाउनलोड
जाहिरात