PlanetCNC does not use "G90 H0 Z0". You should use G28 g-code.
I recently purchased a 4 axis desktop cnc machine. it came with cnc usb software. I am able to run programs, but when the machine reads the line in the program that initiates the H code, the tool comes goes down to Z zero(tool touch off point) then returns to programmed z clearance and then back down to programmed Z depth. After operation is finished, it returns to clearance plane and when reading line 146 m5 spindle returns to zero(tool touch off point), then to G90 H0 Z0( no xy move Z home position). Any help would be greatly appreciated, I have been a cnc programmer/operator for 16 years. And might be getting frustrated here.
%
O0100(T)
G54
( T1 | 3/8" ENDMILL | H1 )
( T2 | 1/4" ENDMILL | H2 )
N100 G20
N102 G0 G17 G40 G49 G80 G90
N104 G8
N106 T1 M6
N108 G0 G90 X.375 Y-2.9375 S2000 M3
N110 H1
N111 Z.5
N112 Z.1
N114 G1 Z-.125 F10.
N116 Y-2.5625 F11.8
N118 G3 X0. Y-2.1875 I-.375 J0.
N120 G1 X-1.25
N122 G2 X-1.6875 Y-1.75 I0. J.4375
N124 G1 Y1.75
N126 G2 X-1.25 Y2.1875 I.4375 J0.
N128 G1 X1.25
N130 G2 X1.6875 Y1.75 I0. J-.4375
N132 G1 Y-1.75
N134 G2 X1.25 Y-2.1875 I-.4375 J0.
N136 G1 X0.
N138 G3 X-.375 Y-2.5625 I0. J-.375
N140 G1 Y-2.9375
N142 Z.1 F10.
N144 G0 Z.5
N146 M5
N148 G90 H0 Z0.
N150 M01
N152 T2 M6
N154 G0 G90 X.25 Y-2.625 S3360 M3
N156 H2
N157 Z.5
N158 Z.1
N160 G1 Z-.125 F10.
N162 Y-2.375 F16.15
N164 G3 X0. Y-2.125 I-.25 J0.
N166 G1 X-1.25
N168 G2 X-1.625 Y-1.75 I0. J.375
N170 G1 Y1.75
N172 G2 X-1.25 Y2.125 I.375 J0.
N174 G1 X1.25
N176 G2 X1.625 Y1.75 I0. J-.375
N178 G1 Y-1.75
N180 G2 X1.25 Y-2.125 I-.375 J0.
N182 G1 X0.
N184 G3 X-.25 Y-2.375 I0. J-.25
N186 G1 Y-2.625
N188 Z.1 F10.
N190 G0 Z.5
N192 M5
N194 G90 H0 Z0.
N196 X0. Y0.
N198 M30
%
Similar Threads:
PlanetCNC does not use "G90 H0 Z0". You should use G28 g-code.
What exactly is the issue?
Put a Z value in your H line to avoid it dropping. G43 H1 Z.5
G91 G28 Z0 will return home without it dropping to work offset Z0
I narrowed the issue down to the tool change for what ever reason when using the tool change m6 for tool change z returns to home as it should but then travels to Z0.0(tool touch off point), then to programmed clearance plane, and then to cut depth. I believe its a setting in the cnc usb controller. But Im not sure what to change.
I'm glad someone share my problem!
Check this post https://en.industryarena.com/forum/s...27#post2374227
I'm pretty sure your problem comes from this line
N108 G0 G90 X.375 Y-2.9375 S2000 M3
Ravid move G0 X. Y. also moves Z axis !
This is absolutely not compliant to g-code standard
This is a serious bug
This is shared between users, at least on 3, 4 axis milling machine
This is OLD
http://forum.planet-cnc.com/viewtopic.php?f=5&t=9853
Instructive screenshots in attachment.
I loose hours. no. I loose days, because of these problem, and also tools, stock, patience, humour, humor.
Do I want to buy the new MK board ? No. The first one never prove anything.
There is also a serious lack of ESD/EMI filtering and protections on theses boards. Decoupling and filtering is at state-of-the-art of chinese low-cost toys. When driving powerfull NEMA drivers and 400Hz kWs inverters, it just not works.
I had to add capacitors and my own interface board with shielded cables, opto-isolators, ESD/EMI filtering to avoid recurrent USB-disconnection and other CPU fails (with PWM continuously send to drivers, this is the fun).