Hello Guest it is June 20, 2021, 10:06:32 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.

Messages - tkalxx

Pages: 1 2 »
Nice! Looking forward to it.

Hi Brian, it's been a while, but I'm finally getting ready to start the programming side of things for my spindle.

Can you point me in the right direction on how to go about modifying the analog output calculation in Mach? I can't seem to find any code/scripts relating to analog output in my Mach4 directory.


Mach4 General Discussion / Re: Concept Validation: Dual Belt Spindle Setup
« on: February 19, 2021, 12:14:37 PM »
Will do, thank you Brian.

I've started building some of the mechanical components. I will reach out to you on this thread once I reach the stage where analog modification is needed!

Mach4 General Discussion / Re: Concept Validation: Dual Belt Spindle Setup
« on: February 17, 2021, 04:43:28 PM »
I'm confident I can get the auto shifter working in PMC based on RPM conditions. But tweaking the analog out signal for different belt ratios is way over my head haha!

Mach4 General Discussion / Re: Concept Validation: Dual Belt Spindle Setup
« on: February 17, 2021, 12:29:47 PM »
Yup, auto shifter is exactly what I was thinking and is the route I want to take. I don't really want to change how RPM/analog out is calculated.

My low gear is 0-2999 rpm and high gear is 3000-8000 rpm. Like you explained on the mori, I tried incorporating a neutral gear (spindle range 0). Range 0 was set at the beginning of each m3/m4/m5 function. Then, for m3/m4, the commanded rpm was read and the appropriate spindle range was then set again based on commanded RPM (low gear spindle range 1, high gear spindle range 2). I couldn't get mach to like this approach...

The PMC script that activates the appropriate air cylinder based on current spindle range works great though :)

Mach4 General Discussion / Re: Concept Validation: Dual Belt Spindle Setup
« on: February 16, 2021, 06:15:25 PM »
So I've been playing around with m3/m4 scripts as well as PMC.

I think a PMC script for actuating the individual belt drives is easiest and should be done based on the active spindle range. ex: if spindle range 1 is active, coil for pneumatic cylinder 1 is active and vice versa.

I'm having difficulties with m3 and m4 scripts to read the commanded spindle rpm and then set the appropriate spindle range. The issue arises when a spindle range is already active (for example range 1 which is 0-3000rpm) and a higher rpm is commanded. Because range 1 is already active and has a max rpm of 3000, any commanded spindle rpm that is above 3000 rpm automatically defaults to the ranges' maximum rpm. I've tried setting up a "dummy" range (spindle range 0 which is 0-8000rpm) and having the m3 and m4 scripts reset the range to 0 before the remainder of the script runs but there has to be a better way to do this. Is there a better way to read commanded rpm? Currently I'm using mcSpindleGetCommandRPM

Mach4 General Discussion / Re: Concept Validation: Dual Belt Spindle Setup
« on: February 10, 2021, 10:51:24 AM »
Thanks for the reply Brian, that would be very helpful!
I never thought about using PMC to achieve this but seems like the easiest way to go about it. Using PMC would mean I don't have to rely on executing M3/M4 commands in order to engage the appropriate belt. The PMC script would continuously run and change output signal to the appropriate air solenoid based on the spindle speed - am I correct? Time to start reading up on the PMC editor...

Mach4 General Discussion / Concept Validation: Dual Belt Spindle Setup
« on: February 09, 2021, 09:29:20 PM »
Hello all, I'm seeking some advice from the mach 4 gurus who know more than me in the software department.
I'm a mechanical engineer who is eager to learn more about the ins and outs of Mach 4 LUA, etc, but, my current knowledge is quite limited. I have a concept for a dual belt spindle setup that I know is mechanically feasible, and I'm willing to learn how to implement it into Mach 4 through trial/error and research once the time comes, however, I'd like to confirm that it is do-able before investing the time and effort.

I have a 2.2kW BLDC motor controlled via 0-10V analog through a VFD with a pokeys57cnc board. I'd like to build a dual belt setup for 2 speed ranges (approx. 0-4000rpm and 4000-10,000rpm). Each belt would be separately engaged by its own pneumatic air cylinder. For example, when commanded M3 S2000, air cylinder one would be engaged and thus belt number one is engaged; when commanded M3 S8000, air cylinder two would be engaged. This type of dual belt system can be seen on older Fadal machines.

My plan is to alter the M3/M4 scripts to read the commanded/desired spindle speed and output a signal to the appropriate solenoid in order to engage the belt. I know you can set up multiple speed ranges within Mach 4 but never done so. How well does mach deal with separate speed ranges, and how does my bob know what voltage to send to the VFD? As a very crude example, sending 5V to the VFD would achieve 2000rpm or 7000rpm depending on which belt I have engaged. I'm assuming mach just knows that when S8000 is commanded it is in the 2nd speed range?

I guess my overarching question to the mach veterans out there is: do you see any catastrophic problems with my plan that may arise? Any input is greatly appreciated!


Mach4 General Discussion / Re: Need Help - Mach4 errors w/ PMDX-424
« on: December 24, 2020, 09:23:44 PM »
My computer is 2ft away. I've tried 3 different cables and a bunch of different ip addresses. From my understanding, the default gateway does not matter at all for pokeys connection, correct?

Mach4 General Discussion / Re: Need Help - Mach4 errors w/ PMDX-424
« on: December 23, 2020, 01:22:14 AM »
Hello all,
I just recently have been having issues with the pokeys57cnc board and thought I would post here. I know this thread is titled PMDX, however, there seems to be some people with pokeys experience who have replied here.

I just started getting "connection re-established" errors with the pokeys57cnc nearly every time I hit enable in Mach4. Nothing has changed electrically or mechanically with my system and I am still running the same pokeys firmware and Mach4 release. I'm starting to think I may have a bad computer but would like to rule some things out before I track down a different PC that I can try.

For those of you running pokeys57cnc or any other ethernet motion controller, what static IP and default gateway are you using for the motion controller and windows network settings?


Mach4 General Discussion / Re: Need Help - Mach4 errors w/ PMDX-424
« on: December 04, 2020, 12:53:02 PM »
Yup, I guess I learned the hard way. Should have just went ESS or Pokeys to begin with... ethernet has been working great.

Pages: 1 2 »