Process (output instruction)

PID instruction

Closed-loop proportional, integral and derivative control on an analog process value.

PID(number, pv, sp, kp, ki, kd, min, max, db, ff, manTag, man)

Arguments

NameWhat it isAcceptsDefault
destinationWhat the instruction acts ona registerrequired
pvMeasured value (PV)a tag—
spSetpoint (SP)a number or a tag50
kpKpa number1
kiKia number0
kdKda number0
minOut mina number0
maxOut maxa number100
dbDeadbanda number0
ffFeed-forwarda number or a tag0
manTagManual mode bita tag—
manManual outputa number or a tag0

Arguments are positional and this table is generated from the simulator's own instruction registry, so it always matches what the engine accepts.

Related instructions

All ladder logic instructions