Hello Guest it is April 29, 2024, 09:05:48 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 - Fledermaus

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 »
141
Mach4 General Discussion / Re: Using Both Probe and Tool Setter
« on: January 11, 2018, 05:07:59 AM »
I connect both permanently, the probe to Mach4's Probe input and the tool height gauge to Mach's Probe1 input. The probe uses G31.0 and the TH gauge G31.1. Provided your controller honours these inputs it all works fine.

Allan

142
If you have modified any of the included modules, they will also be overwritten, So be sure to make a backup copy first as Steve suggests.

143
Another way you can test Mach's enabled state is to use:

   local machEnbld = mc.mcSignalGetState (mc.mcSignalGetHandle (inst, mc.OSIG_MACHINE_ENABLED))

This returns 0 or 1.

Allan

144
Mach4 General Discussion / Re: script for limit switch override
« on: January 03, 2018, 05:49:50 AM »
You might be able to use the built in functions via the existing button via the following LUA calls:

  rc = scr.ButtonDown("tbtnLimOv")
  rc = scr.ButtonUp("tbtnLimOv")

It would be as well to check that the above button name is correct.

Allan

145
Mach4 General Discussion / Re: Setting to millimeters
« on: December 30, 2017, 05:51:47 AM »
Thanks Daz, I will keep an eye on it.

Allan

146
Mach4 General Discussion / Re: Setting to millimeters
« on: December 30, 2017, 05:32:45 AM »
I completely agree with Robert.

Daz
Great workaround that never occurred to me. To smooth things a little further, I have added the following to the Enable button Down script:

local inst = mc.mcGetInstance()
mc.mcCntlReset(inst)

This seems to do the trick but I just wondered if you can see any downside to it

Allan

147
Mach4 General Discussion / Re: Setting to millimeters
« on: December 29, 2017, 09:57:50 AM »
I think I may have been mistaken in concluding that Mach had set the jog mode to continuous after a configuration. The issue may have been the way my use of the registers core/inst/JogIntx … interacted with Mach. This could result in a supposed 1mm jog causing a movement of 254mm, sending me diving for the eStop in an irrational panic rather than just letting the machine run on and operate the limits if need be.

The problem with JogUnitsMode remains real, however, and occurs not just after Mach configuration but at any time mcProfileReload is executed. Though the profile does not contain any obvious reference to jog units, somehow this gets reset following a profile  load. So caution is needed if this API call is used in scripts.

Allan

148
Mach4 General Discussion / Re: Setting to millimeters
« on: December 29, 2017, 05:39:54 AM »
Using the default wx4 screen set instead of my own, JogUnitsMode reverts to imperial but JogMode remains at incremental following configuration, so a 1mm jog becomes 25.4mm as Robert observes. 

Allan

149
Mach4 General Discussion / Re: Setting to millimeters
« on: December 29, 2017, 05:00:22 AM »
As far as I can see, JogUnitsMode is always set to imperial following configuration of Mach4. JogMode is likewise set to continuous. These do not appear in machine.ini, however, so are perhaps defaults within the core. Flushing, saving, or re-loading profiles is not going to help.

The problem is that scripts are unaware of these changes. Yet they could easely take steps to re-initialise if a suitable signal were provided to indicate the potential need for this.

I tend to side with Robert  on this one in thinking that this is an unfortunate feature of Mach4, if not an outright bug.

For now, the best remedy is to restart Mach4 after configuration, whether or not changes were made.

Allan

150
Mach4 General Discussion / Re: Setting to millimeters
« on: December 28, 2017, 05:28:22 PM »
The act of visiting MMach's configuration screen has screwed up the jog settings that were previously in use. The event was to close this screen, causing Mach to re-load possibly outdated settings from the .INI file. Maybe I just need to flush data more promptly to it rather than waiting for Mach to close. I may give that a try when I have a moment.

Allan

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 »