SMC_PathCopierCompleteQueue (FB)ΒΆ

FUNCTION_BLOCK SMC_PathCopierCompleteQueue

The function block SMC_PathCopierCompleteQueue is used to create an array of points from a CNC path. In contrast to SMC_PathCopier that is used if the path is not contained completely in the queue, this function block can only be used if the complete path fits into the queue``poqCNCPath``.

An error occurs when the path is not entirely contained in the queue or the number of path elements exceeds the number of points.

InOut:

Scope

Name

Type

Initial

Comment

Input

bExecute

BOOL

A rising edge starts the function block

udiNumberOfPointsInArray

UDINT

0

Number of points which are declared in pBuffer of the referred array.

pBuffer

POINTER TO VisuStruct3DPathPoint

Pointer to the allocated array of points

poqCNCPath

POINTER TO SMC_OUTQUEUE

Pointer to the path that shall be displayed

precision

LREAL

1

Defines the precision of the track, meaning how many points should be computed for an element in the queue. A value of 1 indicates that a point should be calculated every 1 unit of the path. A value of 2 indicates that two points should be calculated for every 1 unit of the path.

Output

bDone

BOOL

TRUE: FB completed

bError

BOOL

TRUE: error during operation

iErrorID

SMC_ERROR

Error ID

vs3dt

VisuStruct3DTrack

Track output. To be setup as input of the visu element Path3D.