307
4
4 Instructions 4.12.1 PID Calculation
4.12.1 PID Calculation
PID: PID calculation
◆
Overview
The PID instruction performs PID calculation to control the parameters of a close-loop control system.
PID S1 S2 S3 D
PID calculation Applicable model:
H3U
S1
Target
value
Target PID setting
16-bit instruction
(9 steps)
PID: Continuous
execution
S2
Feedback
value
Actually measured feedback value
S3
Operation
parameter
Start number of units that store the operation result
D
Output
value
Unit that stores the PID output value
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S1 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
S2 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
S3 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
◆
Function
1) PID calculation selection
Unit Function Meaning Remarks
S3 + 0 Sampling cycle
S3 + 1
Calculation
mode selection
0x00** Incremental PID instruction
Higher-8-bit control instruction
operation mode
0x01** Position-type PID instruction
0x02**
Special instruction (with the same
function as the Inovance AC drive
(
customized version 307)
S3 + 25…S3 + 30
Occupied
by internal
operation
-
-
The meaning of the S3 unit varies with different functional instructions.