beckhoff TF4100 — 4.2.1.8.1 FB_CTRL_3PHASE_SETPOINT_GENERATOR

PLC API Inputs/ outputs VAR_IN_OUT stParams : ST_CTRL_3PHASE_SETPOINT_GENERATOR_PARAMS; END_VAR stParams consists of the following elements: TYPE ST_CTRL_RAMP_GENERATOR_PARAMS : STRUCT tTaskCycleTime : TIME; tCtrlCycleTime : TIME; fStartPos : LREAL; fStartVelo : LREAL; fVelocity : LREAL; (* >= 0.0 *) fTargetPos : LREAL; fTargetVelo : LREAL; fAcceleration : LREAL; (* > 0.0 *) fDeceleration : LREAL; (* > 0.0 *) eNewParameterType : E_CTRL_NEW_PARAMETER_TYPE; EN_STRUCT END_TYPE TF4100 155 Version:

2.2.4 Name Type Description fSetPos LREAL Set position fSetVelo LREAL Set velocity fSetAcc LREAL Set acceleration nSetDirection INT Direction of movement [-1, 0, 1], 1 --> movement direction is positive 0 --> generator is inactive 1 --> movement direction is negative bCommandBuffer ed BOOL When this output is TRUE it indicates that a motion command is stored that will begin when the current order has completed. A saved order is deleted if the following special case is specified as a parameter set.

fAcceleration := 0.0; fDeceleration := 0.0; fStartPos := 0.0; fStartVelo := 0.0; fTargetPos := 0.0; fTargetVelo := 0.0; fVelocity := 0.0; tCtrlCycleTime := T#0s; tTaskCycleTime := T#0s; eNewParameterType := eCTRL NEW PARAMETER TYPE _ _ _ _ NotInstant; bDone BOOL This output becomes TRUE when the movement has been completed and the target position has been reached. bCommand Aborted BOOL This output becomes TRUE when the current movement is interrupted. This can be caused, for instance, through a rising edge at the bStop input. eErrorId E CTRL ERROR _ _ CODES Supplies the error number [} 173] when the output bError is set. bError BOOL Becomes TRUE as soon as an error situation occurs.

Name Type Description stParams ST CTRL 3PHAS _ _ E _ SETPOINT GEN _ ERATOR PARAM _ S Parameter structure of the setpoint generator