PID Controller Template Manual - bcnp59990028c
PID Controller Template Manual - bcnp59990028c
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).
Lo Warning
LoLo Alarm
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.
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.
:
Yes These input boxes set the delay time to detect
each measured value status. Unit is 100
: milliseconds.
No This displays control loop type.
・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.)
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.
3. ToolTip
ToolTip is displayed when the cursor is on the symbol of Overview Display.
control loops
High Performance model QCPU Q02CPU, Q02HCPU, Q06HCPU, Q12HCPU, Q25HCPU 32 loops
(maximum)
Q100UDEHCPU
(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.
0 Not 0
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