32.16.5.5 Operation Overview - PID

When the PID instruction is enabled, the PID is calculated and the operation volume is adjusted and output (calculated). When the instruction is disabled as below, it outputs the Tieback value. The Tieback value is specified in S3. Input the constant 0 if no output is necessary when the instruction is disabled.

To use the PID instruction in a logic program, allocate variables to the PID variable operand (HP) and the integer variable operands (S1, S2, S3 and D1) first.

PID Variable

When you allocate a variable to the PID instruction operand HP, a member is automatically allocated to the variable.

PID Variable

Variables Settings

Description

VariableName.Q

Bit Variable

Completion Flag for PID Instruction Processing

VariableName.PF

Bit Variable

Processing Deadband Range Flag

VariableName.UO

Bit Variable

Output Values over the Lower Limit

VariableName.TO

Bit Variable

Output Values over the Upper Limit

VariableName.IF

Bit Variable

Integral Setting

VariableName.KP

Integer Variable

Proportional Constant

VariableName.TR

Integer Variable

Integral Calculus Time

VariableName.TD

Integer Variable

Differential Calculus Time

VariableName.PA

Integer Variable

Processing Deadband Range

VariableName.BA

Integer Variable

Bias (Offset)

VariableName.ST

Integer Variable

Frequency in Sampling