SMC_PathCopierCompleteQueue (FB)ΒΆ
FUNCTION_BLOCK SMC_PathCopierCompleteQueue
The function block SMC_PathCopierCompleteQueue is used to change a path defined in a queue into an array of points.
In contrast to SMC_PathCopier that is used if the queue is not fitting completely into the memory, this FB can only be applied if the complete CNC program fits into poqCNCPath.
For every linear element one point is used. The remaining points are distributed evenly to the nonlinear elements. An error occurs when the path is not entirely contained in the queue or the number of path elements exceeds the number of points.
The function block is used to display a CNC path most precisely but can only be used if the queue contains this path completely.
- 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
Output
bDoneBOOLTRUE: FB completedbErrorBOOLTRUE: error during operationiErrorIDSMC_ERRORError ID
vs3dtVisuStruct3DTrackTrack output. To be setup as input of the visu element
Path3D.