MCFB_StepAbsolutes
Description
This function block performs a static homing function by setting Actual Position to the position of an absolute encoder. No physical motion is performed in this mode. Equivalent to MC_SetPosition is performed with SetPosition coming from absolute encoder reading, but with the option of using the once per rev feedback value.
The following figure shows the function block I/O:
Figure 7-246: MCFB StepAbsolute
Arguments
Input
|
En |
Description |
Enables execution (FFLD only ) |
||||||
|
Data type |
BOOL |
|||||||
|
Range |
— |
|||||||
|
Unit |
N/A |
|||||||
|
Default |
— |
|||||||
|
Execute |
Description |
Request the homing step procedure at rising edge |
||||||
|
Data type |
BOOL |
|||||||
|
Range |
[0 , 1] |
|||||||
|
Unit |
N/A |
|||||||
|
Default |
— |
|||||||
|
AxisID |
Description |
Name of a declared instance of the AXIS_REF library function |
||||||
|
Data type |
||||||||
|
Range |
[1 , 256] |
|||||||
|
Unit |
N/A |
|||||||
|
Default |
— |
|||||||
|
Mode |
Description |
Define the actual position assignment source
|
||||||
|
Data type |
BOOL |
|||||||
|
Range |
[0 , 1] |
|||||||
|
Unit |
N/A |
|||||||
|
Default |
— |
Output
|
Done |
Description |
Indicates the move completed successfully. The Command Position has reached the endpoint |
||||
|
Data type |
BOOL |
|||||
|
Unit |
N/A |
|||||
|
Busy |
Description |
High from the moment the Execute input is one-shot to the time the move is ended |
||||
|
Data type |
BOOL |
|||||
|
Unit |
N/A |
|||||
|
Active |
Description |
Indicates this move is the active move |
||||
|
Data type |
BOOL |
|||||
|
Unit |
N/A |
|||||
|
CommandAborted |
Description |
Indicates the move was aborted |
||||
|
Data type |
BOOL |
|||||
|
Unit |
N/A |
|||||
|
Error |
Description |
Indicates an invalid input was specified or the move was terminated due to an error |
||||
|
Data type |
BOOL |
|||||
|
Unit |
N/A |
|||||
|
Error |
Description |
Indicates an invalid input was specified or the move was terminated due to an error |
||||
|
Data type |
BOOL |
|||||
|
Unit |
N/A |
|||||
|
ErrorID |
Description |
Indicates the error if Error output is set to TRUE
|
||||
|
Data type |
INT |
|||||
|
Unit |
N/A |
Related Functions
Example
Structured Text
//Write current once per rev feedback position to overall axis position
MCFB_StepAbsolute( ExecuteHome, Axis1, ModeHome );
Ladder Diagram
Function Block Diagram
[Top]




