FB_MTP_PIDCtrl

FB_MTP_PIDCtrl 1:

The function block FB_MTP_PIDCtrl is derived from FB_MTP_PIDCtrlBase. In this function block, the PID controller from the TwinCAT library Tc2_ControllerToolbox was implemented.

FB_MTP_PIDCtrl 2:

If an alternative PID controller is used, a function block with the same name can be created in the PLC project, which also inherits from FB_MTP_PIDCtrlBase.

Syntax

FUNCTION_BLOCK FB_MTP_PIDCtrl EXTENDS FB_MTP_PIDCtrlBase
VAR

    fbPid     : FB_CTRL_PID_EXT;
    PidParams : ST_Ctrl_PID_EXT_PARAMS;
END_VAR
SUPER^();

Inheritance hierarchy

FB_MTP_PIDCtrlBase

   FB_MTP_PIDCtrl

FB_MTP_PIDCtrl 3: Methods

Name

Description

PIDLogic

Implementation of the logic for calling the PID controller

ResetPID

Implementation of the logic for resetting the PID controller