MC_SEW_ReadAbsolutePhaseShift

This function block reads the current absolute phase shift of a slave axis that is effective in the context. As long as Enable is set, the AbsolutePhaseShift output is updated cyclically. The context from which the phase shift is read is selected via the PhasingContext parameter.

VAR_IN_OUT

Variable name

Data type

Description

Axis

AXIS_REF

Reference to a logical device
(name of the logical device)

See also AXIS_REF.

VAR_INPUT

Variable name

Data type

Description

Enable

BOOL

Activate function block.

PhasingContext

E_PhasingContext

Defines the context of the phase shift to be read:

  • Gearing
  • Camming
  • CombineAxesMaster1
  • CombineAxesMaster2
VAR_OUTPUT

Variable name

Data type

Description

Valid

BOOL

Output data is valid

Busy

BOOL

Function block is active

AbsolutePhaseShift

BOOL

Current absolute phase shift in user units of the master

Error

BOOL

An error has occurred in the function block

ErrorID

WORD

Error number