0% found this document useful (0 votes)
43 views45 pages

PID Controller Template Manual - bcnp59990028c

Uploaded by

truongvietchau95
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views45 pages

PID Controller Template Manual - bcnp59990028c

Uploaded by

truongvietchau95
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 45

PID controller Template Manual

This template is designed for PID controller (feedback controller).


Target equipment: sensor, valve, motor, etc.
There is a limit to the number of loops that can be used and the type of the programmable controller
CPU. For more information, please refer to Caution.

Function Overview
 Control mode
This template has two control modes.

• Automatic mode
PID operation is executed with a PID control instruction.
The control object is controlled according to the calculated MV.

• Manual mode
PID operation is not executed. The MV is calculated by the user and the control object
is controlled according to the user-calculated MV.

 Cascade mode
In cascade control there are two PIDs arranged with one PID controlling the Set Value of another.
• Enable
PID controller reads the MV of Primary loop controller as the SV.

• Disable
PID controller uses the SV that has been set by the user.

 Measurement function
This template displays the present value with the engineering unit on the symbol and the faceplate.
The template notifies with the lamp when the present values are lower than or exceed the threshold
for the delay time by comparing the present values and the thresholds. The message type for
notification has two types (Warning and Alarm).

Threshold Message type (fixed)


HiHi Alarm
Hi Warning

Lo Warning
LoLo Alarm

PID controller Template Manual


1/45
 Measurement error
The function block ignores the sensor input and keeps the previous value to avoid misdetection if it
detects a measurement error. Also the lamp is flashed.

 Simulate mode
The simulate mode is used to test the process logic without the physical equipment. The function
block uses the user input value instead of sensor input.

PID controller Template Manual


2/45
Symbol
Typical symbols of this template are shown bellow.

Control Operability Description


No The equipment name is displayed.
No This displays the present value (PV) with the
engineering unit.

No This displays the set value (SV) with the


engineering unit.
No This displays Cascade mode (CAS/NOR).
No This displays Control mode (AUTO/MAN).
No This lamp is turned on in yellow when a
function block detects a warning error.
The lamp is flashed until Ack is returned.
No This lamp is turned on in red when a function
block detects an alarm error.
The lamp is flashed until Ack is returned.
No This lamp is turned on in red when a function
block detects a measurement error.
The lamp is flashed until Ack is returned.
No This lamp is turned on in blue when the
simulate mode is on.

PID controller Template Manual


3/45
Faceplate
Faceplate is shown below.

Control Operability Description


No The equipment name is displayed.
No This indicates the present value with the gauge.
At the left of gauge, the maximum engineering
value, the engineering unit, and the minimum
engineering value are displayed.

PID controller Template Manual


4/45
No This indicates the position of SV in display bar.

No This lamp is turned on when the present value is


equal to or more than the HiHi value after the
delay time elapses.
No This lamp is turned on when the present value is
equal to or more than the Hi value after the delay
time elapses.
No This lamp is turned on when the present value is
equal to or less than the Lo value after the delay
time elapses.

No This lamp is turned on when the present value is


equal to or less than the LoLo value after the
delay time elapses.

Yes This button opens the trend graph window.

No This indicates the present value with the


engineering unit.
When the simulate mode is selected, the box
frame becomes blue and the present value can be
set for simulation.
Yes This displays the set value with the engineering
unit.
If the Control mode is Automatic mode and the
Cascade mode is enable, Set value cannot be
changed.
Yes This button switches between the simulate mode
and the normal mode.
When the simulate mode is selected, the button
becomes blue.
Yes This displays Manipulated value (unit: %).
If the Control mode is Automatic mode,
Manipulated value cannot be changed.

PID controller Template Manual


5/45
No This displays the limit of MV value
(MVLL-MVHL).
MVLL is MV lower limit (unit: %).
MVHL is MV upper limit (unit: %).
Yes This button changes to the auto mode.
When the auto mode is selected, the button
becomes orange.
Yes This button changes to the manual mode.
When the manual mode is selected, the button
becomes orange.
Yes This button changes to the cascade mode.
When the cascade mode is selected, the button
becomes orange.
Yes This button changes to the normal mode.
The normal mode is the status that is not the
cascade mode.
When the normal mode is selected, the button
becomes orange.

No This displays Primary Loop Number when


Primary Loop Number is not 0.
Yes This button opens the PID control data window.

Yes This input box sets the offset value to adjust the
present value.
Yes This button returns acknowledgement.
No This lamp is turned on when a measurement
error is detected.
It is flashed until Ack is returned.

PID controller Template Manual


6/45
Trend Graph

Control Operability Description


No The equipment name is displayed.

No This displays Loop number assigned to PID


Controller.
No This displays the present value (engineering
value).
No This displays the set value (engineering value).
No This displays Manipulated value (unit: %).

PID controller Template Manual


7/45
Yes RealTime graph is displayed when this tab is
selected.

Yes Historical graph is displayed when this tab is


selected.
Yes This displays pen informations of PV, SV, and MV.
Trend Graph Display check box
With check : display trend graph.
Without check : Not display trend graph.
Pen Status
This displays tag status.
Cursor Value : Cursor Point Value
Cursor Time : Cursor Point Time
No At the right section is the scale of MV, at the left
section is the scale of PV, SV.
In the middle are the values automatically
calculated and displayed according to top and
bottom limits of the scale.

