beckhoff TF4100 — 4.2.1.3.13 FB_CTRL_STEP_PID

PLC API bBusy : BOOL; bMinLimitNeg : BOOL; bMinLimitPos : BOOL; bARWActive : BOOL; END_VAR Inputs/ outputs VAR_IN_OUT stCtrlParams : ST_CTRL_STEP_PID_PARAMS; END_VAR stCtrlParams consists of the following elements: TYPE ST_CTRL_STEP_PID_PARAMS: STRUCT tCtrlCycleTime : TIME; tTaskCycleTime : TIME; fKp : REAL; fTn : REAL; fTv : REAL; fTd : REAL; fTM : REAL; fDeadBandWidth : REAL; tMinimumPulseTime : TIME; tFilterTime : TIME; fWmax : REAL; fWmin : REAL; fYMax : REAL; fYMin : REAL; END_STRUCT END_TYPE TF4100 84 Version: 2.2.4 Name Type Description bCtrlDigitalPos BOOL Output required to run the motor in a positive direction.

bCtrlDigitalNeg BOOL Output required to run the motor in a negative direction. fCtrlAnalog LREAL Analog output of the controller eState E CTRL STATE _ _ Actual state of the controller eErrorId E CTRL ERROR _ _ CODES Returns the error number if bError is TRUE. bError BOOL TRUE if an error occurs in the function block. bBusy BOOL TRUE when the function block is active. bMinLimitNeg BOOL TRUE at this output indicates that the controller has reached its minimum limit value. bMinLimitPos BOOL TRUE at this output indicates that the controller has reached its maximum limit value. bARWActive BOOL TRUE at this output indicates that the controller is currently restricted.

Name Type Description stCtrlParams ST CTRL STEP _ _ _ PID PARAMS _ Parameter structure of the controller.