Language objects associated with the process control channels. Schneider Electric PL7 Junior/Pro - Premium PLC Applications - Process control
Reklama
Reklama
Process control language objects
11.1
Language objects associated with the process control channels
At a Glance
Aim of this
Section
What's in this
Section?
This section describes the language objects associated with the process control channels.
This Section contains the following Maps:
Topic
Introduction
Double word "Order of Command"
Control loops command word
Setpoint programmer command word (%MWxy.i.7)
Summary of selection and command words
Page
284
TLX DS 57 PL7 xxE
Process control language objects
Introduction
At a Glance
Sending commands
All the variables associated with a process control channel (for example: Kp,
T_FILT, ...) are in default read and/or write.
The language object %CH is used to simplify explicit reads and writes. It is used to: l l l l
Read module and channel status words.
Write parameters.
Save parameters.
Send commands.
Explicit instructions are applied to the language object of the %MWxy.i.j channel.
Example 1: sending an autotune order to the first loop of a 3 single loops loop controller. This word contains the explicit command acting on the control loop.
(*autotuning command*)
%Mwxy.i.13:=16#000E
(*on 1 st
loop*)
%MDxy.i.14:=1
(*send command *)
%M100
WRITE_CMD %CH0x.i
There is no limit to the number of commands on a PLC cycle. The recognition of the instruction and the updating of the states of the process control channel concerned come into effect on the next cycle of the task.
Note: Orders associated with the operating mode of the loop controller (Auto,
Manu, Tracking, Autotuning) cannot be sent at the same time in the same cycle
(only the last instruction carried out in the cycle is recognized). In contrast, complementary orders (of the types Remote, freeze Totalizer function , etc.) can be sent in the same cycle.
TLX DS 57 PL7 xxE
285
Process control language objects
Example 2: sending Manu mode to the slave loop of a cascade type channel.
! (*slave loop selection*)
%MDxy.i.12: =2;
! (*switching to manual mode*)
%MWxy.i.11: =16#0023;
! (*send command*)
IF %M100 THEN WRITE_CMD %CHx.i;
END_IF;
Values Command parameter or selection word (%MDxy.i.j) values l l l
Setpoint programmer
%MDxy.i.8 = j profile j j ={1, ..., 6}
Cascade loop
%MDxy.i.12 = 1 master loop
%MDxy.i.12 = 2 slave loop
Auto selector loop
%MDxy.i.12 = 1 main loop
%MDxy.i.12 = 2 secondary loop
%MDxy.i.12 = 4 global loop
As the process loop has only one loop, the %MDxy.i.12 command parameter has no significance.
l 3 single loops loop controller
%MDxy.i.14 = j profile j j ={1, 2, 3}
286
TLX DS 57 PL7 xxE
Process control language objects
Double word "Order of Command"
At a Glance The double word order of command , defined in the configuration of each loop, enables one or more operating mode change commands to be sent.
The required double word %MD is entered with loop parameters of the configuration screen.
The first sixteen bits of X0 to X15 are the same as those of the status word of the periodic data table. This single word is copied into the fist part of the double word order of command .
Note: if the option Reset %MWi on cold restart is checked on the processor configuration screen, the X28 bit of the order of command double word will be reset to zero during the first cycle following cold restart. It is therefore mandatory that the
X28 bit is set to 1 by the application in the processing section of the cold restart
(application operating mode management).
%MDi:X0
%MDi:X1
%MDi:X2
%MDi:X3
%MDi:X4
%MDi:X5
%MDi:X6
%MDi:X7
%MDi:X8
%MDi:X9
%MDi:X10
%MDi:X11
%MDi:X12
%MDi:X13
Description
Double word bit
This table describes each bit of the order of command double word.
Description Indication Associated simple word bit
%MWi:X0
%MWi:X1
%MWi:X2
%MWi:X3
%MWi:X4
%MWi:X5
%MWi:X6
%MWi:X7
%MWi:X8
%MWi:X9
%MWi:X10
%MWi:X11
%MWi:X12
%MWi:X13
0 : Manu, 1 : Auto
Tracking
Autotuning
0 : Remote, 1 : Local
Output 1 of ON OFF or of SERVO
Output 2 of ON OFF3 or of SERVO
Output 1 of SERVO2
Output 2 of SERVO2
SP1 or SP2 selection
Auto-selector in auto-selection mode
Auto-selector in direct main loop mode
Auto-selector in direct secondary loop mode
PID1 or PID2 output selected
Reserved
X
X
X
X
X
-
X
X
X
X
X
X
X
X
Command
(1)
X
X
X
X
X
X
X
X
-
-
X (2)
X(2)
-
TLX DS 57 PL7 xxE
287
Process control language objects
%MDi:X18
%MDi:X19
%MDi:X20
%MDi:X21
%MDi:X22
%MDi:X23
%MDi:X24
%MDi:X25
%MDi:X26
%MDi:X27
%MDi:X28
Double word bit
%MDi:X14
%MDi:X15
%MDi:X16
%MDi:X17
%MDi:X29
%MDi:X30
%MDi:X31
Associated simple word bit
%MWi:X14
%MWi:X15
%MWi+1:X0
%MWi+1:X1
Description
%MWi+1:X2
%MWi+1:X3
%MWi+1:X4
%MWi+1:X5
%MWi+1:X6
%MWi+1:X7
%MWi+1:X8
%MWi+1:X9
Autotuning diagnostics acknowledgement
SERVO1 re-initialization
SERVO2 re-initialization
Save parameters
Reserved
Reserved
%MWi+1:X10 Reserved
%MWi+1:X11 Reserved
%MWi+1:X12 0 : Writing of command word prohibited,
1 : writing of command word authorized
%MWi+1:X13 Reserved
%MWi+1:X14 Reserved
%MWi+1:X15 Reserved
Indication
Reserved
Reserved
0 : copy not used,
1 : copy used
0 : unfreezing of the totalization, 1: freezing of the totalization
X
X
Re-initialization of the totalization
Return to previous adjustments
-
-
-
-
-
-
-
-
-
-
-
-
X
-
-
-
Command
(1)
X
-
-
-
-
-
X
-
-
X
X(3)
-
-
X(3)
X(3)
X(3)
X(3)
X(3)
Key
X : Yes
- : No
(1) : the command is only acknowledged if the X28 bit is at 1
(2) : for the function, there is no associated command, it is simply for information
(3) : the bit is automatically rest to zero
288
TLX DS 57 PL7 xxE
Process control language objects
Control loops command word
Value of the command word
%MWxy.i.11 is the command word for process, cascade and auto selector loops.
%MWxy.i.13 is the command word for the 3 single loops loop controller.
Value
16#0001
16#0002
16#0003
16#0004
16#0005
16#0006
16#0007
16#0008
16#0009
16#000A
16#000B
16#000C
16#000D
16#000E
16#000F
16#0010
16#0011
16#0012
16#0013
16#0014
16#0015
16#0016
16#0017
16#0018
Meaning
Switches to Simulation or Non-simulation mode for the process value input
Switches to Remote or Local mode
Switches to Manual or Automatic mode
Freezes Totalizer function
Unfreezes Totalizer function
Resets Totalizer function
Selects Remote1 setpoint
Selects Remote2 setpoint
Not used
Not used
Switches to Simulation or Non-simulation for Feed Forward input
Switches to Tracking mode
Switches to Non-tracking mode
Starts autotuning
Stops autotuning
Returns to previous adjustments
Uses copy (Cannot be used after a Split Range or Heat/Cool PID)
Does not use copy (Cannot be used after a Split Range or Heat/Cool PID)
Acknowledges autotuning diagnostics
Activates RAISE
Deactivates RAISE
Activates LOWER
Deactivates LOWER
Not used
16#0020
16#0021
16#0022
16#0023
16#0024
Resets Servo2
Selects the setpoint in Local mode
Selects the setpoint in Remote mode
Switches to Manu
Switches to Auto
TLX DS 57 PL7 xxE
289
Process control language objects
Value
16#0025
16#0026
16#0027
Meaning
Position of selector in auto selector
Position of selector in the main loop
Position of selector in the secondary loop
290
TLX DS 57 PL7 xxE
Process control language objects
Setpoint programmer command word (%MWxy.i.7)
Value of the command word
%MWxy.i.7 is the setpoint programmer command word.
Value
16#0001
16#0002
16#0003
16#0004
16#0005
16#0006
16#0007
16#0008
16#0009
16#000A
16#000B
Meaning
Resets the setpoint programmer (action on the current profile)
Triggers the selected profile
Stops the selected profile
Freezes evolution of the profil
Unfreezes current profile
Jumps to the following segment
Jumps to the previous segment
Inhibits the guaranteed dwell time function
Activates the guaranteed dwell time function
Freezes / Unfreezes profile evolution
Freezes / Unfreezes the guaranteed dwell time function
TLX DS 57 PL7 xxE
291
Process control language objects
Summary of selection and command words
Type of channel: This table reiterates the selection and command words for each type of loop.
Type of loop
Process Loop
Cascade Loop
Auto Selector Loop
3 single loops
Setpoint programmer
Command word Command parameter or Selection word
%MWxy.i.11
%MWxy.i.11
None
%MDxy.i.12 = j
(j = 1: master, 2: slave)
%MWxy.i.11
%MDxy.i.12 = j
(j = 1: main, 2: secondary, 4: global loop)
%MWxy.i.13
%MWxy.i.7
%MDxy.i.14 = j
(j = 1,2 or 3 according to loop number)
%MDxy.i.8 = j
(j = 1, 2, ... 6 according to profile number)
292
TLX DS 57 PL7 xxE
Stiahnuť
Reklama