Hello Guest it is March 28, 2024, 05:45:37 AM

Author Topic: Z axis is lifting higher and higher after each cut  (Read 2137 times)

0 Members and 1 Guest are viewing this topic.

Offline TPS

*
  •  2,501 2,501
    • View Profile
Re: Z axis is lifting higher and higher after each cut
« Reply #10 on: March 19, 2021, 06:38:34 AM »
can you pls post the script you are using? in original there is no msgbox instruction.
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: Z axis is lifting higher and higher after each cut
« Reply #11 on: March 19, 2021, 08:22:59 AM »
Oh yes, i deleted the msgbox.
The script looks now exactly like yours but unfortunately nothing happend.
It just moves to z 10 and to X&Y coordinates and then it stopped and nothing more happened (no probing).
But Z DRO was set to -3.4 mm, what is a success for me!

So now we have the case that Z was set to -3.4 but no probing.
Before with G31, the probing was fine but z was not set to -3.4.

Thanks!

Offline TPS

*
  •  2,501 2,501
    • View Profile
Re: Z axis is lifting higher and higher after each cut
« Reply #12 on: March 19, 2021, 08:38:47 AM »
Code: [Select]
Sub Main()
Code "G31 Z-150 F300.0"
While IsMoving()
WEnd
Sleep(200)
SetOEMDro(802, -3.4)
Sleep(200)
Code "G00 Z3.0000"
While IsMoving()
Wend
End Sub

--open Operator -> VB Script Editor
--copy and paste the code into Editor window
--with the >|| button you can run the script line by line (single step) and see what is happening
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: Z axis is lifting higher and higher after each cut
« Reply #13 on: March 24, 2021, 06:16:12 AM »
Don´t ask me what was wrong before but now it works!  ;D
I also tried M31 in a complete program and it works, too!
Many thanks for that!

Then the next question comes up.
Which post processor i can use for the m31 code?
I am using sheetCAM and i don´t want change all the progams manually.
Is there a post processor which i can use or change for the m31?

Thank you!