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
bExecuteBOOLA rising edge starts the function block
udiNumberOfPointsInArrayUDINT0
Number of points which are declared in
pBufferof the referred array.pBufferPOINTER TO VisuStruct3DPathPoint
Pointer to the allocated array of points
poqCNCPathPOINTER TO SMC_OUTQUEUE
Pointer to the path that shall be displayed
precisionLREAL1
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
bDoneBOOLTRUE: FB completedbErrorBOOLTRUE: error during operationiErrorIDSMC_ERRORError ID
vs3dtVisuStruct3DTrackTrack output. To be setup as input of the visu element
Path3D.