Hello Guest it is March 28, 2024, 06:01:34 PM

Author Topic: M6 Script Problem  (Read 1938 times)

0 Members and 1 Guest are viewing this topic.

Re: M6 Script Problem
« Reply #10 on: January 02, 2021, 04:56:26 PM »
When you see the properties for the button. You will see a properties with a lightning bolt through it. You just copy and past the code in the on clicked script.
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com

Offline gorf23

*
  •  183 183
    • View Profile
Re: M6 Script Problem
« Reply #11 on: January 04, 2021, 04:20:47 PM »
Brian

One problem i seem to be having is the rc return value from the g31, i get 0 back if the probe is hit or has run to the end of the travel
if i run to the the end of travel i get the message in the history that probe interrupted but still no error value returned in the rc only 0.
so when i check for the error the code skips over the error and return statements, and just keeps running.

this it the line i am running
rc = mc.mcCntlGcodeExecuteWait(inst, string.format("G91 G31 Z-%.3f F%.3f", ZMaxTravel, SlowFeed))     --probe Z

Thanks gary   
Re: M6 Script Problem
« Reply #12 on: January 04, 2021, 05:10:21 PM »
Hello,
Is this with the ESS ? if so you need to change a setting in the config.. Don't know what it is off the top of my head :(
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com

Offline gorf23

*
  •  183 183
    • View Profile
Re: M6 Script Problem
« Reply #13 on: January 05, 2021, 08:02:18 AM »
I was testing this with the pokeys57cnc, i do has a ESS also i will test it on that later...

Thanks gary

Offline gorf23

*
  •  183 183
    • View Profile
Re: M6 Script Problem
« Reply #14 on: January 05, 2021, 07:45:50 PM »
Brian

I went back to the ESS and checked my code, i am using the ESS probing register to detect probe hit or if not hit error, not mach4.

I had asked pokeys to add the probing register over a year ago and they did, but they never finished it to get working correct the only values working are when probe starts moving =  2, and   -4  but that value is set when probe is hit or when reached end of travel so no way to tell the difference.
I did email pokeys again a couple days ago but haven't herd back

Thanks gary
Re: M6 Script Problem
« Reply #15 on: January 05, 2021, 08:33:44 PM »
I just do the math to see if it hit or not. That is sort of standard for big machines. Am I missing something ? My code I posted needs nothing about the probe hit or not, it will ask tell you if it did
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com

Offline gorf23

*
  •  183 183
    • View Profile
Re: M6 Script Problem
« Reply #16 on: January 05, 2021, 08:52:05 PM »
Sorry i may have got off topic here maybe i should start a new topic

Gary