beautypg.com

Segmentlookup, Parameters – Yaskawa MotionWorks IEC Toolboxes User Manual

Page 316

background image

Gantry Toolbox: Function Blocks

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

303


SegmentLookup

This function block outputs the number of the segment currently active and also outputs the flags for the active
segment.

Parameters

*

Parameter

Data Type

Description

VAR_IN_OUT

V

Segmentdata

SegmentStruct

Structure of data that contains the segment number,
output code, and tool path endpoint for each segment in
the motion path.

VAR_INPUT

Default

B

Enable

BOOL

The function will continue to execute while
enable is held high.

FALSE

B

VectorPosition

BOOL

Position of the master vector (master axis)

FALSE

VAR_OUTPUT

B

Valid

BOOL

Indicates that the outputs of the function are valid.

B

Error

BOOL

Set high if error has occurred during the execution of the
function block. This output is cleared when 'Execute' or
'Enable' goes low.

B

ErrorID

UINT

If Error is true, this output provides the Error ID. This
output is reset when 'Execute' or 'Enable' goes low.