L_MC2P_LinearCoupling

This FB serves as master value connection for the "Synchronism" application.

  • The lrSetPosOutY position value (y cycle of the y axis) is synchronous to the lrCycPosX master value (cycle of the x axis), i.e. if the master value overflows, a new cycle also starts for the lrSetPosOutY output.
  • The function block uses the adjustable lrCyclelengthX and lrCyclelengthY cycle lengths. The ratio maps one cycle length of the X measuring system into one cycle length of the Y measuring system.

Internal calculation:

 

 

 

L_MC2P_LinearCoupling

 

 

 

BOOL

-

xEnable

lrSetPosOutY

-

LREAL

BOOL

-

xXResetX

lrSetVelOutY

-

LREAL

LREAL

-

lrCycPosX

lrSetVelOutX

-

LREAL

LREAL

-

lrSetOffsetX

lrActPosX

-

LREAL

LREAL

-

lrCyclelengthX

xZeroPos

-

BOOL

LREAL

-

lrCyclelengthY

xError

-

BOOL

eErrorID

-

L_IE1P_Error

 

 

 

 

 

 

 

 

Inputs

Name

Data type

Information/possible settings

xEnable

BOOL

Activate function.

TRUE

Function is activated.

FALSE

Function has been deactivated.

  • The lrSetVelOutX and lrActPosX outputs continue following the lrCycPosX and lrSetOffsetX input positions.
  • At the lrSetVelOutY output, the value '0' is shown.
  • At the lrSetPosOutY output, the last value is maintained.

Please note: A position jump on the master value side is not shown at the lrSetVelOutY and lrSetPosOutY outputs.

xXResetX

BOOL

Reset lrCycPosX master value internally.

TRUE

The lrCycPosX master value is set to and is maintained at '0' internally.

The output corresponds to lrSetOffsetX .

FALSE

The output corresponds to lrCycPosX + lrSetOffsetX .

lrCycPosX

LREAL

Master value selection

lrSetOffsetX

LREAL

Angular offset for the master value

lrCyclelengthX

LREAL

Cycle length of the X measuring system

lrCyclelengthY

LREAL

Cycle length of the Y measuring system

Outputs

Name

Data type

Value/meaning

lrSetPosOutY

LREAL

Setpoint position

  • Output of the position setpoint in the setpoint cycle as a function of the master value (master value cycle).
  • The return of master value cycle and setpoint cycle depends on the corresponding cycles set. Thus, the return is firmly linked to the master value cycle.
  • If the function block is deactivated ( xEnable = FALSE), the last setpoint position remains set.

lrSetVelOutY

LREAL

Setpoint speed

  • If the function block is deactivated ( xEnable = FALSE), the value '0' is output.

lrSetVelOutX

LREAL

Master speed

  • If the function block is deactivated ( xEnable = FALSE), the resulting master speed is still output.

lrActPosX

LREAL

Master position

  • The value results from lrSetOffsetX + lrCycPosX .
  • If the function block is deactivated ( xEnable = FALSE), the resulting master position is still output.

xZeroPos

BOOL

Status signal for zero position/zero crossing

TRUE

  • Permanently:
    The master value is in the zero position of the master value integrator.
  • For one cycle:
    Zero crossing of the master value integrator

FALSE

The master value is in any position in the master value cycle.

xError

BOOL

TRUE

An error has occurred. For details see eErrorID .

eErrorID

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