开云体育

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date

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:
?

You would not care.
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?
>
> 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.

--
-hanermo (cnc designs)


--

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.
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?

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.
--
-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:
?

Yes, its a parameter.

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)


--

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:

All works fine and circles are now round :)

A video of it working is currently uploading.

Cheers,

Graham

-- 
-hanermo (cnc designs)


Re: Debounce

 

Yes, its a parameter.

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,

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,

Checking in again....

Dan

On 28/02/15 1:33 PM, Daniel yosefi83@... [mach1mach2cnc] wrote:
Did you check this with him?

Thanks,
Dan

On 26/02/15 4:02 PM, Brian Barker brianb@... [mach1mach2cnc] wrote:
I don't know if this has come back to the surface or not. I know it was started. Let me talk to Steve and see where he ended on that one and I will post back here.

Thanks
Brian

On 2/26/2015 2:20 AM, Daniel yosefi83@... [mach1mach2cnc] wrote:
Hi Brian,

Just wanted to get an update on this please.

Thanks,
Dan

On 12/11/14 7:35 AM, Daniel yosefi83@... [mach1mach2cnc] wrote:
Guess I will wait till it's finished ;-) The SS plugin is not ready anyway...

Dan

On 11/11/14 10:57 PM, Brian Barker brianb@... [mach1mach2cnc] wrote:
If you are willing to try to input data with the scripting commands you are welcome to test it... I have not had the time to make a dialog.

Thanks
Brian

On 11/11/2014 3:50 PM, Daniel yosefi83@... [mach1mach2cnc] wrote:
Hi Brian,

That sounds great! Hope it works well. Would test it myself if the Smoothstepper plugin ever gets released.

Thanks,
Dan

