PLC-API NOTE If a new parameter set of type " eCTRL_NEW_POS_TYPE_Instant " in which the deceleration is reduced is given to the function block it is possible that the old target position will be exceeded. Sample :
stParams.fTargetPos := 1000.0; stParams.fStartPos := 0.0; stParams.fVelocity := 500.0; stParams.fAcceleration := 1000.0; stParams.fDeceleration := 1000.0; IF fSetPos > 800.0 THEN stParams.fTargetPos := 400.0; stParams.fVelocity := 500.0; stParams.fAcceleration := 1_000.0; stParams.fDeceleration := 500.0; stParams.eNewPosType := eCTRL_NEW_POS_TYPE_Instant; END_IF It can clearly be seen in the following scope recording that the original target position of 1000 mm is exceeded, the reason being that the new parameter set had a reduced deceleration. TS4100 146 Version: 1.1