Hello Guest it is April 24, 2024, 12:59:13 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - JohnHaine

281
General Mach Discussion / Re: Bit depth zeroing tool help
« on: May 25, 2022, 09:03:04 AM »
Happy to (try to) help.

282
Mach4 General Discussion / Re: live feed
« on: May 25, 2022, 02:09:34 AM »
Is this as part of a CNC application or are you just seeking to control some motors in speed and/or position from a computer?  If the latter I would think that a CNC controller is not a suitable starting point.

283
General Mach Discussion / Re: Bit depth zeroing tool help
« on: May 25, 2022, 01:38:20 AM »
Do a Google on scripter compile error  h - quite a few hits on this forum come up, in particular one long thread from 2018.  It seems to be some kind of problem with the visual basic interpreter, possibly interacting with particular character combinations in the code.  There seem to be two fixes - one is to make sure you are running the latest Mach version, I think that's .062.  The other is to open the macro in the operator/edit VB macro menu, then select save as, and save as compiled code (.mcc). 

To single step, open the code in the VB scripter window as above (before compiling I think), you will see a row of icons just below the menu bar.  The green right arrow runs the macro, the green one with two green bars immediately after it is the single step.  If you hover your cursor over each icon its function is shown after a second or so.

284
General Mach Discussion / Re: Bit depth zeroing tool help
« on: May 24, 2022, 04:52:22 PM »
Right, so it's not a problem with the scripts but something more subtle.   I have no idea what I'm afraid,  I've never had any problem like this arise.

285
General Mach Discussion / Re: Bit depth zeroing tool help
« on: May 24, 2022, 03:38:15 PM »
For example the code in reply 18 to this thread.

286
General Mach Discussion / Re: Bit depth zeroing tool help
« on: May 24, 2022, 03:36:38 PM »
Not that I can think of.  You could look for a different script?

287
General Mach Discussion / Re: Bit depth zeroing tool help
« on: May 24, 2022, 02:39:30 PM »
Hmm.  Well I'm completely baffled I'm afraid.

288
General Mach Discussion / Re: Bit depth zeroing tool help
« on: May 24, 2022, 08:16:20 AM »
When you press the button, do you get a message in the status bar - (Z-Plate is grounded, check connection and try again) - ?

Have you tried single stepping through the code?  You should be able to see the control flow and where it isn't doing what's expected.

289
General Mach Discussion / Re: Bit depth zeroing tool help
« on: May 24, 2022, 01:42:59 AM »
OK.  And where is this code, is it a button script or stored as a macro?  If the latter then the macro has to be executed from a button script.

290
General Mach Discussion / Re: Bit depth zeroing tool help
« on: May 23, 2022, 05:20:22 PM »
Which script are you running?  And if you select Operator/Edit Button Script then click the now flashing Auto Tool Zero button what comes up in the editor window?