Hello Guest it is April 25, 2024, 01:02:19 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 - smurph

161
Mach4 Plugins / Re: XHC WB04 plugin
« on: April 28, 2021, 11:43:23 PM »
Fist off, the Fn "function" button is orange, which would lead one to believe that the orange labeled part of the button is what is run when the Fn button is held down.  However, if the MPG is setup this way, the screen does not properly display the Spindle Speed or Feed Rate override.  Those values are supposed to be displayed when either of the Feed+/Feed- or Spindle+ of Spindle- keys are pressed.  But instead, the firmware acts properly when the buttons are setup as if the Fn button should be blue!

So the default setup on the MPG is to act as though the Fn button is blue.  Just pretend.  Use your imagination.  :)  And the Fn button has to be depresses to get any of the Macro functions.  In this mode, the Feed Rate and Spindle Override are displayed correctly.  Pressing a Feed or Spindle key once displays either the Feed Rate or Or the Spindle Speed, respectively.  Pressing a Feed or Spindle key again will start to adjust either the Feed Override or Spindle Override, respectively. 

However, this is NOT how the Mach 3 plugin (written by some XHC people, I guess) worked.  So I put an option in the plugin config to operate like the Mach 3 plugin where the Orange Fn button does indeed have to be depressed to get the orange labeled functions.  But at the sacrifice of the proper update of the Feed Rate and Spindle Override values. 

Other than that, the axis DROs and other values display correctly, within reason.  Again, I wish I could fix that firmware!  The rest of the MPG is pretty decent.  Not up to a Vista CNC MPG's standards, but close.  The screen refresh is ok, but not instant.  But it doesn't need to be instant.  I would much rather watch the DROs on the Mach screen anyway.  But the DROs on the MPG are good for validation. 

Another thing I noticed is that the MPG rounds the DROs a bit.  It can show 4 places to the right of the decimal.  But say the the X axis is really at 0.00015" and the Mach DRO shows 0.0001 because it is only showing 4 digits, the MPG DRO will show 0.0002.  It will round up!  Not a big thing as most of us mere mortals don't have machines that are accurate to the tenth of a thousandth and we really don't cut any materials with that much dimensionally stability when the temperature changes.  And again, one could just look at the Mach screen to see the real value. 

Steve

162
Mach4 General Discussion / Re: Mach 4 PMC error
« on: April 28, 2021, 04:08:54 PM »
Old build maybe?  I don't know, you didn't say what build you are running. 

Steve

163
Mach4 Plugins / Re: XHC WB04 plugin
« on: April 28, 2021, 04:06:31 PM »
Steve,

I do not own an MPG yet and am deciding between a VistaCNC and the XHC controller. The VistaCNC plugin supports all of the MPG's capability. Does this native Mach plugin support every MPG function for the XHC controller ?

I'd prefer the wireless MPG but not if it's missing capability in Mach4. Can you advise ?

Yes, all functions are implemented.  However, there really is no comparison between the Vista CNC pendant and this XHC one.  This XHC has buggy firmware on it.  I wish I could fix that!  It doesn't prevent normal operation at all but it annoyed me to no end when I was writing the plugin.  There is a page on the configuration dialog that explains one of the firmware issues.  Anyone running this MPG with Mach 3 already knows about all of it though so there will not be any surprises there.

If you just have to have wireless, then I guess the XHC is the choice.  Otherwise, I would go with the Vista CNC pendant any day. 

I wish Vista CNC would do a wireless MPG.  We would all sing songs about it. 

Steve

164
I would start suspecting device drivers.  Video device drivers specifically.  See if there is an update driver for it.  Especially if it is an Intel Video "GPU on the CPU" device. 

Steve

165
Mach4 Plugins / Re: XHC WB04 plugin
« on: April 21, 2021, 01:39:17 PM »
You map the inputs to Mach input signals just like any other device.  So no, there are no specific instructions for this outside of the Mach Configuration Manual or the PMC help.

Steve

166
Mach4 General Discussion / Re: Screw mapping
« on: April 19, 2021, 09:10:56 PM »
Screw mapping is usually reserved for OEMs that sell turn key machines.  I say "usually" because most people don't have the measuring capabilities/tools required to come to a good outcome.  And they even make more of a mess than if they left screw mapping along.  Then throw a bit of backlash at the situation and it gets worse.  So there is the caveat.  But if you like a good challenge, here is what I wrote to an OEM about the subject:

The map is by motor in the Profile's directory

Motor_0_Map.dat
Motor_1_Map.dat
Motor_2_Map.dat, etc...

It is a comma separated file: Start, Length of screw, Number of points, point 1 error, point 2 error, point 3 error, etc...

The file format, again to be clear, is this:

[start pos], [length of screw], [number of points mapped], [point 1 error], [point 2 error], [point 3 error], etc...

All positions are in counts. The error is the actual error, in counts. A negative or positive number.

For example, say you have a screw that is 10000 counts per inch and you measure the table every inch and the axis is 20 inches.  Start would be 0, length would be 200000 (10000 * 20), number of points would be 20 (200000 / 10000).  You would start at zero and move the X axis precisely 1 inch (this is where the precise measurement comes in).  Then you look at your screws encoder counts.  Say it reads 10001.  That means the error is 1 count positive.  If the encoder read 9999, then the error would be 1 count negative (-1). 

In the core, we always "add to take the error out".  So when we move to a virtual position, we look up the error for that position in the map and
ADD the error value.  A planner position of 10000 would output 100001 as the destination point. 

If the point is between two mapped points, we interpolate between the two points.  This is why the granularity you choose is important.  It determines the "acceptable" amount of error. 

In order to effectively use screw mapping, the machine needs to be able to home precisely and be repeatable.  The machine's home position is the reference point for all of the mapping.

It is a painstaking process to do it right.

Steve

167
4.2.0.2872...  Quite old is an understatement!  I would try something newer.  Use 4612 if you can. 

BTW, no scripts are stopped or killed when the stop button is pressed or the control is disabled.  What if the script needed to do something to handle that event?  So you, the programmer, need to handle all avenues and code paths in the scripts.  It is why I harp on testing the API function return codes all of the time.  Because return codes like mc.MERROR_NOT_NOW can be a clue that your script isn't going to end up like you thought because something went all pear shaped.   

Steve

168
Mach4 Plugins / Re: XHC WB04 plugin
« on: April 19, 2021, 07:24:38 PM »
The configuration dialog is pretty self explanatory.  The macro buttons can be mapped to canned functions.  There is also a tab page that explains a bit about their firmware issues.  I wish I could fix that! 

Anyway, what is not so self explanatory is that each of the macro buttons (10 of them) fires an input that can be mapped to a Mach signal or used in a PMC module.  So they are there if the canned functions are not enough and you need something more advanced. 

Steve

169
Mach4 General Discussion / Re: Motor Speed
« on: April 13, 2021, 11:14:37 PM »
You are exceeding the motor driver's duty cycle or motor's upper RPM limit.  How is the motor driving the ball screw?  What is the pitch of the ball screw?  You will probably have to gear the motor to turn LESS steps per inch.  Somewhere in the neighborhood of 12,000 to 20,000 is a good target. 

Steve

170
Mach4 General Discussion / Re: SSR m7 serial
« on: April 13, 2021, 05:03:08 PM »
You guys just cost me a lot of money! ;)

RT

That's what we are here for.  LOL!!  Keeping the world's economy running one post at a time!  :)