MCA_PhasingByMaster (FB)

FUNCTION_BLOCK MCA_PhasingByMaster

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 a relative 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

The phasing is executed with respect to a master movement and will use a polynomial interpolation

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, phase difference in master

MasterDistance

LREAL

[u] Distance master has to move

iType

MC_ABB_iTypes_Enum

Interpolation type, MCA_LINEAR, MCA_POLY3 or MCA_POLY5 are applicable

MasterValueSource

MC_Source

Decide to use the actual position or reference position of master axis

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

CoveredPhaseShift

LREAL

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

Inout

Axis

Axis_Ref

Reference to axis

Master

Axis_Ref

Reference to master axis