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-208: 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 edgeA rising edge is the transition of a digital signal from low to high. It is also called positive 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