Yes This button sets time scale of the graph windows


width.
Yes This button closes the trend graph window.

PID controller Template Manual


8/45
Control Data Faceplate

Control Operability Description


No The equipment name is displayed.

No This displays Loop number assigned to PID


Controller.
Yes This button switches between Forward operation
and Reverse operation.

PID controller Template Manual


9/45
Yes This displays Sampling cycle (unit: s).
Sets the cycle of PID operation.
0.01 to 60.00 s
Yes This displays Proportional constant.
Sets Proportional gain of PID operation.
0.01 to 100.00
Yes This displays Integral constant (unit: s).
I This constant expresses the magnitude of the
integral operation (I operation) effect.
Increasing the integral constant slows down the
manipulated value change.
0.1 to 3000.0 s
Yes This displays Derivative constant (unit: s).
This constant expresses the magnitude of the
derivative operation (D operation) effect.
Increasing the derivative constant causes a
significant change in the manipulated value even
with slight change of the control objective.
0.00 to 300.00 s
Yes This displays Filter coefficient (unit: %).
Sets the degree of filtering applied to the process
value. The filtering effect decreases as the value
gets closer to 0.
0 to 100 %
Yes This displays Derivative gain.
Sets a time period (operation delay) for derivative
operation.
As the value is greater, the time period decreases
and operation becomes closer to complete
derivative.
0.00 to 300.0
No This displays PV_Max.

No This displays PV_Min.

PID controller Template Manual


10/45
Yes This displays MV lower limit (unit: %).
In the automatic mode, sets the lower limit for the
MV (manipulated value) calculated in PID
operation.
When the MV is less than the MV lower limit, the
MVLL is used as the MV.
-10.00 to 110.00 %
Yes This displays MV upper limit (unit: %).
In the automatic mode, sets the upper limit for
the MV calculated in PID operation.
When the MV is greater than the MV upper limit,
the MVHL is used as the MV.
-10.00 to 110.00 %
Yes These input boxes set each threshold.


Yes These input boxes set the delay time to detect
each measured value status. Unit is 100
: milliseconds.
No This displays control loop type.

Yes This button closes the trend graph window.

PID controller Template Manual


11/45
Function Block
・GX Works2
Program Language: Structured Ladder/FBD
Function Block property: Use Macrocode

PID controller Template Manual


12/45
・GX Works3
Program Language: FBD/LD
FB Type: Subroutine Type

PID controller Template Manual


13/45
PID controller Template Manual
14/45
Resource
・GX Works2
The number of steps: 2481 steps
(This is the compile result in Q25H and may be different by CPU type and compile options.)

Used Device Point


Word device 177 points/1FB
1198 points/project common(32loops type)
308 points/ project common (8loops type)
Word device (retained) 66 points
Bit device 123 points
Bit device (retained) 5 points
Pointer device 16 points
Timer device 4 points
Counter device 0 points

・GX Works3
The number of program steps: 3549 steps
(This is the compile result in R120 and may be different by CPU type and compile options.)

MC Works64 tag: 76 tags

PID controller Template Manual


15/45
Interface
There are 4 kind of interface types.
 Equipment Parameter
This is the constant parameter used in function blocks. The value is set in MC
AppBuilder. Also, the user can change constant value in GX Works2 or GX
Works3.
 IO Access Interface
This is the interface to connect to the equipment.
 Program Interface
This is the interface used in a user program.
 Monitoring Interface
This is the interface to communicate with SCADA.

 Equipment Parameter
Label Data Type IN/OUT Value (default value is Description

indicated with

underline)
‘Hz’ Engineering unit displayed on the
EEE_UNIT STRING(8) IN
faceplate
2 (0 to 5) Number of digits displayed under the
EEE_DECIMALPOS WORD IN
decimal point
EEE_PV_MAX REAL IN - The maximum engineering value
EEE_PV_MIN REAL IN - The minimum engineering value
EEE_INIT_ENAB_HHLL BOOL IN True: Enable The setting to enable the HiHi, Hi,
False: Disable Lo, LoLo notifications at
measurement
EEE_ENABLE_MEAS BOOL IN True: Enable The setting to enable the interlock
False: Disable error
WORD IN 1 to 32 Loop number assigned to PID
EEE_LOOP_NUM
Controller
WORD IN 1 to 32 Number of loops in one scan
Sets the number of loops which PID
EEE_NUM_LOOPS_SCAN Controller will be executed when the
multiple loops reaches the sampling
cycle time.
EEE_LOOPS_TMAX WORD IN 1 to 32 Sets the number of loops for which
(Basic Model QCPU PID operation will be executed.
MAX is 8.)
EEE_PRIMARY_NUM WORD IN 0 to 32 Set Primary Loop Number when
Cascade mode is Enable and Cascade
control uses Primary loop.
Primary Loop’s MV is tracked by
secondary loop’s SV.
EEE_CASCADE BOOL IN True: Enable Set whether or not to use as the
False: Disable secondary loop. If this flag is True, the
user can change to enable Cascade
mode.

PID controller Template Manual


16/45
 I/O Access Interface (M_Eq4Threshold_LD)
Label Data Type IN/OUT Value Description
EEE_PV_IN REAL IN - The measured present value

EEE_MSG_MEASUREMENT BOOL IN True: Error The signal of the measurement error


