SMC_PathCopier (FB)ΒΆ
FUNCTION_BLOCK SMC_PathCopier EXTENDS SMC_VisuPathProvider
The function block SMC_PathCopier
is designed to visualize a queue currently used by the interpolator.
It reproduces the content of the input queue poqCNCPath
into its output path vs3dt
.
It starts with the first element of the queue. In case of a linear element it adds only the start and end point to the path vs3dt
.
In case of curved elements it interpolates this element and adds n points to vs3dt
.
n depends on the length of the object, the active zoom factor of the visu element and the input dPrecision
.
It continues with the further objects of the queue until it either reaches the end of the queue or until the track vs3dt
is full and no more points can be added to it.
In the latter case it waits until the first element has been deleted from the queue and hence the corresponding points can be deleted in vs3dt
, too.
The function block is busy until the queue gets empty. It is typically used to display the next elements that are to be interpolated.
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
bExecute
BOOL
A rising edge starts the function block.
SMC_VisuPathProvider
bAbort
BOOL
TRUE
aborts the function block.SMC_VisuPathProvider
udiNumberOfPointsInArray
UDINT
0
Number of points which are declared in
pBuffer
of the referred array.SMC_VisuPathProvider
pBuffer
POINTER TO VisuStruct3DPathPoint
Pointer to the allocated array of points.
SMC_VisuPathProvider
Output
bBusy
BOOL
TRUE
: FB is activeSMC_VisuPathProvider
vs3dt
VisuStruct3DTrack
Track output. To be setup as input of the visu element
Path3D
.SMC_VisuPathProvider
Input
poqCNCPath
POINTER TO SMC_OUTQUEUE
Pointer to
SMC_OutQueue
which describes the path and which can be get from other CNC function blocks likeSMC_NCDecoder
.dPrecision
LREAL
1
The output
vs3dt
contains the path description and is normally transferred as path (vtrPath
) to the visualization element.