Machine Restarts After Corner Finder G-Code

Répondre
3DStyle
Messages : 108
Enregistré le : 22 févr. 2018 14:34

Machine Restarts After Corner Finder G-Code

Message par 3DStyle »

I'm trying to add a corner finder G-Code to my CNC machine that runs with RS-CNC32-Bit board. There is an issue that I'm facing with the corner finder G-Code.

Here is the code:
G38.2 Z-15 F100; Probe Z
G92 Z3.15; Set Z work to 0 (with the thickness of the plate)
G91 G0 Z3; Move Z up by 3mm
G91 G0 X-40; Move X by -40mm
G91 G0 Z-6; Move Z down by 6mm
G38.2 X15 F100; Probe X
G92 X-10.9; Set X work to 0
G91 G0 X-3; Pull bit away from the plate by 3mm
G91 G0 Y-35; Move Y by -40mm
G91 G0 X30; Move X by 30mm
G38.2 Y15 F100; Probe Y
G92 Y-10.9; Set Y work to 0
G91 G0 Y-3; Pull bit away from the plate by 3mm
G91 G0 Z6; Raise by 6mm
I tried to add a custom command button from the LCD of the machine for the corner finder.
I noticed that the LCD restarts itself when I try to run this command. Here is a video:



I tried to debug this by adding one line after line of the code to see which one is making trouble.
I found that after the command "G92 X-10.9; Set X work to 0" - the machine won't accept any commands after it.
mstrens
Messages : 2611
Enregistré le : 27 févr. 2018 12:58

Re: Machine Restarts After Corner Finder G-Code

Message par mstrens »

It could be that there is a limit in the number of char allowed for a custom buttom.
Can you try removing all comments (after ";")
3DStyle
Messages : 108
Enregistré le : 22 févr. 2018 14:34

Re: Machine Restarts After Corner Finder G-Code

Message par 3DStyle »

I tried removing them, but it didn't help - still restarts.

I tried to eliminate each line from the G-Code, one by one, to see where the machine is not behaving as it should.
I noticed that after the line "G92 X-10.9; Set X work to 0" the machine will not implement the next code in the G-Code. I guess there is an issue with the G92 command for Y and X axises?
msbealo
Messages : 9
Enregistré le : 04 avr. 2020 20:15
Localisation : Southsea

Re: Machine Restarts After Corner Finder G-Code

Message par msbealo »

Did you find a solution to this problem? I'm considering buying a corner probe (from Oozenest) but wanted to know if it'll work in X,Y and Z.
Répondre