False: Normal

 I/O Access Interface (M_EqPIDControler_LD)


Label Data Type IN/OUT Value Description

EEE_MV WORD OUT -32768 to 32767 Manipulated value (D/A converter


module data)

 Program Interface (M_Eq4Threshold_LD)


Label (Latched parameter is Data Type IN/OUT Value Description

indicated with underline)


EEE_PV_OUT REAL OUT - The feedback of the present value
adjusted by the offset value
EEE_ ENABLE_HHLL BOOL IN True: Enable The setting to enable the HiHi, Hi,
False: Disable Hi2, Hi1, Lo1, Lo2, Lo, LoLo
notifications at measurement
EEE_GACK BOOL IN True: Ack Request Acknowledgement request for the
False: NonRequest error
Use pulse signal.
EEE_GALARM BOOL OUT True: At least one error Alarm information
occurs
False: Normal
EEE_HH_ACT BOOL OUT True: Active The state of HiHi detection without
False: NonActive delay time
EEE_H_ACT BOOL OUT The state of Hi detection without
delay time
EEE_L_ACT BOOL OUT True: Active The state of Lo detection without
False: NonActive delay time
EEE_LL_ACT BOOL OUT True: Active The state of LoLo detection without
False: NonActive delay time
EEE_HH_ALM_ACT BOOL OUT True: Active The state of HiHi detection with delay
False: NonActive time
EEE_H_ALM_ACT BOOL OUT True: Active The state of Hi detection with delay
False: NonActive time
EEE_L_ALM_ACT BOOL OUT True: Active The state of Lo detection with delay
False: NonActive time
EEE_LL_ALM_ACT BOOL OUT True: Active The state of LoLo detection with delay
False: NonActive time
EEE_INIT BOOL IN True: Initialization Initialization request for the function
Request block
False: NonRequest Use pulse signal.

PID controller Template Manual


17/45
 Program Interface (M_EqPIDControler_LD)
Label (Latched parameter is Data Type IN/OUT Value Description

indicated with underline)


EEE_PV_OUT REAL IN - The feedback of the present value
outputted by M_Eq4Threshold_LD

EEE_CONTROL_MODE WORD IN 0:Automatic Control mode


1:Manual a)Automatic Mode (AUTO)
This is the mode for automatic
operation. Control MV according to
SV.
b) Manual Mode (MANUAL)
This is the mode of manual
operation. Output MV.
EEE_MCHANGE_FLAG BOOL IN True: Enable If the Mode change flag is True at
False: Disable the rising pulse, the corresponding
mode of EEE_CONTROL_MODE is
changed.Use pulse signal.
EEE_CASCADE_MODE BOOL IN True: Cascade mode Cascade mode
False: Normal mode This value switches between Enable
and Disable of the Cascade mode.
EEE_CAS_SV REAL IN - This value is moved to SV when
Cascade mode is Enable and Prinamry
Loop Number is 0.
This value is engineering value.
M_PID_CONT_FLAG_G BOOL IN/OUT True: Initialization is This flag is set to TRUE when
completed initialization is complete at FB
False: Initialization is (M_EqPIDControler_LD) to execute
not completed on the first.
M_G_LOOP_MAX_G BOOL IN/OUT 1 to 32 The number of loops for project file.
This number is calculated (comparing
this values and the loop number of
each FB) in the initialization process
at each FB.
M_SDT_EqPIDCONTROLDA WORD(*) IN/OUT PID control data PID control data is used to set the
TA_G reference values for PID operation.
Data size
114(word)=8*14 or
450(word)=32*14+2
M_SDT_EqPIDIODATA_G WORD(*) IN/OUT The I/O data The I/O data consists of input data,
such as the SV (set value) and PV
(process
value), which are set to execute PID
operation, and output data, such as
operation results.
Data size
194(word)=8*23+10 or
746(word)=32*23+10
EEE_PVF REAL OUT - Present value
This value is after filtering value.
This value is the same as PV of
Monitoring I/F.
EEE_INIT BOOL IN True: Initialization Initialization request for the function
Request block
False: NonRequest Use pulse signal.

PID controller Template Manual


18/45
 Monitoring Interface
The following parameters are in structure data type. The label name is EEE_SDT_Eq4THRES.
These parameters are used as IN/OUT. Attribute in the table is the setting for OPC tag. (R: Read,
W: Write, RW: Read and Write)

Name Data Type Attribute Value Description


Unit STRING(8) R - The engineering unit
DecimalPosition WORD R 0 to 5 Number of digits displayed under the
decimal point
MaxValue REAL RW - The maximum engineering value
MinValue REAL R - The minimum engineering value
Ack BOOL RW True: Ack Request Acknowledgement request for the
False: NonRequest error
GeneralAlarm BOOL R True: At least one error Alarm information
occurs
False: Normal
WarningStatus WORD R 0:Normal Status of warning and
1:Warning occurs and acknowledgement
already acknowledged
2:Warning resolved and
not yet acknowledged
3:Warning occurs and
not yet acknowledged
AlarmStatus WORD R 0:Normal Status of alarm and acknowledgement
1:Alarm occurs and
already acknowledged
2:Alarm resolved and
not yet acknowledged
3:Alarm occurs and not
yet acknowledged

PID controller Template Manual


