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-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 edgeClosedA 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]