Kaiyi — 6.8.2 Explanation of Convenience Instructions

AH500 Programming Manual 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/ Double integer PID_MAN : PID A/M mode (PID_MAN) Bit MOUT_AUTO : MOUT_AUTO Bit CYCLE : Sampling time (CYCLE) Double word/ Double integer 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 (ERR_DBW) Double word MV_MAX : Maximum output value (MV_MAX) Double word 6-167 API Instruction code Operand Function 0707 D PID S , S , S , D 1 2 3 PID algorithm Device X Y M S T C HC D L SM SR E PR K 16# “$” DF PID RUN _        SV    PV    PID MODE _    PID MAN _        MOUT AUTO _        CYCLE    Kp    Ki    Kd    PID DIR _        ERR DBW _    MV MAX _    MV MIN _    MOUT    I MV _    MV    Pulse instruction 16-bit instruction 32-bit instruction (35 steps) - - AH