Function Block MCFB_StepAbsolutesPLCopen motion icon

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:

MCFB StepAbsolute

Figure 7-248: 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 edgeClosed A 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

AXIS_REF

 

Range

[1 , 256]

 

Unit

N/A

 

Default

Mode

Description

Define the actual position assignment source

Value

Description

0

use drive feedback position for actual position

1

use once per rev feedback position

 

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

Value Description
1 Desired SetPosition is outside of Rollover period
 

Data type

INT

 

Unit

N/A

Related Functions

MCFB_StepAbsSwitch

MCFB_StepRefPulse

MCFB_StepBlock

MCFB_StepLimitSwitch

Example

Structured Text

//Write current once per rev feedback position to overall axis position
MCFB_StepAbsolute( ExecuteHome, Axis1, ModeHome );

Ladder Diagram

UDFB StepAbsolute: LD example

Function Block Diagram

UDFB StepAbsolute: FBD example

Go back to the top of the page [Top]