Hello Guest it is April 26, 2024, 02:29:23 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 - smurph

51
Mach4 General Discussion / Re: Can't set machine position in script
« on: October 15, 2022, 07:47:18 PM »
Thats another pain in the aris.

Got a Fagor controller on one of my lathes, shut it down and restart it and it saves all positions prefectly. A quick check to confirm and jobs can be resumed without having to re-home etc. Never failed.

The Devs should expose the methods to do this. Seems easy enough as they RESET the machine Coords to zero on a restart.

More headaches....

It depends on the motion controller.  My machine with a Galil on it does this perfectly so it isn't a Mach limitation.  HOWEVER, what if someone bumps the table?  Game over.  Only homing or ABS encoders will ensure proper positioning. 

Steve

52
Mach4 General Discussion / Re: Quick way to update lua scripts in Mach4.
« on: October 14, 2022, 12:49:51 AM »
Nice!  Someone that understands the world of LUA.  :)  You can also implement this with with modules.

I think it would be more clear if you showed the code behind the "Reload Scripts" button.

Steve

53
Yeah, that user description is the poor/lazy man's wiring diagram.  :)  It was added in way after the fact, so it is kind of bolted on.  You can read the Machine.ini with mc.mcProfileGetString(inst, "Signal1", "UserDesc").  The section "Signal1" is derived by concatenating the word "Signal" with the signal id that you are interested in. 
Code: [Select]
local userDesc, rc
local section = "Signal" .. tostring(mc.ISIG_INPUT0)
userDesc, rc = mc.mcProfileGetString(inst, section, "UserDesc")
if (rc == mc.MERROR_NOERROR) then
    -- userDesc is valid.
end

Steve

54
Mach4 General Discussion / Re: DRO on probe setting page (industrial)
« on: October 13, 2022, 11:12:31 PM »
Perhaps you can give me some more information about the issue.  Like a screen shot showing the DRO?  Have you made a ticket with the support guys?  If not, I would do so.  They will get all of the pertinent info and they may already know of a solution. 

We are trying to get a new release out and if there is a screen issue, I would like it fixed before the release.

Steve

55
I figured it out.  The font size of the g code window is controlled by the number of lines you have the window set to.  Setting the font size parameter does nothing. If you leave the lines parameter blank it will default to a font size of 32 (for my window size).  The higher the lines count the lower the font size the window will have.

Correct.  In the beginning, to make Mach cross platform, we used cross platform fonts that you selected from a dropdown list.  They had no point sizes and the number of lines in the display is what "sized" the fonts.  But people wanted to use Windows provided fonts at the expense of the cross platform ability of the original GUI.  So we added that in and the standard Windows Font dialog was used to select the font.  Everything in the font dialog is used with the exception of the point size on screen elements that used the line sizing before for backwards compatibility.

Steve

56
Mach4 General Discussion / Re: DRO on probe setting page (industrial)
« on: October 13, 2022, 03:14:35 PM »
What build number are you running?  (The build number is REALLY useful info when trying to find a solution.)  Have you tried a newer build?  Some of the screens had an error in the DRO update/modify scripts at one time. 

Also, Hobby probing is handled completely different than Industrial.  Industrial has full Macro B and thus you really can't compare Hobby and Industrial.  You can get Hobby style probing by running the hobby screen sets though. 

Steve

57
Just click into the DRO and drag the corner of the keypad with the mouse.  Make is as big or as small as you want.  The next time you used that DRO, the keypad will come up to the last size.

Steve

58
Mach4 General Discussion / Re: Read older screen.set file
« on: October 01, 2022, 04:06:55 PM »
The Mach 4 screen sets are actually ZIP files.  Rename .set to .zip and inside the archive is a file called screen.xml.  You can open this file with an editor and find your code. 

Steve

59
Mach4 General Discussion / Re: Serial-rtu Modbus baudrate up to 1000000kbps!
« on: September 30, 2022, 10:36:14 PM »
The serial speeds are actually coming from the MODBUS library we use.  I'll ask them to see if they will make it customizable.

Steve

60
Because the BSMCEO-4U-PP USB controller card is being used in many of these Chinese systems, the real deal maker would be a Mach4 compatible driver for it. It is a cheap card, but it does work. It would minimize the hardware upgrade issue for most of these users, and many would gladly upgrade to Mach4 if it was only about installing software.

Unfortunately, none of these companies want to sign the legal paperwork to make that happen.  That should say a lot about them.  I'm not talking about the vendors.  But the actual machine builders who put it all together as a "turnkey" system.  They would rather NOT do what it takes to write a Mach 4 plugin and keep shipping the Mach 3 stuff.  Because their goal is to only take your money.  That is all there is to it.

Steve