- •第一章OpenCnc发展环境安装及使用说明
- •第二章OpenCnc Structure Motion language 一、Block Format
- •三、Expressions Operators
- •五、Functions Listing
- •六、Variables
- •程序批注 (Comment)
- •七、Macro Program Call Methods:
- •Return Methods:
- •System Variables
- •Modal information
- •Argument specification
- •Operation control/status
- •Single Block Control Word(#1502)
- •Feed Control Word(#1504)
- •Current position
- •Runtime state variable
- •Workpiece coordinate system compensation values (workpiece zero point offset values)
- •Reference point position
- •八、扩充插值G码(Extended Interpolation g Code)宏程序说明:
- •九、macro 撰写需注意事项:
- •十、macro范例:
Current position
#1301~#1316 |
Block end position in workpiece position |
R |
#1321~#1336 |
Current position in machine coordinate, this value can’t be read during movement. |
R |
#1341~#1356 |
current position in workpiece coordinate |
R |
#1361~#1376 |
Skip signal position in workpiece coordinate, the tool position where the skip signal is turned on in a G31 ( skip function ) block is held in these variables, |
R |
#1381~#1396 |
Tool length compensation vector |
R |
#1401~#1403 |
Last arc block center vector,(I,J,K) |
R |
#1411~#1413 |
Block end position in workpiece position, index by 1441(X);1442(Y);1443(Z) |
R |
#1421~#1436 |
Current encoder position of in workpiece coordinate machine |
R |
Runtime state variable
#1800 |
Rigid tapping tracking error in revolution |
R |
#1801 |
Rigid tapping z-direction tracking error in BLU |
R |
#1802 |
Rigid tapping tracking error, maximum magnitude |
R |
#1810 |
Guidance remain distance, in LIU |
R |
#1811 |
Guidance x-direction remain distance, in LIU |
R |
#1812 |
Guidance y-direction remain distance, in LIU |
R |
#1815 |
Indicator for is in guidance function, 0: No; 1: Yes |
R |
#1816 |
Guidance ederate, in IU/min |
R/W |
#1820 |
Mute state, discard all command during mute state ON. 0: OFF, 1: ON, this state variable also available from G10 L1100 command |
R/W |
#1821 |
Accumulated cutting length, in IU |
R/W |
#1822 |
Cutting Feedrate Command, in mm/min |
R/W |
#1823 |
Spindle Speed Command, in RPM |
R/W |
#1824 |
Active Feed Control Mode, G61/G62/G63/G64 |
R |
#1825 |
Active interpolation G code mode |
R |
#1827 |
Active workpiece coordinate number |
R |
#1901~1916 |
Workpiece coordinate system shifting amount. |
R/W |
Modal variables
Modal variables will automatically be clear to vacant when system been reset
#2001~#2100 |
Modal variable for internal use |
R/W |
#3001~#3100 |
Modal variable for manufacturer |
R/W |
Custom parameter
#4001~#4100 |
Custom parameter for internal use |
R |
#5001~#5100 |
Custom parameter for manufacturer |
R |
Interface signals
#6001~#6032 |
Bit value interface of MLC (对应到C101~C132/ S101~S132 ) ,example: @1 := #6001; // assign C101 value into @1 #6001 := @2; // assign @2 value into S101 |
R/W |
Mode Group Variables
Mode group variables will automatically be clear to vacant when specified mode group be reset
#7001~#7050 |
Modal variable for internal use |
R/W |
#7101 |
The number of axis group in mode group |
R |
Tool compensation variable(R/W)
The compensation number 0 all have zero value
There are only 400 compensation value in this version
Compensation Number |
Tool length compensation(H) |
Cutter compensation(D) |
||
Geometric compensation |
Wear compensation |
Geometric compensation |
Wear compensation |
|
0 1 . . 200 . . 400 . . 999 |
#11000 #11001 . . #11200 . . #11400 . . #11999 |
#10000 #10001 . . #10200 . . #10400 . . #10999 |
#13000 #13001 . . #13200 . . #13400 . . #13999 |
#12000 #12001 . . #12200 . . #12400 . . #12999 |
