Hello Guest it is April 25, 2024, 11:19:51 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 - Smartcore

Pages: 1
1
General Mach Discussion / Re: Mach3 Speed Setting Opposite
« on: November 17, 2019, 11:41:22 PM »
I had this same issue when I was first setting up my spindle for Mach3 speed control (instead of panel control on the VFD).  I was running a PWM converter to run the 0-10V signal as my BOB did not have a 0-10V output directly.  I believe the BOBs that have that built in still work the same way so the following discussion will still apply.

Mach3 puts out pulses and these need to be converted to the analog voltage.  The way that is done is through PWM (Pulse Width Modulation).  How that works is that a digital signal is a series of pulses.  PWM changes the length of time a signal is High vs. how long it is low.  This is called duty cycle and a 50% duty cycle would have the highs and lows at an equal length.  A duty cycle of 20% would have the high on for 1/5 of the overall cycle time from one pulse to the next whereas 80% would have the pulse high for 4/5 of the overall time.  The PWM conversion circuitry basically "smooths out" these pulses to an average voltage level and that will be between 0 and 10V DC.  So a 20% duty cycle would result in a 2V DC output to the VFD.

HOWEVER, many of the BOB circuits utilize an active low signal so the logic gets reversed - 20% duty cycle results in a low pulse for 1/5 of the overall cycle time and so on.  To fix this, I had to set Mach3 to an active low setting on the step column for the spindle setting in port and pins; motors tab.  This essentially inverts the signal so that when it hits the PWM conversion circuitry the duty cycle is in the correct polarity.  (i.e. low duty cycle results in shorter positive pulses and vice-versa.)

So the first thing to try would be change the setting of your Spindle Step configuration in Ports and Pins configuration under the Motor Outputs tab.  If it has a green check, click it to change it to the red "X"; if it is a red "X" change it to a green check.  That should do the trick.

Stephen "Highspeed" Kruse

You sir I wish i could buy a beer for. I know its a dead topic but if you're still around. I screwed around getting no where for 7 hours today trying to get this to work with my setup.  One little checkmark..... anyways cheers!

Pages: 1