On 11/11/14 10:38 PM, Brian Barker brianb@... [mach1mach2cnc] wrote:
Hello Dan,
This has been added but needs to be tested :( I have a few users that are playing with this now so we hope to have it tested out soon...

Thanks
Brian

On 11/11/2014 3:28 PM, Daniel yosefi83@... [mach1mach2cnc] wrote:
Hi Brian,

I built a 4.5m cylindrical grinder. The Z axis is calibrated for linearity to better than 0.03mm over the whole 4.5m meter travel. But I want it even more accurate. Better than that is really hard to accomplish mechanically, so I wonder if it can be done in Mach4 (as far as I know it can't be done in Mach3). I can precisely map the axis so that I have say 1000 points along the Z and a corresponding correction in the X axis to compensate for the non-linearity. Can Mach4 apply a correction in X axis for every point in Z?

Thanks,
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:
?

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:

?

You can't turn them on or off. You either need to switch from one offset to another, or set them to zero when you want them to be "off".

Gerry

?


--

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,

Checking in again....

Dan

On 28/02/15 1:33 PM, Daniel yosefi83@... [mach1mach2cnc] wrote:
Did you check this with him?

Thanks,
Dan

On 26/02/15 4:02 PM, Brian Barker brianb@... [mach1mach2cnc] wrote:
I don't know if this has come back to the surface or not. I know it was started. Let me talk to Steve and see where he ended on that one and I will post back here.

Thanks
Brian

On 2/26/2015 2:20 AM, Daniel yosefi83@... [mach1mach2cnc] wrote:
Hi Brian,

Just wanted to get an update on this please.

Thanks,
Dan

On 12/11/14 7:35 AM, Daniel yosefi83@... [mach1mach2cnc] wrote:
Guess I will wait till it's finished ;-) The SS plugin is not ready anyway...

Dan

On 11/11/14 10:57 PM, Brian Barker brianb@... [mach1mach2cnc] wrote:
If you are willing to try to input data with the scripting commands you are welcome to test it... I have not had the time to make a dialog.

Thanks
Brian

On 11/11/2014 3:50 PM, Daniel yosefi83@... [mach1mach2cnc] wrote:
Hi Brian,

That sounds great! Hope it works well. Would test it myself if the Smoothstepper plugin ever gets released.

Thanks,
Dan

On 11/11/14 10:38 PM, Brian Barker brianb@... [mach1mach2cnc] wrote:
Hello Dan,
This has been added but needs to be tested :( I have a few users that are playing with this now so we hope to have it tested out soon...

Thanks
Brian

On 11/11/2014 3:28 PM, Daniel yosefi83@... [mach1mach2cnc] wrote:
Hi Brian,

I built a 4.5m cylindrical grinder. The Z axis is calibrated for linearity to better than 0.03mm over the whole 4.5m meter travel. But I want it even more accurate. Better than that is really hard to accomplish mechanically, so I wonder if it can be done in Mach4 (as far as I know it can't be done in Mach3). I can precisely map the axis so that I have say 1000 points along the Z and a corresponding correction in the X axis to compensate for the non-linearity. Can Mach4 apply a correction in X axis for every point in Z?

Thanks,
Dan










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?

Thanks,
Dan

On 26/02/15 4:02 PM, Brian Barker brianb@... [mach1mach2cnc] wrote:
I don't know if this has come back to the surface or not. I know it was started. Let me talk to Steve and see where he ended on that one and I will post back here.

Thanks
Brian

On 2/26/2015 2:20 AM, Daniel yosefi83@... [mach1mach2cnc] wrote:
Hi Brian,

Just wanted to get an update on this please.

Thanks,
Dan

On 12/11/14 7:35 AM, Daniel yosefi83@... [mach1mach2cnc] wrote:
Guess I will wait till it's finished ;-) The SS plugin is not ready anyway...

Dan

On 11/11/14 10:57 PM, Brian Barker brianb@... [mach1mach2cnc] wrote:
If you are willing to try to input data with the scripting commands you are welcome to test it... I have not had the time to make a dialog.

Thanks
Brian

On 11/11/2014 3:50 PM, Daniel yosefi83@... [mach1mach2cnc] wrote:
Hi Brian,

That sounds great! Hope it works well. Would test it myself if the Smoothstepper plugin ever gets released.

Thanks,
Dan

On 11/11/14 10:38 PM, Brian Barker brianb@... [mach1mach2cnc] wrote:
Hello Dan,
This has been added but needs to be tested :( I have a few users that are playing with this now so we hope to have it tested out soon...

Thanks
Brian

On 11/11/2014 3:28 PM, Daniel yosefi83@... [mach1mach2cnc] wrote:
Hi Brian,

I built a 4.5m cylindrical grinder. The Z axis is calibrated for linearity to better than 0.03mm over the whole 4.5m meter travel. But I want it even more accurate. Better than that is really hard to accomplish mechanically, so I wonder if it can be done in Mach4 (as far as I know it can't be done in Mach3). I can precisely map the axis so that I have say 1000 points along the Z and a corresponding correction in the X axis to compensate for the non-linearity. Can Mach4 apply a correction in X axis for every point in Z?

Thanks,
Dan









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:
?

For a small wood router, I dont think so.
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)


--

Best regards, Spencer Chase
67550-Bell Springs Rd.
Garberville, CA 95542 Postal service only.
Laytonville, CA 95454 UPS only.
Spencer@...

(425) 791-0309


Re: Homing with "X" axis with "A" motor as the SLAVE

 

Here is the video on the completed project.?
Thanks for the help.

?



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:

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.


--

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.
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:
?

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:

?

You can't turn them on or off. You either need to switch from one offset to another, or set them to zero when you want them to be "off".

Gerry

?


--

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:
?

I think I would stay far away from this type of solution. These chips are designed to debounce human activated switches. They will introduce a delay that could be significant; they are another point of failure of your safety switches; and in the end do nothing more than Mach3 is already doing when you set the delay greater than zero.


As Hannu wrote, the only safe, long term fix for this problem is to eliminate the noise and/or replace defective switches.

Graham


---In mach1mach2cnc@..., wrote :

i just bought some of these debounce chips for another application but have not tried one yet. even thought they are tiny surface mount, they have just power and in and out switch connections so they should be easy to solder into anything. if the false switch closures are caused by electrical noise, i am not sure these would fix it but they should work for pretty much any switch contact debouncing. i am using hall effect limit/home switches on my machine which i should replace with mechanical switches some day because the hall effect ones are too touchy. when i do, i will use debounce circuits.



On 3/1/2015 2:11 AM, Hannu Venermo gcode.fi@... [mach1mach2cnc] wrote:
?

The debounce should be set at 0, imo, ime.

If you get false triggers, the better solution is to fix the electrical
noise thats causing this.
Shielded cables ?
Grounded at one end only ?
Proper switches ?



-- 

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.


To always put the machined program at the center of the stock even though the stock varies in height Id simply use a self centering fixture instead of all this special stuff which is prone to mistakes and errors especially when its not you yourself who will be operating the machine.

/Henrik.

_,___

-- 


-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:

?

You can't turn them on or off. You either need to switch from one offset to another, or set them to zero when you want them to be "off".

Gerry

?


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@...]
Sent: Monday, March 02, 2015 8:16 AM
To: mach1mach2cnc@...
Subject: Re: [mach1mach2cnc] Re: Mach 4 accounts

?

?

The License portal is a work in progress! You should be able to delete your license and shift it to a new PC...
I will report the changing of the password issue..

Thanks
Brian


On 2/28/2015 1:16 PM, 'CNC Woodworker' CNCWoodworker@... [mach1mach2cnc] wrote:

?

For me, it was?actually very easy to get a new license.

However...

?

There needs to be a way to delete a license. I already have used 3, and have not even used Mach4 on a PC with a machine attached.

License #1 was the original license when I purchased Mach4.

A change in Mach4 required a new license, #2.

?

After retiring an 8 year old PC, I then needed license #3.

?

I have no use at all for license #2 and #3, but there's no way to delete them from my account.

?

Gerry

?

?

?

?

?

----- Original Message -----

Sent: Saturday, February 28, 2015 11:32 AM

Subject: [mach1mach2cnc] Re: Mach 4 accounts

?

Never mind I heard from Scott and the password reset is broken and he will help me out.?

?

But I will say this isn't as easy or trouble free as we were promised back in the beginning... ?

But then neither is the rest of my life so I guess it's just one of those little bumps in the road...

?

On Sat, Feb 28, 2015 at 10:47 AM, Garry Foster <garry.foster1@...> wrote:

Well i have bought nfw, mach4, and darwin..? But when I went to use hem I downloaded the latest versions of 4 and Darwin my licences no longer work. So I wrote support and asked for new licences and was told to go log on and manage my own. however if I ever had a password I can't find it. When I try and reset it it just reloads the screen to reset it. No error or anything but no new password and nothing is emailed to me. if I try to register then ?it tells me the email is already in use.

?

It seems my pc id has changed though the only change Ivan think of is a separate video card.

?

in the past my licences were emailed to m in a ziped file attachment.?

?

I bought long ago and use rarely so these changes slip past me. Is there any tricks that I am missing to get a new password..

?

Garry

?

?

?



This email is free from viruses and malware because protection is active.

?

?