19/45
The following parameters are in structure data type. The label name is EEE_SDT_Eq4THR_KEEP .
These parameters are used as IN/OUT. Attribute in the table is the setting for OPC tag. (R: Read,
W: Write, RW: Read and Write)
In the case of GX Works2, each parameter of EEE_SDT_Eq4THR_KEEP is latched. In the case of
GX Works3, EEE_SDT_ Eq4THR_KEEP is the latched parameter.

Name (Latched parameter is Data Type Attribute Value Description

indicated with underline)


Simulate BOOL RW True: Simulate mode The setting of the simulate mode
False: Normal mode
PresentValue REAL RW - The measured present value
Offset REAL RW - The offset value to measured present
value
Setpoint_HH REAL RW - The value to detect the HiHi error
DelayTime_HH WORD RW - The time to detect the HiHi error
Setpoint_H REAL RW - The value to detect the Hi error
DelayTime_H WORD RW - The time to detect the Hi error
Setpoint_L REAL RW - The value to detect the Lo error
DelayTime_L WORD RW - The time to detect the Lo error
Setpoint_LL REAL RW - The value to detect the LoLo error
DelayTime_LL WORD RW - The time to detect the LoLo error
MessageMeasurement WORD R Refer to Message Message for the measurement error
Specification in
Appendix
MessageHH WORD R Refer to Message Message for the HH error
Specification in The error type is fixed to alarm.
Appendix
MessageH WORD R Refer to Message Message for the H error
Specification in The error type is fixed to warning.
Appendix
MessageL WORD R Refer to Message Message for the L error
Specification in The error type is fixed to warning.
Appendix
MessageLL WORD R Refer to Message Message for the LL error
Specification in The error type is fixed to alarm.
Appendix

PID controller Template Manual


20/45
The following parameters are in structure data type. The label name is EEE_SDT_EqPIDCONT.
These parameters are used as IN/OUT. Attribute in the table is the setting for OPC tag. (R: Read,
W: Write, RW: Read and Write)
In the case of GX Works2, each parameter of EEE_SDT_EqPIDCONT is latched. In the case of GX
Works3, EEE_SDT_ EqPIDCONT is the latched parameter.

Name (Latched parameter is Data Type Attribute Value Description

indicated with underline)


Alarm_PV BOOL R True: Error Alarm_PV is set for True when the
False: Normal change rate of the PV is outside the
limit range.
This flag is not used in Symbol and
Faceplate.
Once turn on, the alarm data is
retained until
EEE_SDT_EqPIDCONT.Ack is set to
true.
Alarm_MV BOOL R True: Error Alarm_MV is set for True when the
False: Normal change rate of the MV is outside the
limit range.
This flag is not used in Symbol and
Faceplate.
Once turn on, the alarm data is
retained until
EEE_SDT_EqPIDCONT.Ack is set to
true.
Ack BOOL W True: Ack Request Acknowledgement request for the
False: NonRequest error (Alarm_PV and Alarm_MV).
This request is not used in Symbol
and Faceplate.
PV REAL R - Process value (engineering value)
This value is the same value as
EEE_PVF (after filtering value).
This parameter is used as the input of
Historical data.
Please refer to the TrendWorX help or
the manual for detail.
SV REAL R/W - Set value (engineering value)
This parameter is used as the input of
Historical data.
Please refer to the TrendWorX help or
the manual for detail.
MV REAL R/W -10.00 to 110.00 Manipulated value (unit: %)
This parameter is used as the input of
Historical data.
Please refer to the TrendWorX help or
the manual for detail.

PID controller Template Manual


21/45
Control_mode WORD R/W 0:Automatic Control mode
1:Manual a)Automatic Mode (AUTO)
This is the mode for automatic
operation. Control MV according to
SV.
b) Manual Mode (MANUAL)
This is the mode of manual operation.
Output MV.
OP_expres WORD R/W 0: Forward operation Selection of operational expression
1: Reverse operation

PID controller Template Manual


22/45
TSC REAL R/W 0.01 to 60.00 s Sampling cycle (unit: s)
This value is the cycle of PID
operation.
KP REAL R/W 0.01 to 100.00 Proportional constant
This constant is Proportional gain of
PID operation.
TI REAL R/W 0.1 to 3000.0 s Integral constant (unit: s)
This constant expresses the
magnitude of the integral operation (I
operation) effect.
TD REAL R/W 0.00 to 300.00 s Derivative constant (unit: s)
This constant expresses the
magnitude of the derivative operation
(D operation) effect.
Alfa WORD R/W 0 to 100 % Filter coefficient (unit: %)
Sets the degree of filtering applied to
the process value. The filtering effect
decreases as the value gets closer to 0.
MVLL REAL R/W -10.00 to 110.00 % MV lower limit (unit: %)
In the automatic mode, sets the lower
limit for the MV (manipulated value)
calculated in PID operation.
When the MV is less than the MV
lower limit, the MVLL is used as the
MV.
MVHL REAL R/W -10.00 to 110.00 % MV lower limit (unit: %)
In the automatic mode, sets the upper
limit for the MV calculated in PID
operation.
When the MV is greater than the MV
upper limit, the MVHL is used as the
MV.
DMVL REAL R/W 0 to 100.00 % MV change rate limit (unit: %)
Sets the limit for variation between
the previous MV and present MV.
When the MV variation is greater
than the limit value, DMVL Alarm
occurs.
Does not limit the MV variation.
(If the MV variation is greater than
the limit value, it is used unchanged
as the MV variation to calculate the
MV.)
This variable is not used in Symbol
and Faceplate.

