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 |
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 |
||
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. |