GET_VALUE function. Schneider Electric Software PLC Application-Specific Functions, Micro/Junior/Pro, 4.5
Reklama
Reklama
Built-in DOP functions
GET_VALUE function
Role
Implementation Implementation of the GET_VALUE function is developed in the Description of parameters (See Description of the parameters common to the different DOP
Specific parameter:
Status message number
This parameter defines the message identifier contained in the CCX 17 memory.
Its value is between 1 and 300.
Application example
This function is used to display a status message contained in the CCX17 operator dialog console memory on a CCX 17 console screen.
This message includes a variable, which can be modified by the operator.
Entry is made in multiple mode. The operator thus has the possibility of entering several variables successively, and the PLC program processes the entered value when the variable appears.
The example given below makes use of the GET_VALUE function to display a status message containing a variable 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
GET_MSG function.
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, on user request: l l initializing the PLC variables, displaying message n°4 contained in the CCX17 application, for: l Temperature = xxx °C (standard format, automatic centering,
Line 6, variable with attributes: increment of 50, three-digit integer, periodic updating), l storing the function execution.
%MW0:6: terminal address
%KW80:x: data to be sent.
%MW100:4: report
%MW100:X0: activity bit
%MW102: timeout
%M102: activation condition
%MW10: Temperature variable
310
TLX DS 37 PL7 xxE
Built-in DOP functions
Introduction to the console
Message displayed on user request
Temperature = xxx °C
Program corresponding to the application
( *INIT console address, condition, timeout
*)
IF %S1.3 THEN
%MW0:6:=ADR#0.0.4;
%MW102:=500;
%M102:=0;
END_IF;
(* Write message Temp… *)
IF NOT %M102 AND NOT %MW100:X0 THEN
GET_VALUE(%MW0:6,%KW100:28,%MW100:4);
SET %M102;
END_IF;
Entry help screen corresponding to the application:
GET VALUE
Parameters
Console address: %MW0
Data to be sent: %KW100
Value of data to be sent
Status message number: 4
6 Report: %MW100 4
OK Cancel
TLX DS 37 PL7 xxE
311
Pobierz
Reklama