PID controller Template Manual


23/45
DPVL REAL R/W 0 to 100.00 % PV change rate limit (unit: %)
Sets the limit for variation between
the previous PV and present PV.
When the PV variation is greater than
the limit value, DPVL Alarm occurs.
Does not limit the PV variation.
(If the PV variation is greater than the
limit value, it is used unchanged as
the PV variation to perform the PID
operation.)
This variable is not used in Symbol
and Faceplate.
KD REAL R/W 0.00 to 300.0 Derivative gain
Sets a time period (operation delay)
for derivative operation.
As the value is greater, the time
period decreases and operation
becomes closer to complete derivative.
Loop_Num WORD R 1 to 32 Loop number assigned to PID
Controller
CAS_mode BOOL R/W True: Cascade mode Cascade mode
False: Normal mode This value switches between Enable
and Disable of the Cascade mode.
P_Loop_Num WORD R 0 to 32 Primary Loop Number when Cascade
mode is Enable and Cascade control
uses Primary loop.
Cascade BOOL R True: Enable Set whether or not to use as the
False: Disable secondary loop. If this flag is True, the
user can change to enable Cascade
mode.
auto_man_mode BOOL R/W True: Automatic Control mode
False: Manual a)Automatic Mode (AUTO)
This is the mode for automatic
operation. Control MV according to
SV.
b) Manual Mode (MANUAL)
This is the mode of manual operation.
Output MV.

PID controller Template Manual


24/45
GOT Library
Symbol and faceplate for GOT are below.

Library File Name Data Name


108_PID.mlb 1 EqPIDControler_Symbol
2 EqPIDControler_FacePlate
3 EqPIDControler_Trend_FacePlate
4 EqPIDControler_CntData_FacePlate

PID controller Template Manual


25/45
Symbol (for GOT)
Typical symbols of this template are shown below.

Control Operability Description


No The equipment name is displayed.
No This displays the present value (PV) with the
engineering unit.
No This displays the set value (SV) with the
engineering unit.
No This displays Cascade mode (CAS/NOR).
No This displays Control mode (AUTO/MAN).
No This lamp is turned on in yellow when a function
block detects a warning error.
The lamp is flashed until Ack is returned.
No This lamp is turned on in red when a function
block detects an alarm error.
The lamp is flashed until Ack is returned.
No This lamp is turned on in red when a function
block detects a measurement error.
The lamp is flashed until Ack is returned.
No This lamp is turned on in blue when the
simulate mode is on.

PID controller Template Manual


26/45
Faceplate (for GOT)
Typical faceplate is shown below.

Control Operability Description


No The equipment name is displayed.
No The green gauge indicates the present value.
The blue gauge indicates shows the SV.
At the left of the green gauge, the maximum
engineering value, the engineering unit, and the
minimum engineering value are displayed.
The color of the present value gauge is not
changed by the conditions of H / HH / L / LL.
No This lamp is turned on when the present value is
equal to or more than the HiHi value after the
delay time elapses.

PID controller Template Manual


27/45
No This lamp is turned on when the present value is
equal to or more than the Hi value after the delay
time elapses.
No This lamp is turned on when the present value is
equal to or less than the Lo value after the delay
time elapses.
No This lamp is turned on when the present value is
equal to or less than the LoLo value after the
delay time elapses.
No This indicates the present value with the
engineering unit.
When the simulate mode is selected, the color of
“PRESENT VALUE” becomes blue and the
present value can be set for simulation.
There is the limit of the PV range value in the
PID instruction. However there is no limit of
input by default settings in GT Designer3.
If outside of the PV range value is inputted in
GOT, CPU error occurs in the programmable
controller. In order to avoid this, you set up a
suitable input range.
When a value is inputted, window screen for
confirmation of the value change is not displayed.
If you want to show the screen, you should set it
in GT Designer3.
The number of decimal places is two by default. If
you want to change the number of decimal places,
you should set it in GT Designer3.

PID controller Template Manual


28/45
Yes This displays the set value with the engineering
unit.
Under the condition of the cascade mode, you
cannot change the set value from here. If you
want to set same input conditions (cascade mode
and auto mode) as GraphWorX, you should set it
in GT Designer3.
There is the limit of the SV range value in the
PID instruction. However there is no limit of
input by default settings in GT Designer3.
If outside of the PV range value is inputted in
GOT, CPU error occurs in the programmable
controller. In order to avoid this, you set up a
suitable input range.
When a value is inputted, window screen for
confirmation of the value change is not displayed.
If you want to show the screen, you should set it
in GT Designer3.
The number of decimal places is two by default. If
you want to change the number of decimal places,
you should set it in GT Designer3.
Yes This button switches between the simulate mode
and the normal mode.
When the simulate mode is selected, the button
becomes blue.
Window screen for confirmation of mode change is
not displayed.
Yes This displays Manipulated value (unit: %).
If the Control mode is Automatic mode,
Manipulated value cannot be changed.
When a value is inputted, window screen for
confirmation of the value change is not displayed.
If you want to show the screen, you should set it
in GT Designer3.
The number of decimal places is two by default. If
you want to change the number of decimal places,
you should set it in GT Designer3.

PID controller Template Manual


