Keyboard Shortcuts
Likes
- MachCNC
- Messages
Search
Re: parts counter
spencer@spencerserolls.com
two question. i did get it to work with a simple test program putting all the code for the part in a sub and calling it a number of times. once i realized that the B axis was not enabled and i enabled it, it worked :) how do i run a sub continuously instead of a fixed number of times??? it seems that the #111 variable needs to be initialized which is why i need a top level program and then a sub. if i don't use a sub and don't initialize the variable it does not work, program is constantly updating the B DRO. so i guess i do need to put all the code in a sub, right? but how do i keep it running indefinitely until i stop the top program?
?
?
Best regards, Spencer Chase 67550 Bell Springs Rd. Garberville, CA 95542 Postal service only. Laytonville, CA 95454 UPS only. Spencer@... Spencer@... Spencer@... (425) 791-0309 (707) 223-8212 ------ Original Message ------
From: "Martin Connelly" <martin.at.leasingham@...>
Sent: 2/15/2020 1:23:12 AM
Subject: Re: [MachCNC] parts counter
|
Re: parts counter
spencer@spencerserolls.com
great because i can't seem to get any screen editor to work. tried running in virtual box. i was ready to get the scale out which i might do anyway. i am ready to start making parts so i will check the diag screen.
?
?
Best regards, Spencer Chase 67550 Bell Springs Rd. Garberville, CA 95542 Postal service only. Laytonville, CA 95454 UPS only. Spencer@... Spencer@... Spencer@... (425) 791-0309 (707) 223-8212 ------ Original Message ------
From: "Martin Connelly" <martin.at.leasingham@...>
Sent: 2/15/2020 12:10:50 PM
Subject: Re: [MachCNC] parts counter If you use the b axis you can see the count on the diagnostics screen. No need to add the DRO to a screen then. |
Re: parts counter
spencer@spencerserolls.com
i think i just confirmed that none of the screen editors work on win 10 64 bit. so if i want to edit a screen, should i just try doing it with an xp computer? or maybe try it in virtual xp?? my only really nice computer with a good keyboard mouse and nice display is my win 10 computer.
?
?
Best regards, Spencer Chase 67550 Bell Springs Rd. Garberville, CA 95542 Postal service only. Laytonville, CA 95454 UPS only. Spencer@... Spencer@... Spencer@... (425) 791-0309 (707) 223-8212 ------ Original Message ------
From: "Spencer Chase" <spencer@...>
Sent: 2/15/2020 11:04:22 AM
Subject: Re[2]: [MachCNC] parts counter
|
Re: parts counter
spencer@spencerserolls.com
that looks like an easy solution. i am using the A axis. i should post a video some day. the machine is pretty neat but still full of bugs after just 7 years working on it.? i would like to add a B axis dro to the screen but might need to do some searching to find a computer that will run the screen editor. most of my computers are running win 10 now and i am almost certain that the screen editor does not work anymore. i looked at it briefly and could not get anything to work. i do have an xp machine running the router so i can probably do it there. any suggestions on the best way (which program etc) to edit a screen, possibly on a win 10 computer?
?
?
Best regards, Spencer Chase 67550 Bell Springs Rd. Garberville, CA 95542 Postal service only. Laytonville, CA 95454 UPS only. Spencer@... Spencer@... Spencer@... (425) 791-0309 (707) 223-8212 ------ Original Message ------
From: "Martin Connelly" <martin.at.leasingham@...>
Sent: 2/15/2020 1:23:12 AM
Subject: Re: [MachCNC] parts counter
|
Re: parts counter
spencer@spencerserolls.com
i was going to add an electrical counter but that would of course take time to get right and not just destroy switchs. could use a hall effect switch. i had a nice little counter on my punch press that worked that way but i can't find it. your suggestion has merit. i just happen to have a large digital platform scale that is not being used. it might even have parts counting as a feature. if not, all i need to do is to calculate the weight of the target number. the only reason i want to count parts is because it is horribly boring to make them and some times i can't wait until i have enough to ship.? this is a solution i can put into effect within minutes and allows me to use my few remaining brain cells for something more important. thanks for thinking outside the box.
?
?
Best regards, Spencer Chase 67550 Bell Springs Rd. Garberville, CA 95542 Postal service only. Laytonville, CA 95454 UPS only. Spencer@... Spencer@... Spencer@... (425) 791-0309 (707) 223-8212 ------ Original Message ------
From: "phill005" <phill05@...>
Sent: 2/15/2020 1:50:48 AM
Subject: Re: [MachCNC] parts counter
|
Re: parts counter
开云体育“I just thought of something that might work but it will not allow for decrementing. I could keep all the bad parts until I finish the job and then count them separately.” ? What about two bins one bin for good parts, one bin for bad parts and a set of weighing scales. |
Re: parts counter
It sounds like the parts you are talking about are not using the 4th axis A. If you set A to zero at the start of your loop you can have a counter that increases by 1 at the end of the loop and moves A to that value. The A axis DRO will then act as a visible loop count.
Here is what I expect it to have added to the code:- #111=[0] ; pick a suitable number for the subroutine counter G0 A 0 ; set A to zero, if necessary you can put an M1 pause here to remind you if A has a large value to set zero and restart. ; call the subroutine ; end program ;? subroutine #111=[#111 + 1] G0 A [#111] ; return from subroutine If you have not got the A axis set up then it should not be hard to set it up with a high speed to simulate it as required for this process.? If you are using A and are willing to modify the screen then use axis B and add the B axis DRO somewhere. Martin |
Re: parts counter
Stephen Gould
开云体育Spencer,
Interesting project, would you need to have a counter for each part type you made, or just the one currently on the cancel? The latter is easier, but you would still need to remember to reset if you changed the part.
Regards
Steve Gould
Hampshire
Uk
Get
From: MachCNC@groups.io <MachCNC@groups.io> on behalf of Tony Smith <ajsmith1968@...>
Sent: Saturday, February 15, 2020 4:08:54 AM To: MachCNC@groups.io <MachCNC@groups.io> Subject: Re: [MachCNC] parts counter ?
G-Code has a range of variables (#500-#1000 IIRC) where you can store stuff like that. ? Tony ? From: MachCNC@groups.io [mailto:MachCNC@groups.io]
On Behalf Of spencer@... ? I looked in the forums and did find "answers" to? this but nothing that did not seem like a lot of work and beyond my current understanding of how mach 3 works and how to hack it. So, the question is, is it possible to add a parts counter that keeps track of how many times a gcode is run? I can probably edit my screen as I have done it in the past and can probably re-figure out how the editor works. ? I would like to have an on screen counter either in the main program space or elsewhere and ideally would like to be able to decrement the counter in case a part was rejected. I am making a lot of little wooden parts and even if the job runs properly some parts are not good enough to keep because of things like out of square stock that was not noticed or excessive damage caused by crazy grain.? ? I have various electrical counters that i can use as a switch so if this will be a big project the simple electrical switch would be easier. I am currently using a counter app on my phone but the environment is too messy for the phone and I am not good at remembering to increment manually.? ? I just thought of something that might work but it will not allow for decrementing. I could keep all the bad parts until I finish the job and then count them separately. I have a foot switch that starts the program. I think it might have two internal switches so one could operate the counter. ? I also like programming Arduinos and might have something thrown together that I can convert to some sort of smart counter but I am running out of time for projects. Need to just get some work done and spend less time with distractions. ? Still a hopefully simple computer bed solution would be best. ? ? ? Best regards, Spencer Chase ? |
Re: parts counter
开云体育G-Code has a range of variables (#500-#1000 IIRC) where you can store stuff like that. ? Tony ? From: MachCNC@groups.io [mailto:MachCNC@groups.io] On Behalf Of spencer@...
Sent: Saturday, 15 February 2020 3:18 AM To: MachCNC@groups.io Subject: [MachCNC] parts counter ? I looked in the forums and did find "answers" to? this but nothing that did not seem like a lot of work and beyond my current understanding of how mach 3 works and how to hack it. So, the question is, is it possible to add a parts counter that keeps track of how many times a gcode is run? I can probably edit my screen as I have done it in the past and can probably re-figure out how the editor works. ? I would like to have an on screen counter either in the main program space or elsewhere and ideally would like to be able to decrement the counter in case a part was rejected. I am making a lot of little wooden parts and even if the job runs properly some parts are not good enough to keep because of things like out of square stock that was not noticed or excessive damage caused by crazy grain.? ? I have various electrical counters that i can use as a switch so if this will be a big project the simple electrical switch would be easier. I am currently using a counter app on my phone but the environment is too messy for the phone and I am not good at remembering to increment manually.? ? I just thought of something that might work but it will not allow for decrementing. I could keep all the bad parts until I finish the job and then count them separately. I have a foot switch that starts the program. I think it might have two internal switches so one could operate the counter. ? I also like programming Arduinos and might have something thrown together that I can convert to some sort of smart counter but I am running out of time for projects. Need to just get some work done and spend less time with distractions. ? Still a hopefully simple computer bed solution would be best. ? ? ? Best regards, Spencer Chase ? |
parts counter
spencer@spencerserolls.com
I looked in the forums and did find "answers" to? this but nothing that did not seem like a lot of work and beyond my current understanding of how mach 3 works and how to hack it. So, the question is, is it possible to add a parts counter that keeps track of how many times a gcode is run? I can probably edit my screen as I have done it in the past and can probably re-figure out how the editor works. I would like to have an on screen counter either in the main program space or elsewhere and ideally would like to be able to decrement the counter in case a part was rejected. I am making a lot of little wooden parts and even if the job runs properly some parts are not good enough to keep because of things like out of square stock that was not noticed or excessive damage caused by crazy grain.? I have various electrical counters that i can use as a switch so if this will be a big project the simple electrical switch would be easier. I am currently using a counter app on my phone but the environment is too messy for the phone and I am not good at remembering to increment manually.? I just thought of something that might work but it will not allow for decrementing. I could keep all the bad parts until I finish the job and then count them separately. I have a foot switch that starts the program. I think it might have two internal switches so one could operate the counter. I also like programming Arduinos and might have something thrown together that I can convert to some sort of smart counter but I am running out of time for projects. Need to just get some work done and spend less time with distractions. Still a hopefully simple computer bed solution would be best.
?
?
Best regards, Spencer Chase 67550 Bell Springs Rd. Garberville, CA 95542 Postal service only. Laytonville, CA 95454 UPS only. Spencer@... Spencer@... Spencer@... http://www.spencerserolls.com http://www.poodlex.com (425) 791-0309 (707) 223-8212 |
Re: NFS wizard edit password
I want to edit the actual output. the license is already established. ? |
Re: MPG & Mach4
开云体育Martin, Looks like the attachment did not come through. Dale On 2/8/2020 5:58 AM, Martin Connelly
wrote:
Found this on one of the universal pendant web pages. |
Re: MPG & Mach4
Have you considered a wireless hand held mini keyboard as a pendant. They are very cheap and I have seen a number of people using them as remote controllers for CNC machines. Search for "Rii i8" on Ebay to see them.? Also there are plug-ins for Xbox controllers that can be used as a pendant, see?
Martin |
Re: NFS wizard edit password
Do you just want a licence password to use them as that is different from editing them and is, as pointed out, not good for the commercial supplier. To some extent wizards are parameterised Gcode programs with a pretty face. If you can explain exactly what you want it should be possible to produce a suitable Gcode program.
Here is my example for crank shaft roughing prior to finishing with a lathe or grinder. If you want to see the toolpath in Mach3 you have to drag the window around to look at the yz plane.? This video shows it in action. Martin ; This code assumes the units are mm, may work with inches but not checked.
; It is essential that the cutter is long enough to pass between the webs when the pin is at its lowest point. ; y zero and z zero should be on the a axis centre line. ; Set x to suit your requirements for each pin. Set radius in the settings tab to zero and set config-toolpath-use radius for feedrate to off. M0????????????????????????????????????????????????????? ; Optional stop, set a axis value to zero if required to avoid long wait.
??????????????????????????????????????????????????????? ; The following parameters should be set by the user to suit the part being made. #1=[20] ; Bar diameter
#2=[14]? ; PCD of the crank pin #3=[6]? ; Crank pin diameter #4=[6]? ; Cutter diameter #8=[0]? ; Pin offset from TDC. #9=[1]? ; a axis rotation. Set this to -1/+1 if the a axis rotation is wrong direction. Check before cutting any material. #12=[250]?????????????????????????????????????????????? ; Set the speed to suit your cutter and material. ??????????????????????????????????????????????????????? ; The following are calculated parameters. #6=[[#1 /2] + #2]?????????????????????????????????????? ; Calculated z start height for first pass.
#7=[[#2 /2] + [#3 /2]]????????????????????????????????? ; Calculated z finish height for final pass. #5=[[#6 - #7] / #2]???????????????????????????????????? ; Calculated step size. ??????????????????????????????????????????????????????? ; The number of passes is taken as the pin pcd #2.
??????????????????????????????????????????????????????? ; This gives a step size close to 1mm but increases if the bar diameter is much larger than the pcd. f[#1] #10=[#2]??????????????????????????????????????????????? ; Step counter for looping the sub-routine. ??????????????????????????????????????????????????????? ; Used as a multiplier to set the z axis before each rotation. #11=[1]???????????????????????????????????????????????? ; Adds 360 degrees to the angle each rev to save rotating backwards each pass. ??????????????????????????????????????????????????????? ; Initialisation
G0 G49 G40.1 G64 G17 G80 G50 G90 G98 G91 G91.1 M6 T1 M03 S4000 G43 G19???????????????????????????????????????????????????? ; Set circular motion to the yz plane.
??????????????????????????????????????????????????????? ; Start motion
G0 z[#6 + 2]??????????????????????????????????????????? ; Go to initial start height.
G0 a[#9*#8]???????????????????????????????????????????? ; Move a axis to TDC plus offset. M98 P003 Q#2??????????????????????????????????????????? ; Loop subroutine #2 times ??????????????????????????????????????????????????????? ; Polish passes.
G1 z[#7 + #5*#10] y[#4 /-4] F[#12]????????????????????? ; Reposition cutter to clean up more of the pin.
G03 a[[#9 *#11 *360] + [#9 *#8]] y[#4 /-4] k[#2 /-2] F[#12 *360 /[3.1415*#1]]?? ; Circular motion 360 degrees. #11=[#11 +1]??????????????????????????????????????????? ; Increase degrees multiplier for final rotation.
G1 z[#7 + #5*#10] y[#4 /-2] F[#12]????????????????????? ; Reposition cutter to clean up the centre of the pin.
G03 a[[#9 *#11 *360] + [#9 *#8]] y[#4 /-2] k[#2 /-2] F[#12 *360 /[3.1415*#1]]?? ; Circular motion 360 degrees. G0 z[#6 + 2]??????????????????????????????????????????? ; Go to initial start height.
G17???????????????????????????????????????????????????? ; Set circular motion back to the xy plane. M5 M9?????????????????????????????????????????????????? ; Turn off spindle, coolant etc as required. M30???????????????????????????????????????????????????? ; End program O003 ; Circular motion subroutine. G1 y[#4 *-1.5 *#9] F[#12]?????????????????????????????? ; Move slightly to one side.
#10=[#10 - 1]?????????????????????????????????????????? ; Multiplier for z height. G1 z[#7 + #5*#10] y0 f[#12]????????????????????????? ; Ramp down to inital cutting position for circular motion. G03 a[[#9 *#11 *360] + [#9 *#8]] y0 k[#2 /-2] F[#12 *360 /[3.1415*#1]]??? ; Circular motion in yz plane 360 degrees. #11=[#11 +1]??????????????????????????????????????????? ; Increase degrees multiplier for next rotation. M99???????????????????????????????????????????????????? ; End subroutine. |
Re: changing direction
spencer@spencerserolls.com
thanks 10-4, over :) hugs ?
Best regards, Spencer Chase 67550 Bell Springs Rd. Garberville, CA 95542 Postal service only. Laytonville, CA 95454 UPS only. Spencer@... Spencer@... Spencer@... (425) 791-0309 (707) 223-8212 ------ Original Message ------
From: "mike allen" <animal@...>
Sent: 2/11/2020 6:36:09 PM
Subject: Re: [MachCNC] changing direction
|
Re: changing direction
toggle quoted message
Show quoted text
|
Re: changing direction
spencer@spencerserolls.com
also why do you think i think i am better than anyone else on the list? i have mainly asked questions for the experts to answer and rarely have answers. i am trying to hack my way through all of this and am grateful that there are people who really understand how it all works and can provide much need guidance.
?
?
Best regards, Spencer Chase 67550 Bell Springs Rd. Garberville, CA 95542 Postal service only. Laytonville, CA 95454 UPS only. Spencer@... Spencer@... Spencer@... (425) 791-0309 (707) 223-8212 ------ Original Message ------
From: "mike allen" <animal@...>
Sent: 2/11/2020 6:23:42 PM
Subject: Re: [MachCNC] changing direction
|