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.

../../../../../../_images/plcopen.png

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

JogForward

BOOL

Move forward as long as JogForward = TRUE or at least MinJogDistance

JogBackward

BOOL

Move backward as long as JogForward = TRUE or at least MinJogDistance

JogVelo

LREAL

[u/s] Velocity to jog. Range: >0. If value = 0, JogVelo will be equal to parameter paraMaxVelocityAppl

JogAcc

LREAL

[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.

JogDec

LREAL

[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.

JogJerk

LREAL

[u/s°°3] Jerk value for jog. Range: >=0, <0: value at input ignored

MinJogDistance

LREAL

[u] Minimum distance to jog

Output

Done

BOOL

Shows the status of the function block. Done = TRUE if the execution is finished

InVelocity

BOOL

Commanded 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

Busy

BOOL

The function block is not finished

Active

BOOL

Indicates that the function block has control on the axis

CommandAborted

BOOL

Command is aborted by another command from other PLCopen function block

Error

BOOL

Signals that error has occurred within function block

ErrorID

ERROR_ID

Error identification. For error details refer to Enumeration ERROR_ID

Inout

Axis

Axis_Ref

Reference to axis