MC_PhasingRelative

This FB serves to set a virtual relative offset between the applied master axis and the applied slave axis. The special feature here is that the offset only exists virtually and this FB does not cause any motion control.

  • From the view of the slave axis, the virtual offset is located on the master axis without the master axis noting it.
  • As soon as an FB for multi-axes movements ( MC_CamIn , MC_GearInPos , ...) is called with the same master slave configuration, the virtual offset is considered automatically.
  • An offset set via MC_PhasingRelative can be deleted by means of the L_MC2P_ResetPhasing function block without having any impact on the movement of the axis which has been uncoupled in the meantime again.

 

 

 

MC_PhasingRelative

 

 

 

AXIS_REF

-

master

Done

-

BOOL

AXIS_REF

-

Slave

Busy

-

BOOL

BOOL

-

Execute

Active

-

BOOL

LREAL

-

PhaseShift

CommandAborted

-

BOOL

LREAL

-

Velocity

Error

-

BOOL

LREAL

-

Acceleration

ErrorID

-

L_IE1P_Error

LREAL

-

Deceleration

CoveredPhaseShift

LREAL

LREAL

-

Jerk

MC_BUFFER_MODE

-

BufferMode

 

 

 

 

 

 

 

 

Inputs

Name

Data type

Information/possible settings

master

AXIS_REF

Transfer of the axis data structure of the master axis

Motion axes (AXIS_REF)

Slave

AXIS_REF

Transfer of the axis data structure of the slave axis

Motion axes (AXIS_REF)

Execute

BOOL

FALSE รค TRUE

Set phase displacement.

PhaseShift

LREAL

Relative phase displacement between master and slave axis

Velocity

LREAL

Maximum velocity in [unit/s]

Acceleration

LREAL

Maximum acceleration in [unit/s 2 ]

Deceleration

LREAL

Maximum deceleration in [unit/s 2 ]

Jerk

LREAL

Maximum acceleration increase in [unit/s 3 ]

BufferMode

MC_BUFFER_MODE

Mode for processing successive motion commands

BufferMode

Note!

If a phasing FB is started with BufferMode "mcBuffered" while another phasing FB is currently being executed, the execution of the first phasing FB is aborted and the second phasing FB is started directly. Thus, the behaviour corresponds to the BufferMode "mcAborted" as a call of a second phasing FB with the set BufferMode is not permissible.

Outputs

Name

Data type

Value/meaning

Done

BOOL

TRUE

Phase displacement has been set.

Busy

BOOL

TRUE

Processing is running.

Active

BOOL

TRUE

The command of the FB is currently executed.

  • The Active output matters if a motion control is carried out by several FBs (BufferMode).

CommandAborted

BOOL

TRUE

The command was aborted by another FB.

  • The motion control of the slave has been taken over by another FB.

Error

BOOL

TRUE

An error has occurred. For details see ErrorID .

  • The motion control of the slave must be taken over by another FB.

ErrorID

L_IE1P_Error

If Error = TRUE: Error number for the error that has occurred.

CoveredPhaseShift

BOOL

Relative phase displacement

  • Continuous display as long as Busy = TRUE.