1.3 Measurement and Control: 1.3.1 CTRL - PID: PID Controller Block 1.3.1.1 CTRL - PID: Description

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 23

Technological Blocks

1.3 Measurement and Control

1.3.1 CTRL_PID: PID controller block

1.3.1.1 CTRL_PID: Description

Object name (type + number)


FB 61

Function
CTRL_PID is a continuous PID control block used for setting up the following
standard controller circuits: fixed setpoint controls, cascade controls (single /
multiple cascades), ratio controls, synchro controls and proportional controls.
In addition to its actual controller functions, block provides the following processing
options:
• Modes: Manual mode, automatic or tracking
• Limit monitoring of the process variable and error signal as well as message
generation via the ALARM8_P block.
• Disturbance variable input
• Setpoint tracking (SP=PV_IN)
• Setpoint value and process variable range setting (physical normalization)
• Setting the range of values for manipulated variables (physical normalizing)
• Dead band (on threshold) in the error signal branch
• Proportional, integral and derivative action, which can be enabled and disabled
individually
• Proportional and derivative action in the feedback path.
• Operating point setting for P or PD controller mode

Calling OBs
The watchdog interrupt OB in which you install the block (for example OB32). It is
also installed in OB100 (see startup characteristics).

Process Control System PCS 7 - Library


1-6 A5E00180684-02
Technological Blocks

Operating principle
The block operates as (delayed derivative action) PID controller. Its step response
is shown below, with integrator functions according to the trapezoid rule.

LMN
LMN_HLM

GAIN * TV

TM_LAG + SAMPLE_T/2 GAIN


ER(t)*GAIN
GAIN
t

TN
LMN_LLM

