FB_MTP_PIDCtrl
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.
![]() | 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 |
Syntax
FUNCTION_BLOCK FB_MTP_PIDCtrl EXTENDS FB_MTP_PIDCtrlBase
VAR
fbPid : FB_CTRL_PID_EXT;
PidParams : ST_Ctrl_PID_EXT_PARAMS;
END_VARSUPER^();Inheritance hierarchy
FB_MTP_PIDCtrlBase
FB_MTP_PIDCtrl
Methods
Name | Description |
|---|---|
PIDLogic | Implementation of the logic for calling the PID controller |
ResetPID | Implementation of the logic for resetting the PID controller |
