SMC_ReadNCTokens (FB)¶
FUNCTION_BLOCK SMC_ReadNCTokens
SMC_ReadNCTokens
reads from a SMC_TokenQueue of SMC_Token and transforms it
into a SMC_CNC_REF.
- InOut:
Scope
Name
Type
Comment
Inout
ncprog
Output CNC program
tokens
Input token queue
Input
bExecute
BOOL
While
TRUE
, the function block is active.pBuffer
POINTER TO BYTE
Pointer on a sufficiently large, free data area (buffer) that is allocated in the IEC application. It is strongly recommended to allocate the buffer as
ARRAY[0..x] OF |ioSMC_GCODE_WORD|
in order to make sure to have a correct data alignment. A definition ofARRAY[0..x] OF BYTE
may lead to a misaligned data access on some platforms.dwBufferSize
DWORD
Size of the buffer in byte
pStringBuffer
POINTER TO SMC_StringBuffer
Pointer to an object of type SMC_StringBuffer This object is used to store strings that are defined in the G-code program in order to write them to variables using G36&37. If the pointer is not set (0) and string constants are used in the G-code program, an error will be generated.(´´SMC_RNCF_NO_STRINGBUFFER´´).
pvl
POINTER TO SMC_VARLIST
If there aren’t variables in the CNC programm, this input isn’t set. SMC_VARLIST
fDefaultVel
LREAL
fDefaultAccel
LREAL
fDefaultDecel
LREAL
fDefaultVelFF
LREAL
Default velocity for fast forward (G0), FF word
fDefaultAccelFF
LREAL
Default acceleration for fast forward (G0), EF+ word
fDefaultDecelFF
LREAL
Default deceleration for fast forward (G0), EF- word. A non- negative value is expected.
b3DMode
BOOL
If TRUE, an implicit G17 is prepended to the G-code.
bEnableSyntaxChecks
BOOL
Turns on syntax checks that will detect invalid g-code and stop with an error in this case
Output
bDone
BOOL
TRUE
if parameter is availablebBusy
BOOL
TRUE
while execution of function block is not finished.bError
BOOL
TRUE
signals that an error has occurred within the function block.ErrorID
SMC_ERROR
Error identification,
SMC_ERROR
Structure: