SMC_NC_PrependDefaults (FB)¶
FUNCTION_BLOCK SMC_NC_PrependDefaults
This function block is used internally by |SMC_ReadNCFileFromStream| to prepend a sentence containing the given defaults, e.g. ‘N0 G17 F25 E1000 E-2000’. If |SMC_ReadNCFileFromStream| or SMC_ReadNCFile2 is used, there is not need to use this function block.
Important: this function block will prepend the defaults again after a jump command in the out queue. So it should be used before any buffering function blocks such the jump buffer. It should be called before SMC_NCNavigator as well, because the navigator will handle the jumps to unknown jump targets.
- InOut:
Scope
Name
Type
Comment
Inout
sentencesOut
The output sentence queue
sentencesIn
The input sentence queue
Input
bExecute
BOOL
bAbort
BOOL
If
TRUE
, the current processing of this function block is abortedfDefaultVel
LREAL
Default velocity; used if the velocity (F-word) is not specified inside the CNC file.
fDefaultAccel
LREAL
Default acceleration; used if acceleration (E+ word) is not specified inside the CNC file
fDefaultDecel
LREAL
Default deceleration (E- word); used if deceleration is not specified inside the CNC file
fDefaultVelFF
LREAL
Default velocity for fast forward (G0), FF word. It is used if no velocity is specified inside the CNC file.
fDefaultAccelFF
LREAL
Default acceleration for fast forward (G0), EF+ word. It is used if no acceleration is specified inside the CNC file.
fDefaultDecelFF
LREAL
Default deceleration for fast forward (G0), EF- word. A non-negative value is expected. It is used if no deceleration is specified inside the CNC file.
b3DMode
BOOL
If
TRUE
, a G17 command (activation of 3D-mode) is executed implicitly.Output
bBusy
BOOL
bError
BOOL
ErrorID
SMC_ERROR
errorPos