16 Other Functions
16-4
CP2E CPU Unit Software User’s Manual(W614)
z Automatically Executing Autotuning When PIDAT Is Executed
To automatically autotune the PID constants, turn ON the AT Command Bit when the PIDAT instruc-
tion is executed.
1
Set the PID parameter in words C to C+10. Word C is specified by the second operand.
Example: Place the set value (SV) in C and place the input range in bits 08 to 11 of C+6. Turn
ON bit 15 of C+9 (AT Command Bit).
2
Turn ON the PIDAT instruction’s input condition.
The PIDAT instruction will execute autotuning. When it has finished, the AT Command Bit (bit 15
in C+9) will turn OFF. At the same time the proportional band (C+1), integral constant (C+2),
and derivative constant (C+3) calculated by autotuning will be stored and PID control will be
started.
z Executing Autotuning for Other Conditions When PIDAT Is Executed
Here, the AT Command Bit is left OFF when the PIDAT instruction is being executed. Later it is
turned ON by some other condition to start autotuning.
1
Set the PID parameter in words C to C+10. Word C is specified by the second operand.
Example: Place the set value (SV) in C, the proportional band in C+1, the integral constant in
C+2, the derivative constant in C+3, and the input range in bits 08 to 11 of C+6. Turn OFF bit 15
of C+9 (AT Command Bit).
2
Turn ON the PIDAT instruction’s input condition. PID control will be started with the specified
PID constants.
3
Turn ON bit 15 in C+9 (the AT Command Bit) while the input condition for the PID instruction is
ON. Autotuning will be performed. When it has finished, the AT Command Bit (bit 15 in C+9) will
turn OFF. The proportional band (C+1), integral constant (C+2), and derivative constant (C+3)
calculated by autotuning will be stored and PID control will be started with those PID constants.
• A K thermocouple is used for the temperature input. Use a CP1W-TS001 Temperature Sensor Unit
(thermocouple input).
Autotuning Procedure
16-1-3 Application Example
System Configuration
100.00 COM
-
Inputs connected to terminal
blocks CIO 0 and CIO 1
CP2E CPU Unit with 30 I/O
Points
Transistor output
Inputs connected to
terminal block CIO 2
CP1W-TS001
Temperature Sensor Unit
Temperature
input
terminals
Stored in CIO 2 in
the Input Area
Control
device
(SSR)
Controlled device
Heater
K thermocouple
+