29/45
No The upper bar indicates the limit of MV value
(MVLL-MVHL).
MVLL is MV lower limit (unit: %).
MVHL is MV upper limit (unit: %).
The lower bar indicates the MV value.
Yes This button changes to the auto mode.
When the auto mode is selected, the button
becomes orange.
Window screen for confirmation of mode change is
not displayed.
Yes This button changes to the manual mode.
When the manual mode is selected, the button
becomes orange.
Window screen for confirmation of mode change is
not displayed.
Yes This button changes to the cascade mode.
When the cascade mode is selected, the button
becomes orange.
Window screen for confirmation of mode change is
not displayed.

PID controller Template Manual


30/45
Yes This button changes to the normal mode.
The normal mode is the status that is not the
cascade mode.
When the normal mode is selected, the button
becomes orange.
Window screen for confirmation of mode change is
not displayed.
No This displays Primary Loop Number when
Primary Loop Number is not 0.
Yes This button opens the PID control data window.
If the template is used except GT16, the settings
of button are deleted.
If you use the template in that model, you should
set the settings to change the screen in GT
Designer3.
Yes This input box sets the offset value to adjust the
present value.
There is the limit of the PV range value in the
PID instruction. However there is no limit of
input by default settings in GT Designer3.
If outside of the PV range value is inputted in
GOT, CPU error occurs in the programmable
controller. In order to avoid this, you set up a
suitable input range.
The number of decimal places is two by default. If
you want to change the number of decimal places,
you should set it in GT Designer3.
Yes This button returns acknowledgement.
No This lamp is turned on when a measurement
error is detected.
It is flashed until Ack is returned.

PID controller Template Manual


31/45
Trend Graph (for GOT)
Trend graph is displayed only as real time trend.
MV and PV / SV are displayed in separate graphs.

PID controller Template Manual


32/45
Control Operability Description
No The equipment name is displayed.
No This displays Loop number assigned to PID
Controller.
No This displays the present value (engineering
value).
The number of decimal places is two by default. If
you want to change the number of decimal places,
you should set it in GT Designer3.
No This displays the set value (engineering value).
The number of decimal places is two by default. If
you want to change the number of decimal places,
you should set it in GT Designer3.
No This displays Manipulated value (unit: %).
The number of decimal places is two by default. If
you want to change the number of decimal places,
you should set it in GT Designer3.
No This indicates the scale of PV/SV.
The scale range is from PVMin value to PVMax
value.

No This indicates the scale of MV.

No This range indicates time period of the trend


graph.
Yes This button closes the trend graph window.

PID controller Template Manual


33/45
Control Data Faceplate (for GOT)

PID controller Template Manual


34/45
Control Operability Description
No The equipment name is displayed.
No This displays Loop number assigned to PID
Controller.
Yes This button switches between Forward operation
and Reverse operation.
Window screen for confirmation of mode change is
not displayed.

Yes This displays Sampling cycle (unit: s).


Sets the cycle of PID operation.
0.01 to 60.00 s
When a value is inputted, window screen for
confirmation of the value change is not displayed.
If you want to show the screen, you should set it
in GT Designer3.
The number of decimal places is two by default. If
you want to change the number of decimal places,
you should set it in GT Designer3.
Yes This displays Proportional constant.
Sets Proportional gain of PID operation.
0.01 to 100.00
When a value is inputted, window screen for
confirmation of the value change is not displayed.
If you want to show the screen, you should set it
in GT Designer3.
The number of decimal places is two by default. If
you want to change the number of decimal places,
you should set it in GT Designer3.

PID controller Template Manual


35/45
Yes This displays Integral constant (unit: s).
This constant expresses the magnitude of the
integral operation (I operation) effect.
Increasing the integral constant slows down the
manipulated value change.
0.1 to 3000.0 s
When a value is inputted, window screen for
confirmation of the value change is not displayed.
If you want to show the screen, you should set it
in GT Designer3.
The number of decimal places is one by default. If
you want to change the number of decimal places,
you should set it in GT Designer3.
Yes This displays Derivative constant (unit: s).
This constant expresses the magnitude of the
derivative operation (D operation) effect.
Increasing the derivative constant causes a
significant change in the manipulated value even
with slight change of the control objective.
0.0 to 300.00 s
When a value is inputted, window screen for
confirmation of the value change is not displayed.
If you want to show the screen, you should set it
in GT Designer3.
The number of decimal places is two by default. If
you want to change the number of decimal places,
you should set it in GT Designer3.
Yes This displays Filter coefficient (unit: %).
Sets the degree of filtering applied to the process
value. The filtering effect decreases as the value
gets closer to 0.
0 to 100 %
When a value is inputted, window screen for
confirmation of the value change is not displayed.
If you want to show the screen, you should set it
in GT Designer3.
If you want to change the number of decimal
places, you should set it in GT Designer3.

PID controller Template Manual


