beautypg.com

Home_ls, Parameters – Yaskawa MotionWorks IEC Toolboxes User Manual

Page 450

background image

PLCopen Toolbox: Function Blocks

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

437

Home_LS

This function block combines the PLCopen function blocks MC_StepLimitSwitch, MC_MoveRelative, and
MC_SetPosition to make a sequence that detects the limit switch, performs an offset move away from the limit,
and sets a home position.

Parameters

*

Parameter

Data Type

Description

VAR_IN_OUT

B

Axis

AXIS_REF

Logical axis reference. This value can be located on the
Configuration tab in the Hardware Configuration (logical
axis number).

VAR_INPUT

Default

B

Execute

BOOL

Upon the rising edge, all other function
block inputs are read and the function is
initiated. To modify an input, change the
value and re-trigger the execute input.

FALSE

B

HomeData

HomeStruct

User defined Data Type in the PLCopen
Toolbox, contains all related homing
parameters.

All zeros in
structure

VAR_OUTPUT

B

Busy

BOOL

Set high upon the rising edge of the 'Execute' or 'Enable'
input, and reset if Done, CommandAborted, or Error is
true.

B

Done

BOOL

Set high when the commanded action has been completed
successfully. If another block takes control before the