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.
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
|
|
|
lrSetVelOutY LREAL |
Setpoint speed
|
|
|
lrSetVelOutX LREAL |
Master speed
|
|
|
lrActPosX LREAL |
Master position
|
|
|
xZeroPos BOOL |
Status signal for zero position/zero crossing |
|
|
TRUE |
|
|
|
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.
|
|