0 if t<0
Input jump ER(t) = {
1 if t>0

Note
The input parameter LMNR_IN is displayed in the faceplate (loop display) as the
manipulated variable. If there is no position feedback available from the process,
you can interconnect the manipulated variable output LMN with LMNR_IN in CFC
in order to display the manipulated variable in the loop display.

Process Control System PCS 7 - Library


A5E00180684-02 1-7
Technological Blocks

1.3.1.2 CTRL_PID: Signal processing in the setpoint and process


variable branches

Setpoint generation
The setpoint SP can be obtained from three different sources, which are selected
via the inputs SP_TRK_ON and SPEXTSEL_OP in accordance with the following
table:

SP_TRK_ON SPEXTSEL_OP SP= State


0 0 SP_OP Internal setpoint
irrelevant 1 SP_EXT External setpoint
1 0 PV_IN ** Tracked setpoint
** in manual mode only when SPBUMPON = 1

Internal setpoint
The internal setpoint SP_OP is controlled via OP_A_LIM or OP_A_RJC (range
SP_LLM - SP_HLM).

External Setpoint
The external setpoint SP_EXT can be interconnected and is limited to the range
(SPEXTLLM,SPEXTHLM).
Changes in the internal or external setpoint are limited to a maximum gradient
(SPDRLM, SPURLM), provided the setpoint ramp has been set (SPRAMPOF = 0).

Tracked setpoint
If SP_TRK_ON=1, the process variable PV_IN is used as the setpoint. tracking of
the setpoint to the process variable is enabled only in manual mode (for internal
setpoint and when SPBUMPON = 1), and is primarily used to provide an adequate
setpoint when switching from manual to auto mode.

Error signal generation


Is based on the effective setpoint value SP and the process variable PV_IN and is
available at the output ER after the dead band DEADB_W has expired.

ER

S P - P V _ IN
D EA DB _W

Process Control System PCS 7 - Library


1-8 A5E00180684-02
Technological Blocks

Error signal monitoring


The error signal ER is monitored for alarm limits (ERL_ALM, ERH_ALM) with a
common hysteresis (ER_HYS). Results are displayed at the corresponding outputs
(QERL_ALM, QERH_ALM).

Process variable monitoring


The process variable PV_IN is monitored for warning and alarm limits (PVL_ALM,
PVL_WRN PVH_WRN, PVH_ALM) with a common hysteresis (HYS). Results are
displayed at the corresponding outputs (QPVL_ALM, QPVL_WRN, QPVH_WRN,
QPVH_ALM).

Physical normalization
The error signal ER is normalized from the physical measuring range of the
process variable (NM_PVHR, NM_PVLR) to a percentage.

ER
ERnormiert = * 100
NM _ PVHR − NM _ PVLR

After the PID algorithm has been executed, the manipulated variable is
denormalized from a percentage value to the physical measuring range of the
manipulated value (NM_LMNHR,NM_LMNLR).

LMN normiert
LMN = NM_LMNLR + * ( NM _ LMNHR − NM _ LMNLR )
100

Internal or external setpoints, process variables as well as the corresponding


parameters are all entered in the physical measuring range of the process variable.
The manual value, tracking value of the manipulated variable, feed forward control
as well as the corresponding parameters are all entered in the physical measuring
range of the manipulated variable.
The controller GAIN is specified in normalized (dimensionless) format.

Process Control System PCS 7 - Library


A5E00180684-02 1-9
Technological Blocks

1.3.1.3 CTRL_PID: Generation of the manipulated variable


The manipulated variable LMN can be derived from three different sources, which
are selected via the inputs LMN_SEL, LIOP_MAN_SEL, AUT_L and AUT_ON_OP
as shown in the table below:

LMN_SEL LIOP_MAN_SE AUT_L AUT_ON_OP LMN= State


L
0 0 X 0 MAN_OP (is limited) Manual mode, set via the
OS
0 0 X 0 MAN_OP (is limited) Manual mode, set via the
OS
0 0 X 1 Calculated by PID Auto mode, via the OS
algorithm
0 1 0 X MAN_OP (is limited) Manual mode, set when
AUT_L=0
0 1 0 X MAN_OP (is limited) Manual mode, set when
AUT_L=0
0 1 1 X Calculated by PID Auto mode, set when
algorithm AUT_L=1
1 X X X LMN_TRK Manipulated variable
tracked
x = Any state

• The changeover from manual to auto mode is carried out at the OS by setting
the parameter AUT_ON_OP, if LIOP_MAN_SEL=0.
• The change from manual to auto is carried out by means of interconnection in
the CFC by setting the parameter AUT_L, if LIOP_MAN_SEL=1.
• Tracking mode can be enabled only by means of an interconnection via the
parameter LMN_SEL. Tracking takes priority over manual and auto mode.
In auto mode, the normalized manipulated variable is generated according to the
following algorithm:

 1 TV * s 
LMN normiert = GAIN * 1 + +  * ERnormiert
 TN * s 1 + TM _ LAG * s 

and is subsequently denormalized. Also refer to: Complex number

Disturbance variable and limitation


In automatic mode, the disturbance variable DISV is added to the output of the PID
algorithm. The result is limited to the range LMN_LLM to LMN_HLM.

Process Control System PCS 7 - Library


1-10 A5E00180684-02
Technological Blocks

1.3.1.4 CTRL_PID: Manual, automatic and tracking mode

Manual mode
The manipulated variable is set by the operator at OS via the input MAN_OP. It is
operated and limited by means of OP_A_LIM or OP_A_RJC (range MAN_HLM –
MAN_LLM). The output values of QVHL and QVLL of OP_A_LIM or OP_A_RJC
are passed to the outputs QLMN_HLM and QLMN_LLM.

Automatic mode
The PID algorithm calculates the manipulated variable. The control parameters
GAIN, TN, TV and TM_LAG can not be interconnected by default. If they must be
interconnected for exceptional applications such as gain scheduling, the
corresponding system attribute s7_link must be modified. Note that parameter
changes during automatic operation may cause to a surge of the manipulated
variable.
• The controller direction of control can be reversed (rising error signal causes a
falling manipulated variable) by setting a negative proportional GAIN. The
proportional action can be disabled by setting P_SEL = 0, and the integral
action by setting TN=0. If the manipulated variable LMN is limited for auto
mode, the integrator is set to hold (anti-wind-up). The direction of action of the
integrator is reversed by inverting the sign at parameter TN.
• Operating point (input LMN_OFF): Sets the operating point at the input
LMN_OFF. In auto mode, this value replaces the disabled integral action of the
PID algorithm. The operating point is entered in the measuring range of the
manipulated variable.
• The derivative action is designed as a delaying derivative function. It can be
disabled by setting TV=0. The direction of action of the differentiator is reversed
by inverting the sign of the value at parameter TV.
• The delay constant TM_LAG should have a meaningful ratio to the derivative
action time TV. This ratio is also referred to as the "derivative gain" (maximum
of the unit step response of the derivative component). Its value usually lies
within the range 5 < TV/TM_LAG < 10.
• Setting proportional action in feedback path: When PFDB_SEL = TRUE, the
proportional action is set in the feedback. Hence, a control step does not affect
the proportional action, so that overshoot can be reduced or avoided when the
setpoint value changes, without changing the tracking characteristics. In auto
mode, a reset at PFDB_SEL will cause an extremely high surge of the
manipulated variables, i.e. the mode should be changed only in manual mode.
• Setting derivative action in feedback path: The derivative action is set in the
feedback by setting DFDB_SEL = TRUE. A control step therefore does not
affect the derivative action. The changeover of DFDB_SEL is not bumpless.

Process Control System PCS 7 - Library


A5E00180684-02 1-11
Technological Blocks

Tracking mode
In this state (LMN_SEL=1) the manipulated variable is fetched from the
interconnected tracked value LMN_TRK and set at the output. The outputs
QLMN_HLM and QLMN_LLM are set to FALSE. "Tracking" mode takes priority
over all other modes, which means that this input can be used to configure an
emergency-off circuit for the system.

Proportional and derivative action in the feedback path


Overshoot of the process variable after a setpoint step can be reduced or avoided
by setting a P and D action in the feedback branch. In this mode, a setpoint step
neither affects the P and D action nor does it trigger a step of the manipulated
variable. Use PFDB_SEL=1 to set the P action and DFDB_SEL=1 to set the D
action in the feedback circuit.

Cascading several PID controllers


The manipulated variable LMN of the master controller is connected to input
SP_EXT of the slave controller. Also make sure the master controller is set to
tracking mode when the cascade is cut. In such cases, the slave controller
generates the signal QCAS_CUT, which is interconnected to the input LMN_SEL of
the master controller. A cut can be caused by manual or tracking mode, by setpoint
changes or manipulated variable tracking of the slave controller.
QCAS_CUT= NOT( QMAN_AUT) OR LMN_SEL OR SP_TRK_ON OR NOT(
QSPEXT_ON)
The tracking input LMN_TRK of the master controller is interconnected to the
output SP of the slave controller, in order to avoid jumps when the cascade is
closed again.
A directional lock of the integrator should be immediately triggered in the master
controller when the slave controller reaches the limit of a manipulated variable.
This is ensured by interconnecting (with controller operation in positive direction)
input INT_HPOS or INT_HNEG of the master controller to the output QLMN_HLM
or QLMN_LLM of the slave controller.

Process Control System PCS 7 - Library


1-12 A5E00180684-02
Technological Blocks

1.3.1.5 CTRL_PID: Changing operating modes

Change of the operating mode


Can be set either by means of operator control or via interconnected inputs.

External/Internal setpoint
The changeover is carried out by OS operation of the input SPEXTSEL_OP or by
interconnection of SPEXON_L. You must set the corresponding enable inputs
SPINT_EN, SPEXT_EN or the selection input LIOP_INT_SEL to enable the
changeover.
If SPBUMPON = 1, the effective setpoint is taken over to the internal setpoint in
order to allow a bumpless changeover from external or tracking mode to internal
mode.

Enabling the changeover of internal <-> external setpoint

LIO P_IN T_S EL


1
FA LS E
SP EX T_E N Q S PE XTE N
0

1
FA LS E
SP IN T_E N Q S PIN TEN
0

QSPEXTEN = TRUE: SPEXTSEL_OP can be set from FALSE


(internal setpoint) to TRUE (external setpoint).
QSPINTEN = TRUE: SPEXTSEL_OP can be reset from TRUE
(external setpoint) to FALSE (internal setpoint).
SPEXTSEL_OP is tracked or reset as required.

Enabling setpoint control via the operator input

SP_OP_ON

Q_SP_OP = TRUE: SP_OP can be set.


SP_OP is tracked or reset as required.

Manual/auto mode
The operator performs a changeover at the OS by setting input AUT_ON_OP or by
interconnecting AUT_L. You must set the corresponding enable inputs
MANOP_EN, AUTOP_EN or the selection input LIOP_MAN_SEL in order to
enable this changeover.

Process Control System PCS 7 - Library


A5E00180684-02 1-13
Technological Blocks

Enabling the changeover manual <-> auto mode


AUT_ON_OP:
LIOP_MAN_SEL

1
FALSE
AUTOP_EN QAUTOP
0

1
FALSE
MANOP_EN QMANOP
0

QAUTOP = TRUE: AUT_ON_OP can be set from FALSE (manual mode) to TRUE
(automatic mode).
QMANOP = TRUE: AUT_ON_OP can be reset from TRUE (automatic mode) to
FALSE (manual mode).
If appropriate, AUT_ON_OP is tracked or reset.

Enabling setpoint control via the operator input

OP_A_LIM / OP_A_RJC

LMNOP_O N OP_EN QOP_EN QLMNOP

QLMNOP = TRUE: MAN_OP can be set.


MAN_OP is tracked or reset as required.
Special measures are taken for the modes listed below in order to ensure a
bumpless changeover:
• External setpoint / Setpoint tracking: when SPBUMPON = TRUE, the internal
setpoint SP_OP is set equal to the effective (external or tracked) setpoint.
• Auto mode: The manual value MAN_OP is tracked to the effective manipulated
variable.
• Tracking mode: The manual value MAN_OP is tracked to the effective
manipulated variable.
• Manual or tracking mode: The integrator is tracked to allow a bumpless
changeover to auto mode.
Integral component = manipulated variable (percentage) minus the proportional
component minus the disturbance variable (percentage)
Caution: When this formula is applied, the integrator may be loaded with extremely
high numeric values if at the time of changeover the field value overshoots, i.e. an
extremely high proportional component has developed. Additional measures have
been implemented as of V6.0 to allow flexible limiting of the integral component.
The derivative component is disabled and compensated.

Process Control System PCS 7 - Library


1-14 A5E00180684-02
Technological Blocks

1.3.1.6 CTRL_PID: Error handling

Error handling
The block algorithm handles the following events:

Operator control error


QOP_ERR = 1 is set if at least one operator error occurs during the operation of
one of the parameters SPEXTSEL_OP, AUT_ON_OP, SP_OP or MAN_OP.
Otherwise, QOP_ERR=0. An operator error is held only for the duration of one
cycle.
• Parameter assignment error NM_PVHR <=
NM_PVHR:
• The error signal ER is set to zero and ENO=0 or QERR=1.
• NM_LMNHR <=
NM_LMNHR:
• In auto mode, the disturbance variable will be output and ENO=0 or QERR=1.
• Absolute value (TN) <
SAMPLE_T/2:
• When TN > 0, the result of TN = SAMPLE_T/2 forms the calculation condition,
and when TN < 0, TN = -SAMPLE_T/2 is used. When TN= 0, the integrator is
disabled and the operating point LMN_OFF is set.
• Absolute value (TV) <
SAMPLE_T:
• When TV > 0, the result of TV = SAMPLE_T forms the calculation condition,
and when TV < 0, TN = -SAMPLE_T is used. When TV = 0, the differentiator is
disabled.
• TM_LAG <
SAMPLE_T/2:
• When TM_LAG < SAMPLE_T/2, TM_LAG < SAMPLE_T/2 is used for
calculation. In these cases the derivative component behaves as an ideal
differentiator.

Process Control System PCS 7 - Library


A5E00180684-02 1-15
Technological Blocks

1.3.1.7 CTRL_PID: Startup, time and message characteristics

Startup characteristics
During CPU startup, the internal setpoint of the CTRL_PID is set in manual mode.
The block must be called from the startup OB accordingly. In CFC engineering this
is handled by the CFC. Using the basic STEP 7 tools, you must enter the call in the
startup OB.
After startup, the messages will be suppressed for the duration of the cycles set in
RUNUPCYC.

Time response
The block must be called in a watchdog interrupt OB. The sampling time of the
block is entered in the parameter SAMPLE_T.

Assignment of the 32 bit status word VSTATUS


see CTRL_PID: VSTATUS

Message characteristics
The CTRL_PID block uses the ALARM8_P block for generating messages.
Messages are triggered by
• The functions monitoring the limits of process variables and the error signals,
• The CSF signal which is referenced as a control system error by
interconnection.
Messages triggered as a result of the violation of limits can be suppressed
individually via the corresponding M_SUP_xx inputs. Process messages (not the
system control messages!) can be completely locked by setting MSG_LOCK.
QMSG_SUP is set if the RUNUPCYC cycles have not expired since the restart
when MSG_LOCK = TRUE or MSG_STAT = 21.
The table below lists message texts of the CTRL_PID block and their assignment
to the block parameters.

Process Control System PCS 7 - Library


1-16 A5E00180684-02
Technological Blocks

Assignment of message texts and message class to the block parameters

Message Block Default message text Message Can be suppressed by


No. parameter class
1 QPVH_ALM PV:$$BlockComment$$ too high AH M_SUP_AH, MSG_LOCK
2 QPVH_WRN PV:$$BlockComment$$ high WH M_SUP_WH, MSG_LOCK
3 QPVL_WRN PV:$$BlockComment$$ low WL M_SUP_WL, MSG_LOCK
4 QPVL_ALM PV:$$BlockComment$$ too low AL M_SUP_AL, MSG_LOCK
5 CSF External error S -
6 QERH_ALM ER:$$BlockComment$$ too high AH M_SUP_ER, MSG_LOCK
7 QERL_ALM ER:$$BlockComment$$ too low AL M_SUP_ER, MSG_LOCK

The first three of the auxiliary process values of the message block are assigned
SIMATIC BATCH data, the fourth is reserved for PV_IN, while the remaining value
(AUX_PRx) can be set user-specific.

Assignment of auxiliary process values to the block parameters

Value Block parameter


1 BA_NA
2 STEP_NO
3 BA_ID
4 PV_IN
5 AUX_PR05
6 AUX_PR06
7 AUX_PR07
8 AUX_PR08
9 AUX_PR09
10 AUX_PR010

Monitoring of process variables


n.a.

1.3.1.8 CTRL_PID: Block diagram

Note
In order to print out the block diagram, select landscape format in the "Print" dialog
box. The diagram is then printed on two pages, which you can join if required.

Process Control System PCS 7 - Library


A5E00180684-02 1-17
Technological Blocks

LIOP_INT_SEL
1 QSPEXTON
SP_TRK_ON A
SPEXON_L N
SPBUMPON
D
SPEXTSEL_OP NOT QMAN_AUT O
0 R
LMN_SEL
SPEXTHLM
SPEXTLLM
QSP_HLM SPRAMPOF
QSP_LLM
SP_EXT
SPURLM
SPDRLM
SAMPLE_T
1 1 1
PV_IN
OP_A_LIM / OP_A_RJC
SP
0 0 0

SP_TRK_ON OR LINK_ON
QUPRLM
QDNRLM
V

SP LINK_U
SP_OP U QVHL QSP_HLM
SP_HLM U_HL QVLL QSP_LLM
SP_LLM U_LL
SPBUMPON BTRACK

PFDB_SEL

P_SEL
1

1
0
0.0
ER 0
DFDB_SEL
TV
NM_PVHR TM_LAG
DEADB_W NM_PVLR SAMPLE_T
1
phys

0
%
TN
INT_HPOS
INT_HNEG
GAIN SAMPLE_T
NM_PVHR
NM_PVLR 0
PV_IN
phys

PVH_ALM 1
%
PVH_WRN
PVL_WRN NM_LMNHR
PVL_ALM -1 NM_LMNLR
HYS
QPVH_ALM
QPVH_WRN phys
LMN_OFF
QPVL_WRN %
QPVL_ALM TN = 0

DISV LMN_SEL

NM_LMNHR LMN_HLM
NM_LMNLR LMN_LLM
QLMN_HLM
% QLMN_LLM
1 0
LMN
phys
0 1
LMN_TRK

LIOP_MAN_SEL

1
AUT_L

AUT_ON_OP QMAN_AUT
0
OP_A_LIM / OP_A_RJC

LINK_ON

V
LINK_U

MAN_OP U QVHL QMAN_HLM


QVLL QMAN_LLM
MAN_HLM U_HL
MAN_LLM U_LL
TRUE BTRACK

Process Control System PCS 7 - Library


1-18 A5E00180684-02
Technological Blocks

1.3.1.9 CTRL_PID: I/Os

I/O Meaning Data Default Type Attrib. OCM Valid


(parameter) type values

AUT_L Interconnectable input for BOOL 0 I Q


MAN/AUTO:0: Manual, 1: Auto
AUT_ON_ Operator input: BOOL 0 IO B +
OP 0: Manual, 1: Auto
AUTOP_EN 1: auto mode enabled BOOL 1 I Q
AUX_PRx Auxiliary process value x ANY 0 IO Q
BA_EN BATCH enabled BOOL 0 I Q +
BA_ID Current batch number DWORD 0 I Q +
BA_NA BATCH name STRING '' I Q +
[32]
CSF Control system fault BOOL 0 I Q
DEADB_W Dead band width REAL 0 I + >=0
DFDB_SEL Set D action in feedback (1 = BOOL 0 I Q
enabled)
DISV Disturbance value REAL 0 I Q
ER Error signal REAL 0 O +
ER_HYS Hysteresis for monitoring the REAL 0.1 I + >= 0
error signal
ERH_ALM Error signal: REAL 100 I + >
High limit alarm DEADBW
ERL_ALM Error signal: REAL -100 I + <-
Low limit alarm DEADBW
GAIN Proportional gain REAL 1 I +
HYS Hysteresis REAL 5 I + >=0
INT_HNEG 1 = freeze integral component BOOL 0 I Q
(negative direction)
INT_HPOS 1 = freeze integral component BOOL 0 I Q
(positive direction)
LIOP_INT_ 1: interconnection enabled BOOL 0 I Q
SEL 0: operator control enabled
LIOP_MAN 1: interconnection active BOOL 0 I Q
_SEL 0: operator input enabled
LMN Manipulated variable output REAL 0 O
LMN_HLM High limit manipulated variable REAL 100 I Q + LMN_HLM >
LMN_LLM
LMN_LLM Low limit manipulated variable REAL 0 I Q + LMN_LLM <
LMN_HLM
LMN_OFF Operating point REAL 0 I Q +
LMN_SEL 1 = external manipulated BOOL 0 I Q
variable enabled
LMN_TRK External manipulated variable REAL 0 I Q
LMNOP_ON 1 = enable operation of BOOL 1 I Q
manipulated variable LMN_OP
LMNR_IN Position feedback for display on REAL 0 I Q
OS
M_SUP_AH 1 = message suppression BOOL 0 I +
High limit alarm, process
variable
M_SUP_AL 1 = message suppression BOOL 0 I +
Low limit alarm, process variable
M_SUP_ER Message suppression: BOOL 1 I +
error signal alarm

Process Control System PCS 7 - Library


A5E00180684-02 1-19
Technological Blocks

I/O Meaning Data Default Type Attrib. OCM Valid


(parameter) type values

M_SUP_WH 1 = Message suppression: BOOL 0 I +


High warning, process variable
M_SUP_WL 1 = Message suppression: BOOL 0 I +
Low warning, process variable
MAN_HLM High limit for manual REAL 100 I +
manipulated variable
MAN_LLM Low limit for manual REAL 0 I +
manipulated variable
MAN_OP Operator input: REAL 0 IO B +
Manipulated variable
MANOP_EN 1 = enable manual mode BOOL 1 I Q
MO_PVHR High limit of display REAL 110 I +
(measurement range)
MO_PVLR Low limit of display REAL -10 I +
(measurement range)
MSG_ACK Acknowledge messages WORD 0 O
MSG_EVID Message number DWORD 0 I M
MSG_LOCK 1 = Process messages locked BOOL 0 I Q +
MSG_STAT Error message status WORD 0 O
NM_LMNHR High limit: REAL 100 I
normalization of manipulated
variable (measurement range)
NM_LMNLR Low limit: REAL 0 I
normalization of manipulated
variable (measurement range)
NM_PVHR High limit: REAL 100 I
normalization of process
variable (measurement range)
NM_PVLR Low limit normalization of REAL 0 I
process variable (measurement
range)
OCCUPIED Occupied by BATCH BOOL 0 I Q +
OOS Reserve BOOL 0 I +
OPTI_EN 1 = controller tuning ON, 0 = BOOL 0 I +
OFF
P_SEL 1 = set P component BOOL 1 I Q
PFDB_SEL 1 = set P component in feedback BOOL 0 I Q
PV_IN Process value REAL 0 IO Q +
PVH_ALM Process value: REAL 100 I + PVH_ALM >
High limit alarm PVL_ALM
PVH_WRN Process value: REAL 95 I + PVH_WRN >
High warning PVL_WRN
PVL_ALM Process value: REAL 0 I + PVL_ALM <
Low limit alarm PVH_ALM
PVL_WRN Process value: REAL 5 I + PVL_WRN<
Low warning PVH_WRN
Q_SP_OP 1 = enable operator input of BOOL 0 O +
setpoint
QAUT_OP Status: 1=Operator may switch BOOL 0 O +
to "AUTO"
QC_LMN Quality Code for LMN BYTE 16#80 O
QC_LMN_I Quality Code for output LMN BYTE 16#80 I
QC_LMNR_IN Quality Code for LMNR_IN BYTE 16#80 I
QC_PV_IN Quality Code for PV_IN BYTE 16#80 I
QCAS_CUT 1 = cascade is cut BOOL 1 O

Process Control System PCS 7 - Library


1-20 A5E00180684-02
Technological Blocks

I/O Meaning Data Default Type Attrib. OCM Valid


(parameter) type values

QDNRLM 1 = negative setpoint ramp BOOL 0 O


limited
QERH_ALM Error signal: 1 = high limit alarm BOOL 0 O +
QERL_ALM Error signal: 1 = low limit alarm BOOL 0 O +
QERR 1 = error output (inverted ENO) BOOL 1 O +
QLMN_HLM 1 = limit high range of BOOL 0 O
manipulated variable output
QLMN_LLM 1 = limit low range of BOOL 0 O
manipulated variable output
QLMNOP Status: 1 = Operator may input BOOL 0 O +
manipulated value MAN_OP
QMAN_AUT 0 = Manual, 1 = Auto BOOL 0 O +
QMANOP 1 = enable manual mode BOOL 0 O +
QMSG_ERR 1 = message error BOOL 0 O
QMSG_SUP 1 = message suppression BOOL 0 O +
QOP_ERR 1 = group error message BOOL 0 O
QPVH_ALM 1 = high limit alarm BOOL 0 O
QPVH_WRN 1 = high warning BOOL 0 O
QPVL_ALM 1 = low limit alarm BOOL 0 O
QPVL_WRN 1 = low warning BOOL 0 O
QSP_HLM 1 = set high limit of setpoint BOOL 0 O
output
QSP_LLM 1 = set low limit of setpoint BOOL 0 O
output
QSPEXTEN 1 = enable external setpoint BOOL 0 O +
QSPEXTON 0 = Internal, 1 = External BOOL 0 O +
QSPINTEN 1 = set internal setpoint BOOL 0 O +
QUPRLM 1 = set positive setpoint ramp BOOL 0 O
limit
RUNUPCYC Number of run-up cycles INT 3 I
SAMPLE_T Sampling time in [s] REAL 1 I >=0.001
SP Active setpoint REAL 0 O +
SP_EXT External setpoint REAL 0 I Q
SP_HLM Setpoint high limit REAL 100 I + SP_HLM >
SP_LLM
SP_LLM Setpoint low limit REAL 0 I + SP_LLM <
SP_HLM
SP_OP Operator input for setpoint REAL 0 IO B +
SP_OP_ON Enable: 1 = Operator may input BOOL 1 I Q
SP_OP
SP_TRK_ON 1 = track setpoint SP_OP BOOL 0 I +
SPBUMPON 1 = bumpless setpoint BOOL 1 I +
SPDRLM max. negative setpoint ramp REAL 100 I +
[1/s]
SPEXON_L Interconnectable input BOOL 0 I Q
internal/external
(0 = internal/1 = external)
SPEXT_EN 1 = Enable operator to select BOOL 1 I Q
external setpoint
SPEXTHLM High limit of external setpoint REAL 100 I Q SPEXTHLM >
SPEXTLLM
SPEXTLLM Low limit of external setpoint REAL 0 I Q SPEXTLLM <
SPEXTHLM

Process Control System PCS 7 - Library


A5E00180684-02 1-21
Technological Blocks

I/O Meaning Data Default Type Attrib. OCM Valid


(parameter) type values

SPEXTSEL_OP Mode: BOOL 0 IO B +


0 = internal
1 = external
SPINT_EN 1 = Enable operator to select BOOL 1 I Q
internal setpoint
SPRAMPOF 1 = setpoint ramp limiting OFF BOOL 1 I +
SPURLM max. positive setpoint of ramp REAL 100 I +
rate [1/s]
STEP_NO BATCH step number DWORD 0 I Q +
TM_LAG Time lag of D action in [s] REAL 1 I + ≥±SAMPLE_
T/2
TN Tracking time in [s] REAL 10 I + TN=0,
≥±SAMPLE_
T/2
TV Derivative time in [s] REAL 0 I + TV=0,
≥±SAMPLE_
T
USTATUS Status word in VSTATUS, can WORD 0 I
be set user-specific
VSTATUS Extended status display in block DWORD 0 O
icons

For information on abbreviations used refer to:


General information on the block description

1.3.1.10 CTRL_PID: VSTATUS


The 32-bit status word extends the status display in the block icons and faceplates.
The 16 low bits (bit 0 - 15) are used by the block as follows:

Bit no.: 7 6 5 4 3 2 1 0
Parameter - - - QSPEXTON QMAN_AUT MSG_LOCK BA_EN OCCUPIED

Bit no.: 15 14 13 12 11 10 9 8
Parameter OOS QMSG_SUP LMN_SEL - - - - -

The 16-bit input USTATUS (data type WORD) uses the high bits (bit 16 - 31). The
user can use these freely.

Process Control System PCS 7 - Library


1-22 A5E00180684-02
Reference Manual Objects

1.3.1.11 Bedienen und Beobachten


Standardview

All analog displays are created by means of the "AdvancedAnalogDisplay". The number format is set via the
block icon ("Format_InputValue" and "Format_OutputValue" properties).
The View has 2 "Permission" as objects for the input of setpoints and manipulated variables, since operator
authorizations for these variables depend upon various factors
The "Permission_Setpoint" object evaluates the WinCC authorization levels, as well as the
"Q_SP_OP = TRUE" parameter..
The "Permission_Manual" object evaluates the WinCC authorization levels, as well as the
"QLMNOP = TRUE" parameter.

The PID tuner is operated in the parameter view (Tuning On/Off).


When tuning is active, all other operations of the controller are locked .

Order and assignment of direct connections to operator controlled objects

@Level5 D Authorization
btAuto D Authorization
btManual D Authorization
btExtern D Authorization
btIntern D Operator control enable
Permission_Setpoint D Level_Source D Level_Target
Permission_Manual D Level_Source
Permission_Setpoint D Target_ Operator control enable
Setpoint_AnalogValue D Operator control enable
Permission_Manual D Target_ Operator control enable
Manual_AnalogValue D Operator control enable
Format D Format_InputValue
Setpoint_AnalogValue D Format
ProcessValue_AnalogValue D Format
Format D Format_OutputValue
Manual_AnalogValue D Format
Output_AnalogValue D Format

Copyright  Siemens AG. All Rights Reserved.


Technological Blocks Reference Manual Objects

ParameterView

The objects "Permission_SP_Bumpless", "Permission_Gain" and "Permission_AlarmHigh_AnalogValue"


evaluates the WinCC authorization levels, as well as the "OPTI_EN = FALSE" parameter.

The process value "Error signal_AnalogValue" is set via the "AdvancedAnalogDisplay", the number format is
set via the block icon ("Format_InputValue" property).
All other analog displays show the conventional "Floating-point format" I/O field.
This setpoint bar graph shows the setpoint control limits, with reference to the bar graph limits.

Reihenfolge und Rangierung von Direktverbindungen auf die bedienbaren Objekte


@Level6 Operator control enable
Permission_SP_Bumpless D Level_Source
Permission_SP_Bumpless D Target_ Operator control enable
Bumbless_CHECKBOX_L D Operator control enable
SP_TRK_ON_CHECKBOX_L D Operator control enable
SPRAMP_OFF_CHECKBOX_L D Operator control enable
SPHighLimit_AnalogValue D Operator control enable
SPLowLimit_AnalogValue D Operator control enable
ManHighLimit_AnalogValue D Operator control enable
ManLowLimit_AnalogValue D Operator control enable
SPURLM_AnalogValue D Operator control enable
SPDRLM_AnalogValue D Operator control enable
MO_PVHR_AnalogValue D Operator control enable
MO_PVLR_AnalogValue D Operator control enable
Permission_SP_Bumpless D Target_ BackgroundColor
SPHighLimit_AnalogValue D Background color value
SPLowLimit_AnalogValue D Background color value
ManHighLimit_AnalogValue D Background color value
ManLowLimit_AnalogValue D Background color value
SPURLM_AnalogValue D Background color value
SPDRLM_AnalogValue D Background color value
MO_PVHR_AnalogValue D Background color value
MO_PVLR_AnalogValue D Background color value

14-2 Copyright  Siemens AG. All Rights Reserved.


Reference Manual Objects

@Level6 D Operator control enable


Permission_Gain D Level_Source
OPTI_EN_CHECKBOX_L D Operator control enable
Permission_Gain D Target_ Operator control enable
Gain_AnalogValue D Operator control enable
TN_AnalogValue D Operator control enable
TV_AnalogValue D Operator control enable
DEADB_W_AnalogValue D Operator control enable
TM_LAG_AnalogValue D Operator control enable
ERH_ALM_AnalogValue D Operator control enable
ERL_ALM_AnalogValue D Operator control enable
ER_HYS_AnalogValue3 D Operator control enable
M_SUP_ER_CHECKBOX_L D Operator control enable

Permission_Gain D Target_ BackgroundColor


Gain_AnalogValue D Background color value
TN_AnalogValue D Background color value
TV_AnalogValue D Background color value
DEADB_W_AnalogValue D Background color value
TM_LAG_AnalogValue D Background color value
ERH_ALM_AnalogValue Background color value
ERL_ALM_AnalogValue D Background color value
ER_HYS_AnalogValue3 D Background color value
Format D Format_InputValue
Manual_AnalogValue D Format
Output_AnalogValue D Format
Regeldifferenz_AnalogValuem D Format

Copyright  Siemens AG. All Rights Reserved.


Technological Blocks Reference Manual Objects

Diagnosis View
Diagnosis view shows in addition the Interface description and-status .
The Parametervalues are not changeable.

14-4 Copyright  Siemens AG. All Rights Reserved.


Reference Manual Objects

Alarmview
The PID Controller-related Operation and alarm reports are shown in the Alarmview.

Copyright  Siemens AG. All Rights Reserved.


Technological Blocks Reference Manual Objects

Informationview
Description of the Informationview see Systemdescription CEMAT.

14-6 Copyright  Siemens AG. All Rights Reserved.

You might also like