Hello Guest it is April 26, 2024, 10:06:20 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 - robertspark

221
Mach4 General Discussion / Re: help to AKZ250 breakout board
« on: May 06, 2016, 08:58:27 AM »
Suggestion....

Well supported, and with what appears to be regular updates as issues become apparent.... Just no m4


http://cncdrive.com/UC400ETH.html

222
General Mach Discussion / Re: Odd behaviour?
« on: May 05, 2016, 02:11:31 PM »
Why do you have to remove the toolchange?

On the general configuration tab you can tell mach3 to ignore m06 toolchange commands (top left hand side from memory)

I have found with vbscript (macropump etc) that you need one carriage return after the last command (press keyboard "enter" after the dospin(cw) )

223
General Mach Discussion / Re: Physical buttons for plasma
« on: May 04, 2016, 09:02:22 PM »
Well tried bench testing to minithc (thought it would be easy... First failing)

Basically fed it a slow 2v square wave at less than 0.2 hz.

This allowed me to see that it was reading the voltage about 2 volts higher than it was (calibrated scopemeter), although this is without the plug in pmx45 50:1 adapter.... Hence there may be some effect from the filter circuit in that on the read voltage.

Unfortunately I was not able to get a specific cutoff frequency of saturation, and it seemed relatively low, but this I suspy was from feeding it a 2v to 2.4v square wave switching from zeo to the set voltage which is a little unrealistic given the voltage would be jumping from 0v to 100 or 120v on an increasing frequency.... Basically I need to stop a smaller varying input voltage 0.02v to 0.05v .... With an offset of 2.4v....

And I've not got the inclination at the moment....but may come back to it

224
Mach4 General Discussion / Re: Controling pneumatic Z-axis?
« on: May 04, 2016, 08:31:56 PM »
250ipm = 4.16r"/sec

For mach3, that means 0.416" / macropump, script or brain loop..... there is a chance that it may fly right past a switch. (10hz loop frequency)

