PLC API Special characteristics for eNewParameterType TYPE E_CTRL_NEW_PARAMETER_TYPE : ( eCTRL_NEW_PARAMETER_TYPE_NotInstant := 0, eCTRL_NEW_PARAMETER_TYPE_Instant := 1); END_TYPE eCTRL_NEW_PARAMETER_TYPE_Instant : When a restart instruction is issued with a new parameter set, this set is adopted immediately. In other words a transition from the current state of movement to the data represented by the new parameter set is calculated, and the old parameters are discarded. eCTRL_NEW_PARAMETER_TYPE_NotInstant : When a restart instruction is issued with a new parameter set, the new set is not adopted immediately.
In other words the current movement is first executed to completion, after which positioning to the new destination is carried out with the new parameters. A TRUE at the bCommandBuffered output indicates that a non-instantaneous restart instruction is stored. An order that has already been stored can be overwritten or deleted by a further new, non-instantaneous parameter set. TF4100 156 Version: 2.2.4 Name Type Description tTaskCycleTime TIME Cycle time with which the control loop is processed. This must be greater than or equal to the TaskCycleTime.
The function block uses this input value to calculate internally whether the state and the output values have to be updated in the current cycle. tCtrlCycleTime TIME Cycle time with which the function block is called. If the function block is called in every task cycle this corresponds to the task cycle time of the calling task. fStartPos LREAL Start position for the motion profile fStartVelo LREAL Start velocity for the motion profile fVelocity LREAL Velocity in units/second fTargetPos LREAL Target position of the motion profile fTargetVelo LREAL Target velocity of the motion profile. Note:
The target velocity is retained when the destination position has been reached (the bDone flag is set), but after this point the position is no longer calculated (constant position at velocity ≠ 0.0). fAcceleration LREAL Acceleration in units / second2 fDeceleration LREAL Deceleration in units / second2 eNewParameterT ype E CTRL NEW _ _ _ PARAMETER _ TYPE eCTRL NEW PARAMETER TYPE Instant _ _ _ _ and eCTRL NEW PARAMETER TYPE NotInstant _ _ _ _