MC_PhasingAbsolute (FB)

FUNCTION_BLOCK MC_PhasingAbsolute

This function block performs a movement for the relation to the master axis of the specified axis. A real movement is just performed in case the axis is in synchronized motion.

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

This function block creates an absolute phase shift in the master position of a slave axis. The master position is shifted in relation to the real physical position. This is analogous to opening a coupling on the master shaft for a moment and is used to delay or advance an axis to its master. The phase shift is seen from the slave. The master does not know that there is a phase shift experienced by the slave. The phase shift remains until another “Phasing” command changes it again.

Note

Phase, Velocity, Acceleration, Deceleration and Jerk of a phase shift are controlled by the function block

Timing example of MC_Phasing

../../../../../../_images/MC_PhasingAbsolute_Ex1.png

The following graph shows the effect of “Phasing”

../../../../../../_images/MC_PhasingAbsolute_Ex2.png

Note

To halt this function block user must use MC_HaltPhasing function block instead of MC_Stop or MC_Halt

InOut:

Scope

Name

Type

Comment

Input

Execute

BOOL

Starts the function block at rising edge

PhaseShift

LREAL

[u] = Technical unit, Absolute phase difference in master

Velocity

LREAL

[u/s] Value of the maximum velocity (not necessarily reached). Range: >0

Acceleration

LREAL

[u/s°°2] Value of the acceleration (increasing energy of the motor). Range: >0.If value > 0 and <= 1,Acceleration will be limited to 1.

Deceleration

LREAL

[u/s°°2] Value of the deceleration (decreasing energy of the motor). Range: >0.If value > 0 and <= 1,Deceleration will be limited to 1.

Jerk

LREAL

[u/s°°3] Value of the jerk. Range: >=0

BufferMode

MC_BufferMode

Not supported, default mcABORTING used

Output

Done

BOOL

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

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

AbsolutePhaseShift

LREAL

[u] Actual phase shift of master axis to slave axis, valid while function block is busy

Inout

Axis

Axis_Ref

Reference to axis