Mach4 has an adjustable (you can change it) loop frequency which is set within the screenset by editing the screenset, and its 50hz (note this does require a motion controller to pass information back to mach4 at the desired speed, default data transfer loop on the Ethernet Smooth Stepper is 40Hz (adjustable) for processing / action.  I don't know what the parallel port speed is in Mach4 at passing info back and forth, and the other motion controllers would require some exploration from their respective manufacturers that are supporting Mach4 (PMDX, Vital Systems & CSLabs and PoLabs are the only others I know of, but may not be up to speed)

hence your z could travel 0.083r"/loop before being detected by the loop (which is good) as I'd suggest you really want some sort of debounce to confirm that the switch has changed state to prevent potential noise or false triggering), ie you need the loop to pass twice to confirm that the switch has changed state (or internal filtering in the motion controller)

Not sure about the use of the glass encoder and how you would set limits, they would be better than a switch as it may be possible via algorithm (code or equation) to write a predictive script that would not only say where the z axis is at this time, but where its likely to be on the next loop, hence prepare to stop the z axis at just the right moment (you also need to allow for some amount of deceleration).  The equation that would work best would be a Kalman controls equation, although its rather complex (to me) and its used in many avenues such as radar and other interesting things (quadcopters / gyroscopes is another on occasion), it allows the equation to use the last position to calculate for the next expected position and a degree of noise it is self correcting (hence think about a plane or missile) and providing the velocity remains the same (whether constant, accelerating or decelerating) it allows for state.  It would be interesting to try to implement in cnc, but is probably not required as all that tends to happen in cnc is the limit switch is tripped, the device is stopped, either allowing for some deceleration and the position is estimated, or its backed up off the switch and then the position is also estimated with a smaller error.

If someone is interested there is info on the Kalman equation here which is well written.
http://bilgin.esme.org/BitsAndBytes/KalmanFilterforDummies
http://www.bzarg.com/p/how-a-kalman-filter-works-in-pictures/

There appears to also be some lua script that may be able to be Mach4 adapted maybe...
https://www.google.co.uk/search?q=kalman+lua&ie=utf-8&oe=utf-8&gws_rd=cr&ei=X4oqV9f3EYzNgAaguI7YDA


An alternative which is sometimes used is complementary filter which is a little easier to understand.

Note this is looking at the use of glass encoders, given they can provide you with the current position, velocity and change in velocity all of which is way more useful information (that is not utilised in cnc other than position) than just a limit switch which would probably work just fine for whatever accuracy you are looking for.

Mach4 is motion controller dependant, hence you need a clear understanding of what you require and what functions the manufacturers support.  A suggestion would be, maybe gather a list of the mach4 gcodes and mcodes together in an excel spreadsheet, with a tick box next to each, along with some background questions such as how frequently does the motion controller send information back and forth to Mach4 (as if its preset and non adjustable at 10hz.... its no benefit over Mach3), number of inputs and outputs, any analogue inputs (or outputs).... not that they are common place / used much, and confirmation of the use of M62 & M63 (not in the M4 manual last I checked) as they may be useful to trigger things later without hesitation, along with homing and probing functions (as they are internal to the motion controller and are not done in the PC / Mach4)

Personal experience.... product manufacturers are not very good at stating what a product cannot do (negative aspects are not perceived as product merits), hence saying it works with M4 is very common.... but asking what doesn't work is sometimes met with silence.... hence a direct question "does this function work or not?" will then require them to explicitly lie which is harder to do than a cover all statement "its M4 compatible" / "works with M4".

Buying an M4 motion controller to later find that it does not do what you want it to (or some specific function) can be disappointing if the product is not being supported by timely updates to correct deficiencies or follow the improving development cycle of new M4 updates being released (where occasional updates have reported working functions in motion controllers to now stop working for whatever reason).

225
Mach4 General Discussion / Re: Controling pneumatic Z-axis?
« on: May 02, 2016, 03:04:24 PM »
The only problem is how fast do you want the z axis to travel?

Scripts and brains in Mach3 run at 10hz loop speed... So would it be possible the z would fly right past the limit switches before they saw a change of state?

226
General Mach Discussion / Re: Z axis problem with USB 6040z CNC /Mach3
« on: April 29, 2016, 02:29:58 PM »
Post your profile XML and the gcode file and someone will have a look.

There is not enough info in your post above as it may be a few things

227
Mach4 General Discussion / Re: Shuttle Pro plugin - When?
« on: April 29, 2016, 10:14:30 AM »
Sage think you're right (see what happens when multitasking..
 Errors are inevitable...)

I'll try again with m4 tonight and Shuttle, still did not think something was working as it does in m3

228
Mach4 General Discussion / Re: Shuttle Pro plugin - When?
« on: April 29, 2016, 09:11:26 AM »
I thought the outer jog wheel was 1 increment per click / notch, but I thought that the inner wheel was 1 increment per revolution?


229
General Mach Discussion / Re: Physical buttons for plasma
« on: April 29, 2016, 03:09:39 AM »
I've got a plan to connect it up to my frequency / function generator, and oscilloscope to try to see the point at which it can't keep up with the change in input voltage and also the response delay between input and output.... That is the plan... See what happens

Your one will work with the c-axis but it will require the longer (left hand column) of the message format which has a whole lot of redundant info that the THC does not use (hence my question to Denis about shortening the string)

Apparently when it had modbus it was able to output the datastring to the hypertherm powermax 65, 85 and 105 in modbus ASCII characters (serial)... But no one ever seemed to buy the interface and use it.  I said to Denis he was just not marketing it well enough and telling people what it did... Hence better manual section.

See what the scores on the doors are with the tests I guess.

Rob

230
Mach4 General Discussion / Re: Shuttle Pro plugin - When?
« on: April 28, 2016, 08:07:50 PM »
Does the inner jog wheel work for you on m4 with the shuttlepro?

Latest m4 version (2914), with ESS.