L_MC1P_SetExternalEncoder
This FB can be used to link an encoder axis with a motion axis in order to use the encoder values for position control in the motion axis.
An existing link can be canceled by setting the encoder input to 0.
The control mode must be changed separately in the motion axis.
|
|
|
|
L_MC1P_SetExternalEncoder |
|
|
|
|
|---|---|---|---|---|---|---|---|
|
AXIS_REF |
- |
Axis |
xDone |
- |
BOOL |
||
|
L_MC1P_IEncoderInterface |
- |
Encoder |
xBusy |
- |
BOOL |
||
|
BOOL |
|
xExecute |
xError |
- |
BOOL |
||
|
|
|
|
eErrorID |
- |
L_IE1P_Error |
||
|
|
|
|
|
|
|
|
|
Inputs
|
Name Datentyp |
Information/possible settings |
|
|---|---|---|
|
Axis |
Motion axis in which the encoder is to be used for position control. |
|
|
Encoder L_MC1P_IEncoderInterface |
Encoder-AxisRef, which is to be used for position control in the axis. |
|
|
xExecute BOOL |
FALSE รค TRUE |
Start execution of the function block. |
Outputs
|
Name Datentyp |
Value/meaning |
|
|---|---|---|
|
xDone BOOL |
Encoder axis was linked with motion axis |
|
|
xBusy BOOL |
New connection is configured |
|
|
xError BOOL |
An error has occurred |
|
|
eErrorID |
If xError = TRUE: Error number for the error that has occurred. |
|