beautypg.com

Reverse_mc_direction, Parameters, Error description – Yaskawa MotionWorks IEC Toolboxes User Manual

Page 487: Example

background image

PLCopen Toolbox: Function Blocks

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

474

Reverse_MC_Direction

This function block was designed for use with the Home_LS_Pulse function block in the PLCopen Toolbox. It
changes the enumerated type MC_Direction#positive_direction to MC_Direction#negative_direction or vice
versa so that the function can move the motor one direction into a limit switch with MC_StepRefLimit, and the
other direction when searching for the Index Pulse with MC_StepRefPulse.

Parameters

*

Parameter

Data
Type

Description

VAR_INPUT

Default

B

EN

BOOL

Enables the function.

FALSE

V

LimitDirection

INT

ENum

V

BackOffDistance

LREAL

INT#0

VAR_OUTPUT

B

ENO

BOOL

High if the function executed normally

V

PulseDirection

INT

MC_Direction#positive_direction or
MC_Direction#negative_direction

V

BackOffDirection

LREAL

Error Description

No Errors will result, but if there is a problem with the ENum input for MC_Direction, then ENO will be FALSE.

Example