MC_SetPosition - General Information
|
Type: |
Function Block |
|
Available as of: |
1.0.5.0 |
|
Versions: |
current version |
The reference position of the axis is to be set without moving the axis.
The function block calls up SystemInterface.FC_SetPosSingle to offset the coordinate system of the axis.
|
Input |
Data type |
Description |
|---|---|---|
|
Axis |
SystemConfigurationItf.IF_Drive |
The axis the position of which is to be set |
|
Execute |
BOOL |
A positive edge sets the position. |
|
Position |
LREAL |
If Mode = FALSE: The absolute position to which the position is to be set If Mode = TRUE: The relative distance by which the position is to be offset |
|
Mode |
BOOL |
FALSE = ABSOLUTE The motor position is set to position. TRUE = RELATIVE Position is added via the motor position. |
|
Output |
Data type |
Description |
|---|---|---|
|
Done |
BOOL |
Position has a new value. |
|
Busy |
BOOL |
The function block is not finished and new outputs are still pending. |
|
Error |
BOOL |
Signalizes a detected error within the function block |
|
ErrorId |
DWORD |
Error identification |
|
q_etDiag |
General, library-independent statement on the diagnostic. A value unequal to GD.ET_Diag.Ok corresponds to a diagnostic message. |
|
|
q_etDiagExt |
POU-specific output on the diagnostic. q_etDiag = GD.ET_Diag.Ok -> status message q_etDiag <> GD.ET_Diag.Ok -> diagnostic message |
|
|
q_sMsg |
STRING[80] |
Event-triggered message which gives more detailed information on the diagnostic state. |
|
q_etDiag |
q_etDiagExt |
Enumeration value |
Description |
|---|---|---|---|
|
OK |
1 |
The order is executed. |
|
|
OK |
8 |
The order is completed. |
|
|
OK |
0 |
Ok |
|
|
InputParameterInvalid |
25 |
The connected drive is not supported. |
|
|
InputParameterInvalid |
27 |
The connected drive is not initialized. |
|
|
UnexpectedProgramBehavior |
42 |
The Mode is indeterminable. |
|
Enumeration name: |
AxisInvalid |
|
Enumeration value: |
25 |
|
Description: |
The connected drive is not supported. |
|
Issue |
Cause |
Solution |
|---|---|---|
|
- |
No drive has been applied at the input Axis. |
A valid drive must be transferred to the input Axis. |
|
Enumeration name: |
Busy |
|
Enumeration value: |
1 |
|
Description: |
The order is executed. |
The reference position of the axis is being changed.
|
Enumeration name: |
Done |
|
Enumeration value: |
8 |
|
Description: |
The order is completed. |
The reference position of the axis was changed.
|
Enumeration name: |
DriveNotInitialised |
|
Enumeration value: |
27 |
|
Description: |
The connected drive is not initialized. |
|
Issue |
Cause |
Solution |
|---|---|---|
|
- |
The function FC_DriveInit was not activated for the drive at the input Axis. |
Before using the POU, the drive must be initialized using the function FC_DriveInit. |
|
Enumeration name: |
Ok |
|
Enumeration value: |
0 |
|
Description: |
Ok |
The POU is waiting for jobs.
|
Enumeration name: |
UnknownMode |
|
Enumeration value: |
42 |
|
Description: |
The Mode is indeterminable. |
|
Issue |
Cause |
Solution |
|---|---|---|
|
- |
A detected error occurred in the internal execution. |
Please inform the support team about this detected error. |