
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
1INT
2BYTE
3WORD
4DINT
5DWORD
6REAL
14 SINT
15 USINT
16 UINT
17 UDINT
22 LREAL
Commentaires sur ces manuels