beckhoff TS4100 — 5.9.5 FB_CTRL_SETPOINT_GENERATOR

PLC-API Behavior of the output value: Example table: 18 20 22 24 The first line of the table corresponds to Index 1, at the second to Index 2, and so forth. Description: The individual set values are stored in the array. The array must be made known to the block through the appropriate parameters. One of the set values stored in the table is selected by means of the nSetpointIndex input. This is then made available at the output, and can be used as the set value for the controller. Changing from one value to another can be implemented in a linear fashion or as a jump. The velocity of a continuous transition is specified by the fVeloPos and fVeloNeg parameters.

The bValueReached output indicates that the chosen set value has been reached. VAR_INPUT VAR_INPUT nSetpointIndex : INT (*[1 ... n] *); fManValue : FLOAT; eMode : E_CTRL_MODE; END_VAR nSetpointIndex : Index of the selected set value. fManValue : Input whose value is output in manual mode. eMode : Input that specifies the block's operating mode [ } 16] . VAR_OUTPUT VAR_OUTPUT fOut : SETPOINT_TABLE_ELEMENT; bValueReached : BOOL; eState : E_CTRL_STATE; eErrorId : E_CTRL_ERRORCODES; bError : BOOL; END_VAR fOut : Output of the set value generator. TS4100 154 Version: 1.1