Hello Guest it is April 19, 2024, 11:51:41 PM

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.


Topics - JoeMickley

Pages: 1
1
Modbus / Modbus setup data storage, where is it?
« on: October 25, 2021, 07:53:53 AM »
Running a legacy Mach3 configuration (R3.043.066)

Started thru the process of installing a new mill.  Thought I would just copy over the .xml file, give it a new name and do the new port/pin configuration stuff to match the new machine.  SUPRISE!  None of my carefully crafted Modbus stuff came thru in the new version.  Did some roto-rooter digging into the .xml file, found that none of the Modbus detail info is stored in there.

Where (what additional files) store the Modbus detail info?  How do those files get linked in with Mach3 when it lights off.

(It doesn't help that I did a less than perfect job of documenting the Modbus setup when I did it originally so now I would like to go dig that out.  Late correction of old sins.)

Advice needed.

2
General Mach Discussion / Spindle motor setup, need some coaching
« on: September 30, 2021, 02:23:34 PM »
Running Mach3 Ver R3.041 under Win Xp (Yes, it's ancient, I'm ancient.  It's working great, leave it alone)

Trying to set up a PWM output for the spindle motor on a new machine, having a struggle getting the PWM pulse width to go where I want it vs RPM.  Under ports and pins I set PWM base freq at 100 Hz.  I go over to Spindle pulley selection and set a max speed, run it with a logic analyzer on the PWM pin and look at what I am getting for PWM duty cycle.  I can run the max speed up and down and get the PWM duty cycle I want for a given spindle speed (2000 RPM) but I can't seem to get control of the delta PWM duty cycle vs RPM.  Changing to different RPM (4000 RPM) does not track the curve I need to be on. (by a bunch).

Nothing I have tried so far seems to just change the slope of the line that represents PWM duty cycle to RPM.

What can I change to be able to get (at least approximately) the PWM duty cycle to RPM profile where I need it?  What is driving the relationship from RPM to PWM duty cycle.  I thought it should be linear ( double the speed in RPM should double the PWM duty cycle.)  It doesn't seem to be working that way.

I have plowed thru the Mach install config docs several times but haven't tripped the magic button yet.  I just can't seem to get my head properly into it.

Open to any and all suggestions. (Except don't suggest Mach4).

3
General Mach Discussion / Need a new screen for Mach3
« on: February 09, 2020, 10:34:22 AM »
Computer died, got a new machine, put all of the misery in one bucket and installed Win 10.
Installed Mach3 (No parallel port driver, just the program), configured it, works great EXCEPT...

Along with the new PC I also got a new monitor, a nice big wide one.  Mach3 runs just fine but the 1024 screen it uses doesn't look too good on that new monitor. Waaay to wide, everything is distorted in the X axis.  I rummaged around in the downloadable screen sets but there isn't enough info to tell if what I'm looking at would help.

The new monitor runs at 1680 x 1050.  Is there a screen set out there that looks pretty much like the 1024 screenset but will have the right aspect ratio for this new monitor?

I really don't want to dive into the screen editors and try to roll my own so that's not a choice.  If the answer is: "You can't get there from here", then OK, I can live with it.

Advice needed.

4
G-Code, CAD, and CAM discussions / Using an M98 sub call as a GOTO
« on: December 17, 2016, 04:37:39 PM »
G-code does not have a "GOTO" function but I believe that I could use an M98 (Subroutine call) to cause the branch and then just never use the M99 (Return).   That will allow me to branch around sections of code.  I can later "NO-OP" the call and have the original code back.  The program will run until it encounters the M30 (Or manual STOP and REWIND), skipping over some portions, then hit the M30 and stop/rewind.

My concern is that I am leaving the call stack (or whatever implementation Mach3 uses) unbalanced.  There are some number of subroutine CALLs with no RETURNS.  The question is "Does Mach clean up the stack on the M30 or manual STOP/REWIND?"  I would assume that it does because I use subroutines and can manually STOP and REWIND a program in the middle of a sub even if nested several levels deep, but I don't know that it will still work if the program is repeated enough times.

Also, what is the stack depth for CALLS?  That would be useful info for general information.

Any other suggestions on how to implement a GOTO welcome.

Pages: 1