36/45
Yes This displays Derivative gain.
Sets a time period (operation delay) for derivative
operation.
As the value is greater, the time period decreases
and operation becomes closer to complete
derivative.
0.0 to 300.0
When a value is inputted, window screen for
confirmation of the value change is not displayed.
If you want to show the screen, you should set it
in GT Designer3.
The number of decimal places is one by default. If
you want to change the number of decimal places,
you should set it in GT Designer3.
No This displays PV_Max.
The number of decimal places is two by default. If
you want to change the number of decimal places,
you should set it in GT Designer3.
No This displays PV_Min.
The number of decimal places is two by default. If
you want to change the number of decimal places,
you should set it in GT Designer3.
Yes This displays MV lower limit (unit: %).
In the automatic mode, sets the lower limit for the
MV (manipulated value) calculated in PID
operation.
If you want to set MVLL as lower limit value, you
should set it in GT Designer3.
When a value is inputted, window screen for
confirmation of the value change is not displayed.
If you want to show the screen, you should set it
in GT Designer3.
The number of decimal places is two by default. If
you want to change the number of decimal places,
you should set it in GT Designer3.
-10.00 to 110.00 %

PID controller Template Manual


37/45
Yes This displays MV upper limit (unit: %).
In the automatic mode, sets the upper limit for
the MV calculated in PID operation.
If you want to set MVHL as upper limit value, you
should set it in GT Designer3.
When a value is inputted, window screen for
confirmation of the value change is not displayed.
If you want to show the screen, you should set it
in GT Designer3.
The number of decimal places is two by default. If
you want to change the number of decimal places,
you should set it in GT Designer3.
-10.00 to 110.00 %
Yes These input boxes set each threshold.
When a value is inputted, window screen for
confirmation of the value change is not displayed.
If you want to show the screen, you should set it
in GT Designer3.
The number of decimal places is two by default. If
you want to change the number of decimal places,
you should set it in GT Designer3.
Yes These input boxes set the delay time to detect
each measured value status. Unit is 100
milliseconds.
When a value is inputted, window screen for
confirmation of the value change is not displayed.
If you want to show the screen, you should set it
in GT Designer3.
If you want to change the number of decimal
places, you should set it in GT Designer3.
No This displays control loop type.
Yes This button closes the trend graph window.

PID controller Template Manual


38/45
Template Property (for GOT)
Template Properties are below.

Data Type Template Attribute Name Description


Symbol EquipmentName Equipment name displayed on symbol
Faceplate_ScreenNo The number of Window screen linked to faceplate
EngineeringUnit Engineering unit displayed on symbol
Label_PV System label name for PV of Monitoring Interface
Label_SV System label name for SV of Monitoring Interface
Label_Control_mode System label name for Control_mode of Monitoring
Interface
Label_CAS_mode System label name for CAS_mode of Monitoring
Interface
Label_WarningStatus System label name for WarningStatus of Monitoring
Interface
Label_AlarmStatus System label name for AlarmStatus of Monitoring
Interface
Label_Simulate System label name for Simulate of Monitoring
Interface
Label_MessageMeasurement System label name for MessageMeasurement of
Monitoring Interface
Faceplate EquipmentName Equipment name displayed on faceplate
Faceplate_Trend_ScreenNo The number of Window screen linked to Trend
screen
Faceplate_CntData_ScreenNo The number of Window screen linked to Control
Data screen
EngineeringUnit Engineering unit displayed on faceplate
Label_PV System label name for PV of Monitoring Interface
Label_SV System label name for SV of Monitoring Interface
Label_MV System label name for MV of Monitoring Interface
Label_Control_mode System label name for Control_mode of Monitoring
Interface
Label_MVLL System label name for MVLL of Monitoring
Interface
Label_MVHL System label name for MVHL of Monitoring
Interface

PID controller Template Manual


39/45
Label_CAS_mode System label name for CAS_mode of Monitoring
Interface
Label_P_Loop_Num System label name for P_Loop_Num of Monitoring
Interface
Label_Cascade System label name for Cascade of Monitoring
Interface
Label_auto_man_mode System label name for auto_man_mode of
Monitoring Interface
Label_MaxValue System label name for MaxValue of Monitoring
Interface
Label_MinValue System label name for MinValue of Monitoring
Interface
Label_Eq4Threshold_Ack System label name for Ack of the Eq4Threshold
structure of Monitoring Interface.
Label_WarningStatus System label name for WarningStatus of Monitoring
Interface
Label_AlarmStatus System label name for AlarmStatus of Monitoring
Interface
Label_Simulate System label name for Simulate of Monitoring
Interface
Label_PresentValue System label name for PresentValue of Monitoring
Interface
Label_Offset System label name for Offset of Monitoring Interface
Label_MessageMeasurement System label name for MessageMeasurement of
Monitoring Interface
Label_MessageHH System label name for MessageHH of Monitoring
Interface
Label_MessageH System label name for MessageH of Monitoring
Interface
Label_MessageL System label name for MessageL of Monitoring
Interface
Label_MessageLL System label name for MessageLL of Monitoring
Interface

PID controller Template Manual


