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
bExecuteBOOLA rising edge starts the function block.
SMC_VisuPathProvider
bAbortBOOLTRUEaborts the function block.SMC_VisuPathProvider
udiNumberOfPointsInArrayUDINT0
Number of points which are declared in
pBufferof the referred array.SMC_VisuPathProvider
pBufferPOINTER TO VisuStruct3DPathPoint
Pointer to the allocated array of points.
SMC_VisuPathProvider
Output
bBusyBOOLTRUE: FB is activeSMC_VisuPathProvider
vs3dtVisuStruct3DTrackTrack output. To be setup as input of the visu element
Path3D.SMC_VisuPathProvider
Input
poqCNCPathPOINTER TO SMC_OUTQUEUE
Pointer to
SMC_OutQueuewhich describes the path and which can be get from other CNC function blocks likeSMC_NCDecoder.dPrecisionLREAL1
The output
vs3dtcontains the path description and is normally transferred as path (vtrPath) to the visualization element.