beautypg.com

Notes, Error description, Example – Yaskawa MotionWorks IEC Toolboxes User Manual

Page 268

background image

Gantry Toolbox: Function Blocks

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

255

B

Radius

LREAL

Radius of arc

0.0

B

Direction

MC_Direction

0: clockwise, 1: counter clockwise

0

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.

B

StartAngle

LREAL

Angle subtended by a line drawn from the arc center to
the start point of the arc with the positive X axis on an XY
plane

B

TraversedAngle

LREAL

Angle traversed by the arc generated

Notes

See Yaskawa's Youtube channel for

more info

,

details

, and

examples

.

Error Description

ErrorID

Meaning

0

No error

10130

The center to co-ordinate distance for the two input co-ordinates are not the same

10131

Zero radius is invalid

10132

Only modes 0 (center + 2 co-ordinates) and 1 (radius + 2 coordinates) are supported

10133

The coordinates of the two data points are the same

10140

Must be greater than zero and less than 20

Example

The Calculate_Angles function block is used to calculate Start and Traversed angles which can be used by the

PathStruct

structure to create a path in the

PathGenerator

function block. The two modes of data entry for an

arc are a) two co-ordinates and center point of an arc or b) two co-ordinates and radius as shown below.