40/45
Trend EquipmentName Equipment name displayed on Trend screen
EngineeringUnit Engineering unit displayed on Trend screen
Label_PV System label name for PV of Monitoring Interface
Label_SV System label name for SV of Monitoring Interface
Label_MV System label name for MV of Monitoring Interface
Label_Loop_Num System label name for Loop_Num of Monitoring
Interface
Label_MaxValue System label name for MaxValue of Monitoring
Interface
Label_MinValue System label name for MinValue of Monitoring
Interface
Control EquipmentName Equipment name displayed on Control Data screen
Data EngineeringUnit Engineering unit displayed on Control Data screen
Label_OP_expres System label name for OP_expres of Monitoring
Interface
Label_TSC System label name for TSC of Monitoring Interface
Label_KP System label name for KP of Monitoring Interface
Label_TI System label name for TI of Monitoring Interface
Label_TD System label name for TD of Monitoring Interface
Label_Alfa System label name for Alfa of Monitoring Interface
Label_MVLL System label name for MVLL of Monitoring
Interface
Label_MVHL System label name for MVHL of Monitoring
Interface
Label_KD System label name for KD of Monitoring Interface
Label_Loop_Num System label name for Loop_Num of Monitoring
Interface
Label_MaxValue System label name for MaxValue of Monitoring
Interface
Label_MinValue System label name for MinValue of Monitoring
Interface
Label_SetPoint_HH System label name for SetPoint_HH of Monitoring
Interface
Label_DelayTime_HH System label name for DelayTime_HH of Monitoring
Interface
Label_SetPoint_H System label name for SetPoint_H of Monitoring
Interface

PID controller Template Manual


41/45
Label_DelayTime_H System label name for SetPoint_H of Monitoring
Interface
Label_SetPoint_L System label name for SetPoint_L of Monitoring
Interface
Label_DelayTime_L System label name for DelayTime_L of Monitoring
Interface
Label_SetPoint_LL System label name for SetPoint_LL of Monitoring
Interface
Label_DelayTime_LL System label name for DelayTime_LL of Monitoring
Interface

PID controller Template Manual


42/45
Caution
1. Restoration of values
This function block stores some device values to latched devices at every scan.
After the programmable controller is turned on or the programmable controller is reset, it restores
some values stored to latched devices to corresponding devices at the first scan.
If the user changes the device value during programmable controller stop, the device value may not
be applied after the programmable controller is turned on or the programmable controller is reset.

2. Online program change


New function blocks written by online program change have to be initialized by the input of
initialization request because they may work wrong by using undefined values.

3. ToolTip
ToolTip is displayed when the cursor is on the symbol of Overview Display.

You can see the Tooltip setting in the Properties of Canvas.


If ToolTip is not needed, its setting should be False.

PID controller Template Manual


43/45
4. PID Control instruction specification
This FB uses the instruction MELSEC S_PIDCONT. Please refer to Mitsubishi programmable
controller manual (MELSEC-Q/L/QnA Programming Manual PID Control Instruction
SH-080785ENG) for details.
a) This FB uses the incomplete derivative for Derivative operation.
b) Applicable CPU and Number of PID control loops
Applicable CPU and Number of PID control loops
Component Module Number of PID

control loops

Basic model QCPU Q00JCPU, Q00CPU, Q01CPU 8 loops

(First 5 digits of serial No. are 04122 or later) (maximum)

High Performance model QCPU Q02CPU, Q02HCPU, Q06HCPU, Q12HCPU, Q25HCPU 32 loops

(First 5 digits of serial No. are 05032 or later) (maximum)

Redundant CPU Q12PRHCPU, Q25PRHCPU 32 loops

(maximum)

Universal model QCPU Q00UJCPU, Q00UCPU, Q01UCPU, Q02UCPU, Q03UDCPU, 32 loops

Q04UDHCPU, Q06UDHCPU, Q10UDHCPU, Q13UDHCPU, (maximum)

Q20UDHCPU, Q26UDHCPU, Q03UDECPU, Q04UDEHCPU,

Q06UDEHCPU, Q10UDEHCPU, Q13UDEHCPU,

Q20UDEHCPU, Q26UDEHCPU, Q50UDEHCPU,

Q100UDEHCPU

LCPU L02CPU, L26CPU-BT, L02CPU-P, L26CPU-PBT 32 loops

(maximum)

QnACPU - -

c) This FB is not available for use in an interrupt program, fixed scan execution type program or
low speed execution type program.
d) S_PIDCONT instruction is executed without PID limits.

PID controller Template Manual


44/45
Appendix
1) Cascade control
SV setting processing and Tracking processing is shown below in Cascade control.
Primary Loop Number (EEE_PRIMARY_NUM)

0 Not 0

Cascade mode (CAS_mode)

True(Cascade mode) False(Norm True(Cascade mode) False(Normal


al mode) mode)
Control mode

Automatic Manual - Automatic Manual -


Cascede True SV = - - SV = Primary - Tracking to
(EEE_CAS (Enable) EEE_CAS_SV loop’s MV Primary loop is
CADE) executed.
Primary loop’s MV
= SV
False - - - - -
(Disable)

2) Message Specification
This is the specification for error messages (ex. interlock error, trip error, etc).
According to an error state, WORD value is output from a function block.
Bits (T: True, F: False) WORD
Message GUI
MSG WORD Value
7 6 5 4 3 2 1 0 Status Display
(Hex)
warning type
msg not ack

status type
alarm type
msg active

not used

not used

not used

F F F T F H02 not active normal


msg active flash
T T F T F HC2 and nack yellow
warning msg msg active solid
T F F T F H82 and ack yellow
flash
F T F F T F H42 msg nack yellow
F F T F F H04 not active normal
msg active
T T T F F HC4 and nack flash red
alarm msg
msg active
T F T F F H84 and ack solid red
F T T F F H44 msg nack flash red
0 to 2 bit: message type
3 to 5 bit: not used
6 bit: acknowledge (True: non-acknowledge, False: acknowledge)
7 bit: current status (True: active, False: not active)

PID controller Template Manual


45/45

You might also like