ASSIGN_KEYS function. Schneider Electric Software PLC Application-Specific Functions, Micro/Junior/Pro, 4.5
ಜಾಹಿರಾತು
ಜಾಹಿರಾತು
Built-in DOP functions
ASSIGN_KEYS function
Role This function is used to configure all or some of the command keys of a CCX 17 console by linking them to internal bits from the communication master PLC.
Using this function globally modifies the configuration of the affected command keys.
The maximum number of keys that can be configured is twelve, however, only the keys present on the console receiving the command are taken into account.
The ASSIGN_KEYS function is available whether or not the CCX 17 has an application.
Parameters Zone The principle of implementing the Parameters zone is elaborated in the Description of parameters (See Description of the parameters common to the different DOP
Zone: Set by l l
This zone is used to specify which out of the PLC or CCX 17 contains the key configuration data.
PLC: the data considered is that entered in the Command key zones,
CCX 17 the data considered is that from the application contained in the console.
Zone: Command key x
Characteristics
Inhibit
Action
Address
Symbol
This zone is used to define the characteristics associated with each key.
The table below shows the various possible characteristics.
Meaning
Invalidates the key status. Its confirmation inhibits the action and address / symbol fields.
Defines the operating mode of the key.
Selecting the mode on edge means that pushing in the key causes the associated bit to be set to 1, and releasing it causes it to be set to 0.
Choosing counter output mode means that pushing in the key changes the bit status. The default value is on edge.
Specifies the %Mi internal bit address associated with the key. If the symbol associated with this bit exists in the station database, it is automatically taken into account during address confirmation.
Specifies the symbol associated with the bit. The address associated with this symbol is automatically taken into account.
Zone: Display command keys
Command keys are configured in groups of four.
This zone is used to access the various groups of keys.
TLX DS 37 PL7 xxE
315
Built-in DOP functions
Application example
The example given below makes use of the ASSIGN_KEYS function to assign a function to the T CCX 1720 W console command keys1 and 2.
This is connected to a TSX Premium via the AUX port (configured in UNI-TELWAY link, addresses 4 - 5).
Note: For a CCX 17 with application, the assignment of command keys can be included here, making this PLC application unnecessary.
Application description l l l
Initial conditions l l l writing the console address (ADR#0.0.4) in a word table, adjustment of timeout to 50 s, condition of execution,
Application: The aim of this example is: to assign the %M0 variable to command key 1, to assign the %M2 variable to command key 2, storing the function execution.
Variables used
%MW0:6: terminal address
%KW240:x: data to be sent.
%MW100:4: report
%MW100:X0: activity bit
%MW102: timeout
%M0: Manu variable
%M2: Auto variable
%M12: condition of execution
%M108: condition of execution
Introduction to the console
Key 1 Key 2
Program corresponding to the application
( * INIT console address, condition, timeout
*)
IF %S1.3 THEN
%MW0:6:=ADR#0.0.4;
%MW102:=500;
%M108:=0;
END_IF;
(* Assign command keys *)
IF %M12 AND NOT %M108 AND NOT %MW100:X0 THEN
ASSIGN_KEYS(%MW0:6,%KW240:16,%MW100:4);
END_IF;
316
TLX DS 37 PL7 xxE
Entry help screens corresponding to the application:
ASSIGN_KEYS
Parameters
Console address:
Data to Send:
%MW0
%KW240
Set by
PLC
6
16
Report:
CCX17
%MW100 4
Command key 1
Inhibit
Symbol: Manual
Address:
%MV0
Command key 3
Inhibit
Symbol:
Address:
Action
On edge
On state
Action
On edge
On state
Command key 2
Inhibit
Symbol: Auto
Address:
%M2
Command key 4
Inhibit
Symbol:
Address:
Action
On edge
On state
Action
On edge
On state
Key 9 to 12...
Key 1 to 4...
Display command keys
OK
Key 5 to 8...
Cancel
Built-in DOP functions
TLX DS 37 PL7 xxE
317
ಡೌನ್ಲೋಡ್ ಮಾಡಿ
ಜಾಹಿರಾತು