MCA_JogAxis (FB)
FUNCTION_BLOCK MCA_JogAxis
This function block jogs an axis for at least a given distance forward or backward with the selected jog velocity and acceleration.
This function block, after rising edge on JogForward or JogBackward, start a continuous move (at least for the minimum distance) and continue upon high-level on these inputs with a continuous motion, until they are FALSE, then on their falling edge, the axis is regularly decelerated to stop. The movement is carried out on Jog velocity for the minimum distance or longer.
In case of both enable signals (JogForward and JogBackward) are high, the function block will not move the axis.
In case of MinJogDistance = 0, no specified distance is moved and the movement will stop as soon as the JogForward and JogBackward is FALSE.
- InOut:
Scope
Name
Type
Comment
Input
JogForwardBOOLMove forward as long as JogForward = TRUE or at least MinJogDistance
JogBackwardBOOLMove backward as long as JogForward = TRUE or at least MinJogDistance
JogVeloLREAL[u/s] Velocity to jog. Range: >0. If value = 0, JogVelo will be equal to parameter paraMaxVelocityAppl
JogAccLREAL[u/s°°2] Acceleration to jog. Range: >0. If value = 0, JogAcc will be equal to parameter paraMaxAccelerationAppl.If value > 0 and <= 1,JogAcc will be limited to 1.
JogDecLREAL[u/s°°2] Deceleration to jog. Range: >0. If value = 0, JogDec will be equal to parameter paraMaxDecelerationAppl.If value > 0 and <= 1,JogDec will be limited to 1.
JogJerkLREAL[u/s°°3] Jerk value for jog. Range: >=0, <0: value at input ignored
MinJogDistanceLREAL[u] Minimum distance to jog
Output
DoneBOOLShows the status of the function block. Done = TRUE if the execution is finished
InVelocityBOOLCommanded velocity is reached when the axis is already in a continuous movement, which means it only may be true when the relative distance of the axis movement exceeds MinJogDistance
BusyBOOLThe function block is not finished
ActiveBOOLIndicates that the function block has control on the axis
CommandAbortedBOOLCommand is aborted by another command from other PLCopen function block
ErrorBOOLSignals that error has occurred within function block
ErrorIDError identification. For error details refer to Enumeration ERROR_ID
Inout
AxisReference to axis