AH500 Programming Manual
6-170
API
Instruction code
Operand Function
0707 D PID
PID_RUN, SV, PV, PID_MODE,
PID_MAN, MOUT_AUTO,
CYCLE, Kp, Ki, Kd, PID_DIR,
ERR_DBW, MV_MAX, MV_MIN,
PID algorithm
Device
X Y M S T C HC D L
SM
SR E PR K 16#
“$” DF
Pulse instruction
16-Bit instruction
32-Bit instruction (35 steps)
AH500
Symbol:
PID_RUN
:
Enabling the PID algorithm Bit
SV
:
Target value (SV) Double word
PV
:
Process value (PV) Double word
PID_MODE
:
PID control mode Double word
PID_MAN
:
PID A/M mode (PID_MAN) Bit
MOUT_AUTO
:
MOUT_AUTO Bit
CYCLE
:
Sampling time (CYCLE) Double word
K
p
:
Proportional gain (K
p
)
Double word
K
i
:
Integral gain (K
i
)
Double word
K
d
:
Derivative gain (K
d
)
Double word
PID_DIR
:
PID forward/reverse direction
(PID_DIR)
Bit
ERR_DBW
:
Range within which the error
value is count as 0
Double word