7 smc_gcode_word, Smc_gcode_word, L-force | plc designer - softmotion – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual
Page 211
Advertising

DMS 5.2 EN 03/2011 TD17
L
211
L-force | PLC Designer - SoftMotion
The SM_CNC.lib library
Structures of SM_CNC.lib
7.16.7
SMC_GCODE_WORD
G code words are stored in this data structure:
byLetter contains the ASCII code of the letter of the word, fValue and diValue contain the
value of this letter as a floating point and integer number. If a variable is used instead of a
fixed value, pADR contains a pointer to this variable and byVarType contains the variable's
type:
TYPE SMC_GCODE_WORD :
STRUCT
byLetter:BYTE:=0;
fValue:LREAL:=0;
diValue:DINT:=0;
pAdr:POINTER TO BYTE:=0;
byVarType:BYTE:=0;
END_STRUCT
END_TYPE
Value
Variable type
1
INT
2
BYTE
3
WORD
4
DINT
5
DWORD
6
REAL
14
SINT
15
USINT
16
UINT
17
UDINT
22
LREAL
Advertising