beckhoff TS4100 — 5.9.1 FB_CTRL_3PHASE_SETPOINT_GENERATOR(only on a PC system)

PLC-API Requirements 5.9 Setpointgeneration 5.9.1 FB_CTRL_3PHASE_SETPOINT_GENERATOR(only on a PC system) This function block represents a 3-phase set value generator. Description: This function block generates a 3-phase setpoint profile in which the acceleration has a rectangular curve. It is possible to specify a new parameter set while the generator is active. Depending upon what type of parameter set is specified, it may become effective immediately (eNewParameterType := eCTRL_NEW_PARAMETER_TYPE_Instant); alternatively, the current movement may first be completed, after which a new movement begins with a new set of parameters. (eNewPosType := eCTRL_NEW_PARAMETER_TYPE_NotInstant). NOTE 1.

Specifying a new parameter set may mean that the previous end position is exceeded. See example. 2. It is generally recommended that end position monitoring is included after the setpoint generator. VAR_INPUT VAR_INPUT bStart : BOOL; bStop : BOOL; bReset : BOOL; fOverride : LREAL; END_VAR bStart : Generation of the set values begins when a positive edge appears at the bStart input, provided the generator is not already active and that the bStop and bReset inputs are FALSE. bStop : Generation of the set values is stopped by a positive edge at the bStop input.

Braking is carried out using the deceleration specified in the current set of parameters, and any subsequent task that may be pending is deleted. bReset : Resets the set value generator. If a positioning process is under way it is interrupted immediately, the fSetVelo and fSetAcc outputs are set to 0.0, the set position is set to the start position, and all internal states are cleared. TS4100 140 Version: 1.1 Development Environment Target System PLC libraries to include TwinCAT v2.8 PC (i386) TcControllerToolbox.lib TwinCAT v2.9 from Build 947 BC [} 10] TcControllerToolbox.lb6 TwinCAT v2.9 from Build 956 BX [} 10] TcControllerToolbox.lbx