Hello Guest it is April 19, 2024, 04:03:29 PM

Author Topic: Mach 3: Programmatic change to config  (Read 5207 times)

0 Members and 1 Guest are viewing this topic.

Re: Mach 3: Programmatic change to config
« Reply #10 on: May 08, 2021, 06:17:17 PM »
No unfortunately neither the 2 work

  SetProbeState(True) 'disable Active Low of probe input
  SetProbeState(False) 'enable Active Low of probe Input

and

SetProbeActive(bool) // turns the probe ON or off, 1 for on, 0 for off
  SetProbeState(bool) // sets the low-active on or off, 1 for on, 0 for off

It gives Script Compl Error

Was worth it a try
Re: Mach 3: Programmatic change to config
« Reply #11 on: May 09, 2021, 05:13:25 AM »
Thanks for trying anyway!  Back to the drawing board I guess...
Re: Mach 3: Programmatic change to config
« Reply #12 on: May 09, 2021, 07:11:04 AM »
No problem.
Yes it's easy enough with a 3904 transistor to switch between NO and NC. Did that for the digitizer probe. Was just useful for the few times where I use a 123 block as metal reference for probing. Well VB scripts must have limits too  ;D
Re: Mach 3: Programmatic change to config
« Reply #13 on: May 09, 2021, 08:46:12 PM »
Hi,
Mach4 has up to four independent probe channels, G31.1, G31.2, G31.3 and G31.4.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Mach 3: Programmatic change to config
« Reply #14 on: May 10, 2021, 06:28:29 AM »
Yes I know, that's nice. We were discussing about this possibility in Mach3.
Re: Mach 3: Programmatic change to config
« Reply #15 on: May 10, 2021, 07:30:26 AM »
Hi,
its not possible in Mach3, at least programmatically.

That leaves some sort of hardware switch, eminently possible but far from straight forward.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'

Offline TPS

*
  •  2,505 2,505
    • View Profile
Re: Mach 3: Programmatic change to config
« Reply #16 on: May 10, 2021, 09:18:55 AM »
i have tested:
Code: [Select]
SetProbeState(True) 'disable Active Low of probe input
SetProbeState(False) 'enable Active Low of probe Input

in Ver. 043.022 and Ver. 043.066 and it is working in both.


anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: Mach 3: Programmatic change to config
« Reply #17 on: May 10, 2021, 09:53:30 AM »
Ah ok good to know that I can stop trying it. Yes hardware wise I did it already for the digitizer probe but not the tool offset probe. I just liked the idea of be able to switch it by software too without open the ports and pins page. Anyhow not a big of a deal.

Crag, since it's clear that you are really knowledgeable in everything related to the Mach3/4 situation in general. I wanted to ask you a question. Not on topic with this thread so I hope it's not a problem.
I am currently using USS to control the CNC for the past 2 years. I got it used for cheap so I thought was a good idea at the time. The machine after a lot of optimization runs really nice, but was thinking on switching to an ethernet controller. I am doubting between:
- ESS
- UC300ETH

ESS will be the newer version, compare to USS I know it supports backlash compensation (not sure though what changes compare to the inbuilt Mach3 backlash comp). Moreover it now accepts encoders to have a better spindle synchronization for threading (I use my mill also as lathe, Mill turning). One thing that it's missing is rigid tapping and I like the idea of have this function since I am installing an AC servo motor as spindle.

On the other hand UC300ETH it's meant for UCCNC but there is a Mach3 plugin too. I read that it's really stable and although it can deliver "lower" pulse frequency (still 400KHz), it seams to be able to control more in real time the machine (for instance feed hold doesn't take secs to stop the machine) and it should support rigid tapping too. At least that what they mention of the website. Plus it's cheaper where I leave, which is always nice  ;D

I could not find a table with the pro and cons for both of them and was wondering whether you could gave me an overview of what functions are supported in both the controller. Of course please correct it me, if I reported something wrong.
What is really important for my use (on top of the classical features common to all controllers), it's be able to control 5-6 axis, stable, backlash compensation (if it's way better than the default from Mach3) and rigid tapping (not mandatory but I would like).

Thanks a lot!

Alessio
Re: Mach 3: Programmatic change to config
« Reply #18 on: May 10, 2021, 09:56:44 AM »
i have tested:
Code: [Select]
SetProbeState(True) 'disable Active Low of probe input
SetProbeState(False) 'enable Active Low of probe Input

in Ver. 043.022 and Ver. 043.066 and it is working in both.

Damn it did not work for me. I made a button with

SetProbeState(True) 'disable Active Low of probe input

and one with

SetProbeState(False) 'disable Active Low of probe input

and it both of the cases gave me compile error. I am using R3.043.066

I guess I will give it another try. Thanks

Offline TPS

*
  •  2,505 2,505
    • View Profile
Re: Mach 3: Programmatic change to config
« Reply #19 on: May 10, 2021, 10:04:00 AM »
test it vb script editor
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.