Keyboard Shortcuts
Likes
- MachCNC
- Messages
Search
Re: Debounce
Spencer Chase
开云体育wouldn't you use a switch with an arm that was arranged so it could overtravel without damage? i have some microswitches that are pretty well made with rollers on the end of an arm. they do not have a lot of slop in them and they are snap acting and maybe repeatable?since i am not cutting ferrous metal is there any reason to not use the hall effect switches?that are already installed and working?? i think they are very repeatable as long as the reference tab does not flop around. the X axis is on a long floppy arm which i think is the original way it was as an Emco machine. there is a little room for a brace to stiffen it. On 3/3/2015 7:35 AM, Hannu Venermo
gcode.fi@... [mach1mach2cnc] wrote:
? -- Best regards, Spencer Chase 67550-Bell Springs Rd. Garberville, CA 95542 Postal service only. Laytonville, CA 95454 UPS only. Spencer@... (425) 791-0309 |
||
Re: Debounce
You would not care.
toggle quoted message
Show quoted text
Also, you need to make sure you dont overtravel into the switch. On 03/03/2015 16:19, Spencer Chase lists@... [mach1mach2cnc] wrote:
if you hit a limit, isn't it pretty much time to reset? why would you care if you were off by a few mm, you probably screwed up if you hit the limit anyway? --
-hanermo (cnc designs) |
||
Re: Debounce
Spencer Chase
开云体育if you hit a limit, isn't it pretty much time to reset? why would you care if you were off by a few mm, you probably screwed up if you hit the limit anyway?i am wondering about all this because i do want to do proper limit switches on my machine at some point so i can home reliably. i will probably stick with the hall effect switches if i can stiffen up the arm that the X axis limit switch uses but if i do use microswitches i might want to debounce them? since mach3 does software debouncing it is probably not a good idea to add another possible point of trouble. i use software debouncing in all of my arduino machines and it works just fine and is very configurable. On 3/3/2015 2:47 AM, Hannu Venermo
gcode.fi@... [mach1mach2cnc] wrote:
? -- Best regards, Spencer Chase 67550-Bell Springs Rd. Garberville, CA 95542 Postal service only. Laytonville, CA 95454 UPS only. Spencer@... (425) 791-0309 |
||
Re: Formula for axis extension
开云体育I think thats an excellent approach, imo.Kudos. On 02/03/2015 23:39,
grezmos@... [mach1mach2cnc] wrote:
-- -hanermo (cnc designs) |
||
Re: Debounce
Yes, its a parameter.
toggle quoted message
Show quoted text
I referred to limit switches Re: speed and a 50 ms delay. Sorry I was not more clear. On 02/03/2015 19:22, Spencer Chase lists@... [mach1mach2cnc] wrote:
aren't you supposed to approach the home switches slowly when homing? i thought homing went close and then did a slow back and forth to set the home accurately? --
-hanermo (cnc designs) |
||
Re: Mach4 - Axis Correction
开云体育Hi Brian,That is excellent! The only way I can test is with the ESS, but it seems that a solid plugin is not yet released. Waiting for your update... Thanks, Dan On 03/03/15 12:09 AM, Brian Barker
brianb@... [mach1mach2cnc] wrote:
Hi Dan, |
||
Re: fixture offsets
Spencer Chase
开云体育Hendrick,I had some time between things so I added nudge buttons and put the code in the M macros. It works perfectly. All I have to do now is add the M1001 and M1002 calls to my G code. Thanks so much. Little things like this bother me. It will be a while before I can make a centering fixture. All I need to do now is make a display that shows the saved offset. I think I can figure out how to do that :) On 3/2/2015 8:57 AM, 'Henrik Olsson'
henrik@... [mach1mach2cnc] wrote:
? -- Best regards, Spencer Chase 67550-Bell Springs Rd. Garberville, CA 95542 Postal service only. Laytonville, CA 95454 UPS only. Spencer@... (425) 791-0309 |
||
Re: Formula for axis extension
Well I solved my own problem. After some experimenting I realised something I probably already knew from my previous experiments with parallel kinematics and that is that the kinematics are only calculated for end points so are more or less ignored inside G02 and similar commands, either you split everything into tiny lines or you find another way. What I did realise is that if my moving gantry and moving bed had the same pulses/mm then I could just run one as the slave of the other and then divide the pulses/mm of the master by two and not need the formulas. BUT mine are not equal lead, one needs 80 pulses per mm and the other 50. But I thought, why not still do the same thing but calculate a new pulse/mm that balances the two. I did and it works like so: Distance moved = (1/80)x + (1/50)x ? ?where x is the number of pulses applied. Distance moved = (1/80+1/50)x For 1mm movement 1 = (1/80+1/50)x x = 1/?(1/80+1/50) ? ?pulses/mm So I stuck this number (37ish) into the box for the x-axis and set my a-axis (connected to the moving bed) as a slave. All works fine and circles are now round :) A video of it working is currently uploading. Cheers, Graham ? |
||
Re: Mach4 - Axis Correction
开云体育Hi Dan,Wouldn't you know it should be done.. it is out for testing now! Will know more in 2 days... Thanks Brian On 3/2/2015 2:37 PM, Daniel
yosefi83@... [mach1mach2cnc] wrote:
Hi Brian, |
||
Re: Mach4 - Axis Correction
开云体育Hi Brian,Checking in again.... Dan On 28/02/15 1:33 PM, Daniel
yosefi83@... [mach1mach2cnc] wrote:
Did you check this with him? |
||
Re: Debounce
Spencer Chase
开云体育aren't you supposed to approach the home switches slowly when homing? i thought homing went close and then did a slow back and forth to set the home accurately?On 3/2/2015 9:37 AM, Hannu Venermo
gcode.fi@... [mach1mach2cnc] wrote:
? -- Best regards, Spencer Chase 67550-Bell Springs Rd. Garberville, CA 95542 Postal service only. Laytonville, CA 95454 UPS only. Spencer@... (425) 791-0309 |
||
Re: fixture offsets
Spencer Chase
开云体育i looked over your code more carefully and think i will give it a try. i like the idea of a nudge button and will make one for + and one for -. this will probably not be great for other users but it will be a while before anyone else operates this machine and i will have time to find or make a centering vise.? i like the idea of using M codes to turn the offsets on and off in the code.On 3/2/2015 8:57 AM, 'Henrik Olsson'
henrik@... [mach1mach2cnc] wrote:
-- Best regards, Spencer Chase 67550-Bell Springs Rd. Garberville, CA 95542 Postal service only. Laytonville, CA 95454 UPS only. Spencer@... (425) 791-0309 |
||
Formula for axis extension
Hi, I have a job to do some 3D machining in foam on my router, it's two-sided machining and unfortunately bigger than my machine. I can't face having to mess around indexing the part in x so I thought I would add a simple moving bed to my moving gantry machine, when the gantry moves one way the bed moves the other. I've done this using an off the shelf ballscrew actuator and the 4-axis stepper driver that was doing nothing. I set up the x-axis as a dummy axis so the DRO works but it does not output pulses and then in the formulas section did A = x/2 B = x/2 Where A and B are set up to drive the gantry and bed respectively. This works with basic moves from the MDI: However, when I did a test cut circles came out really funny. I'm assuming this is because the lead of the bed is twice that of the gantry and although they both have the correct pulses per mm set, in the middle of an interpolated move their differing resolutions mess things up.? Can anyone confirm or give me some more insight into how the formulas do their thing? I'm thinking I can cheat the pulse/mm and modify the portion of x each axis moves to correct for this but I want to be sure before I make my brain hurt :) Cheers, Graham |
||
Re: Debounce
For a small wood router, I dont think so.
toggle quoted message
Show quoted text
For home switches, or something truly accurate, or fast, yes. An example, for illustration: Running at 100 mm /sec, a 0.05 sec delay is 5 mm in movement. 6 m/min or 100 mm/sec is not always very fast, today. Iirc probing, limits and spindle index are the critical ones, and run under 0.5 ms delays in the ring zero layer. (at 25.000 Hz, the lowest speed, max delay would be 0.4 ms, by my math). Faster with hardware boards. CSMIO runs at 4 Mhz, Pokeys at 25 kHz-125 kHz on motion engine, not sure on internals. cheers, h- On 02/03/2015 18:23, Spencer Chase lists@... [mach1mach2cnc] wrote:
i agree that if mach3 does software debouncing that a hardware solution is not necessary. the circuit i mentioned has a period of 50 ms, i don't think that delay would cause a problem. --
-hanermo (cnc designs) |
||
Re: fixture offsets
Spencer Chase
开云体育thanks for the? code. i might use it but a self centering fixture would be better. i bought some right/left threaded acme screws and nuts and can make such a fixture once i get back to my real shop with a real mill and real lathe etc.my part is a little wooden block with features milled on two sides. the wood stock is planed with a really good helical cutter machine owned and maintained by the company i get my hardwood from. even though this is one of the best planers money can buy and they do operate it very well, the thickness still varies a little. if i do it myself on my little Ryobi planer it varies a lot. position is not critical in this part other than the fact that one face has features really close to the edges and it looks sloppy if the holes are not centered. it functions well and probably no one by me would even notice. if i change the offset to correct the one face and keep the offset when milling the other face it would introduce an error that no one would notice at all and would make no difference because the features are all far enough from the edges. instead of obsessing about this i should probably just keep it the way it is until i make the centering fixture. if there is a small centering vise that i can buy i would just buy one but all i have found so far is either really crappy or really expensive like a Kurt, which i can not justify to just satisfy my obsessiveness. any medium priced centering vises that anyone knows of? On 3/2/2015 8:57 AM, 'Henrik Olsson'
henrik@... [mach1mach2cnc] wrote:
? -- Best regards, Spencer Chase 67550-Bell Springs Rd. Garberville, CA 95542 Postal service only. Laytonville, CA 95454 UPS only. Spencer@... (425) 791-0309 |
||
Re: Debounce
Spencer Chase
开云体育i agree that if mach3 does software debouncing that a hardware solution is not necessary. the circuit i mentioned has a period of 50 ms, i don't think that delay would cause a problem.i will probably just increase the stiffness of the arm that activated the hall effect switch on the x axis and will stay with them. the other axes have very rigid actuators and there is no problem with them. as long as i am cutting only wood, should not be a problem with metal swarf interfering with the switches. they are probably very repeatable if they are rigidly mounted. On 3/1/2015 5:21 PM, gebowes@...
[mach1mach2cnc] wrote:
? -- Best regards, Spencer Chase 67550-Bell Springs Rd. Garberville, CA 95542 Postal service only. Laytonville, CA 95454 UPS only. Spencer@... (425) 791-0309 |
||
Re: fixture offsets
开云体育I would agree with Henrik, as usual.Further, a caution ! Gcode and machine movement can get very, very complex, from simple commands. This is because of LOT of stuff depends on you, and the machine, doing things in the "Expected Way". Thus, a lot of stuff that is actually working correctly, can suddenly and unpredictably break things in a major way. For this reason, imho, it is a Major Bad Idea, to not use the mainstream practice in all machine movements and designations. There are things that affect this that are modals, and + or depend on other things in lots of complex ways. All sorts of scaling, safe z movements, tooltip compensations, come to mind. As such, I would caution about not naming axis, and using co-ord systems, in the non-expected way. Things like using negative axis numbers, double-negative designations of outputs (invert polarity and axis directions) etc etc etc ad nauseam, are, imo, a Major Risky Idea. I feel you always get away with it, in the short term, and it always bites you, in the long term. Otherwise, its likely that some innocent program, that just resets co-ordinates, or switches from feed/rev to feed/min, or inches to mm, or whatever, will most likely lead to a hard crash at some point. All these interactions, furthermore, are not tested, and cannot humanly be tested. There are literally millions of combinations, and by no means are all these "safe", in some terms. Also, just running a simple "stop" (not Feedhold) will in some cases cause unexpected behaviour. Also, not all machines works the same, if you have a motion controller like Pokeys, CSMIO, Centipede, Smoothstepper, etc. Some of this stuff is implented in the plugins, and they have limitations, and in some cases errors.
-- -hanermo (cnc designs) |
||
Re: fixture offsets
开云体育Hi Spencer, ? I’m not sure what you’re doing or trying to do is the best way to handle the situation and as you’ve been told you can’t turn offsets on or off, the machine ALWAYS have to move in one coordinate system or another so all you can do is switch between them. Anyway, since you seem determined to do it this way, here is what I think you are asking for. ? If you want to be able to toggle between “any” offset and a fixed offset (I opted for offset 99) with a button you need to use a screen editor program to add a button (and a led if you want to see its status) to the screen. The button should be set to VB-script and the LED should be UserLED1234 (or any free number if you change the macro accordingly). You then attach the following macro to the button. ? If GetUserLED(1234) = 0 Then??????? ' Offset is "off", now turn it on ?? SetUserLED(1234, 1)????????????? ' Turn LED on, used as an indicator AND semaphore ?? SetOEMDRO(46, GetUserDRO(1234)) Else??????????????????????????????? ' Offset is "on", turn "off" ?? SetUserLED(1234,0) ?? SetUserDRO(1234, GetOEMDRO(46))? ' Store current current offset number in user DRO. ?? SetOEMDRO(46,99) End If ? Basically what it does is switch between whatever offset you’ve activated and offset 99 (G59P99) so you need to make sure that the entry for offset 99 has all zeros in it. ? If you don’t want to toggle it with a button but instead turn them “on” and “off” from within your G-code then split the macro in two and place the follwing in one M-code (M1201.m1s for example): ‘ Turn offset “on” macro SetOEMDRO(46, GetUserDRO(1234)) ? And the following in another M-code (M1202.m1s for example) ? ‘ Turn offset “off” macro SetUserDRO(1234, GetOEMDRO(46))? ' Store current current offset number in user DRO. SetOEMDRO(46,99 ? Then you can call the macros from within your G-code program. Please note that I haven’t tested if this has any weird side effects so please be careful. ? If you want to “nudge” the current position (ie the offset, not the actual machine position) of the Y-axis in the positive direction then add a VB-script button to the screen and attache the following code to it: ? SetOEMDRO(801, GetOEMDRO(801) + 0.05) ? ? To always put the machined program at the center of the stock even though the stock varies in “height” I’d simply use a self centering fixture instead of all this special stuff which is prone to mistakes and errors – especially when it’s not you yourself who will be operating the machine. ? /Henrik. ? ? -----Original message----?
i think i figured that out so what i need to do is to store either the current fixture choice and then restore it when i need to or to do it myself using the DRO and saving and entering the offset when the program is at a known starting position. this is what i need some VB script examples for. On 3/1/2015 10:48 AM, Ger CNCWoodworker@... [mach1mach2cnc] wrote:
|
||
Re: Mach 4 accounts
Correct. You can not delete it. Which was the point of my post. Gerry From: "'Andy Wander' ohawiseguyeh@... [mach1mach2cnc]" To: mach1mach2cnc@... Sent: Monday, March 2, 2015 8:18:42 AM Subject: RE: [mach1mach2cnc] Re: Mach 4 accounts From what I saw last week, onthe license server, you can deactivate a license, but not delete it. ? Andy Wander From:
mach1mach2cnc@... [mailto:mach1mach2cnc@...] ? ? The License portal is a work in progress! You should
be able to delete your license and shift it to a new PC... On 2/28/2015 1:16 PM, 'CNC Woodworker' CNCWoodworker@... [mach1mach2cnc] wrote:
? |