Re: [Emc-users] Classic ladder compare blocks..
Hahaha yep founds those issues a few weeks ago With the compare functions On Wed, 30 Nov 2022, 06:25 Sam Sokolik, wrote: > also - you can't have spaces.. or it fails with no error. But once you > know the little nuances - it is pretty cool! > > On Tue, Nov 29, 2022 at 11:21 AM Sam Sokolik wrote: > > > the comma certainly tripped me up.. This isn't my first or even most > > complicated ladder - but buy - it has been a few years. Have to re-learn > > it all over. > > > > sam > > > > On Tue, Nov 29, 2022 at 11:05 AM Todd Zuercher > > wrote: > > > >> I think I had tried using the & symbol, and wasn't able to make it work, > >> but it is possible I was missing the key "," in the phrase (it was a > long > >> time ago.) > >> > >> Todd Zuercher > >> P. Graham Dunn Inc. > >> 630 Henry Street > >> Dalton, Ohio 44618 > >> Phone: (330)828-2105ext. 2031 > >> > >> -Original Message- > >> From: Sam Sokolik > >> Sent: Tuesday, November 29, 2022 11:55 AM > >> To: Enhanced Machine Controller (EMC) > >> Subject: Re: [Emc-users] Classic ladder compare blocks.. > >> > >> [EXTERNAL EMAIL] Be sure links are safe. > >> > >> In the manual - they say you can 'and' and 'or' and such.. You need a , > >> then the operator.. But I think maybe the limit is 2.. > >> > >> > >> > https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Flinuxcnc.org%2Fdocs%2Fstable%2Fhtml%2Fladder%2Fclassic-ladder.html%23_compare&data=05%7C01%7Ctoddz%40pgrahamdunn.com%7C257d76eef1444be9420808dad22d%7C5758544c573f47cebee96c3e0806fb43%7C0%7C0%7C638053377946996653%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=NtbqLQIRX68k8nj16AoAmkS0x4hS%2BKwHr8CjM6EIhhA%3D&reserved=0 > >> > >> > >>- > >> > >>(, ) separate into groups example %IF1=2,&%IF2<5 in pseudo code > >>translates to if %IF1 is equal to 2 and %IF2 is less than 5 then the > >>comparison is true. Note the comma seperating the two groups of > >>comparisions. > >> > >> > >> A broad google search didn't bring up anything.. > >> > >> sam > >> > >> On Tue, Nov 29, 2022 at 9:04 AM Todd Zuercher > >> wrote: > >> > >> > Oh I misunderstood your question. Yes I think a single variable > >> > comparison block is limited to only a single comparison of a variable > >> > to one constant or another variable. I am surprised that it worked > >> > with the last two compares combined into a single block. So for your > >> > row of logic below I would have thought it would require 3 comparison > >> > blocks in a row on the same line. One each for %IW0<%W0, and %IW0>0, > >> > and %IW0<7. Are you certain your logic worked completely, and one or > >> > both of the last two were not ignored. > >> > > >> > Todd Zuercher > >> > P. Graham Dunn Inc. > >> > 630 Henry Street > >> > Dalton, Ohio 44618 > >> > Phone: (330)828-2105ext. 2031 > >> > > >> > -Original Message- > >> > From: Sam Sokolik > >> > Sent: Monday, November 28, 2022 8:57 PM > >> > To: Enhanced Machine Controller (EMC) > >> > > >> > Subject: [Emc-users] Classic ladder compare blocks.. > >> > > >> > [EXTERNAL EMAIL] Be sure links are safe. > >> > > >> > It doesn't say anywhere in the linuxcnc manual for classic ladder - > >> > but is there a limit for the compare block to just 2 compares? > >> > ie.. > >> > > >> > I had this in the compare > >> > %IW0<%W0,&%IW0>0,&IW0<7 > >> > For the life of me the logic just wasn't working. > >> > Finally I put it in 2 separate compares.. > >> > %IW0<%W0 in one.. followed by %IW0>0,&IW0<7 > >> > > >> > This worked as expected.. > >> > > >> > BTW - the old emco turret with no feedback should work pretty darn > >> > well with a little ladder logic.. Only 1 output. (logic 0 runs the > >> turret into > >> > the pawl through a current limiting resistor.. logic 1 runs the > turret > >> > clockwise to the next tool.) > >> > > >> > > >&g
Re: [Emc-users] Classic ladder compare blocks..
also - you can't have spaces.. or it fails with no error. But once you know the little nuances - it is pretty cool! On Tue, Nov 29, 2022 at 11:21 AM Sam Sokolik wrote: > the comma certainly tripped me up.. This isn't my first or even most > complicated ladder - but buy - it has been a few years. Have to re-learn > it all over. > > sam > > On Tue, Nov 29, 2022 at 11:05 AM Todd Zuercher > wrote: > >> I think I had tried using the & symbol, and wasn't able to make it work, >> but it is possible I was missing the key "," in the phrase (it was a long >> time ago.) >> >> Todd Zuercher >> P. Graham Dunn Inc. >> 630 Henry Street >> Dalton, Ohio 44618 >> Phone: (330)828-2105ext. 2031 >> >> -Original Message- >> From: Sam Sokolik >> Sent: Tuesday, November 29, 2022 11:55 AM >> To: Enhanced Machine Controller (EMC) >> Subject: Re: [Emc-users] Classic ladder compare blocks.. >> >> [EXTERNAL EMAIL] Be sure links are safe. >> >> In the manual - they say you can 'and' and 'or' and such.. You need a , >> then the operator.. But I think maybe the limit is 2.. >> >> >> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Flinuxcnc.org%2Fdocs%2Fstable%2Fhtml%2Fladder%2Fclassic-ladder.html%23_compare&data=05%7C01%7Ctoddz%40pgrahamdunn.com%7C257d76eef1444be9420808dad22d%7C5758544c573f47cebee96c3e0806fb43%7C0%7C0%7C638053377946996653%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=NtbqLQIRX68k8nj16AoAmkS0x4hS%2BKwHr8CjM6EIhhA%3D&reserved=0 >> >> >>- >> >>(, ) separate into groups example %IF1=2,&%IF2<5 in pseudo code >>translates to if %IF1 is equal to 2 and %IF2 is less than 5 then the >>comparison is true. Note the comma seperating the two groups of >>comparisions. >> >> >> A broad google search didn't bring up anything.. >> >> sam >> >> On Tue, Nov 29, 2022 at 9:04 AM Todd Zuercher >> wrote: >> >> > Oh I misunderstood your question. Yes I think a single variable >> > comparison block is limited to only a single comparison of a variable >> > to one constant or another variable. I am surprised that it worked >> > with the last two compares combined into a single block. So for your >> > row of logic below I would have thought it would require 3 comparison >> > blocks in a row on the same line. One each for %IW0<%W0, and %IW0>0, >> > and %IW0<7. Are you certain your logic worked completely, and one or >> > both of the last two were not ignored. >> > >> > Todd Zuercher >> > P. Graham Dunn Inc. >> > 630 Henry Street >> > Dalton, Ohio 44618 >> > Phone: (330)828-2105ext. 2031 >> > >> > -Original Message- >> > From: Sam Sokolik >> > Sent: Monday, November 28, 2022 8:57 PM >> > To: Enhanced Machine Controller (EMC) >> > >> > Subject: [Emc-users] Classic ladder compare blocks.. >> > >> > [EXTERNAL EMAIL] Be sure links are safe. >> > >> > It doesn't say anywhere in the linuxcnc manual for classic ladder - >> > but is there a limit for the compare block to just 2 compares? >> > ie.. >> > >> > I had this in the compare >> > %IW0<%W0,&%IW0>0,&IW0<7 >> > For the life of me the logic just wasn't working. >> > Finally I put it in 2 separate compares.. >> > %IW0<%W0 in one.. followed by %IW0>0,&IW0<7 >> > >> > This worked as expected.. >> > >> > BTW - the old emco turret with no feedback should work pretty darn >> > well with a little ladder logic.. Only 1 output. (logic 0 runs the >> turret into >> > the pawl through a current limiting resistor.. logic 1 runs the turret >> > clockwise to the next tool.) >> > >> > >> > https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww. >> > youtube.com%2Fwatch%3Fv%3DJGGPob1iKj8&data=05%7C01%7Ctoddz%40pgrah >> > amdunn.com%7C257d76eef1444be9420808dad22d%7C5758544c573f47cebee96c >> > 3e0806fb43%7C0%7C0%7C638053377947152901%7CUnknown%7CTWFpbGZsb3d8eyJWIj >> > oiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C >> > %7C%7C&sdata=cif23wgzE%2FVAGPkRunpoNKJIEhXWuelmjvRBaNQKeaI%3D& >> > reserved=0 >> > >> > The original Emco compact 5 CNC, when you would call a tool - say you >>
Re: [Emc-users] Classic ladder compare blocks..
the comma certainly tripped me up.. This isn't my first or even most complicated ladder - but buy - it has been a few years. Have to re-learn it all over. sam On Tue, Nov 29, 2022 at 11:05 AM Todd Zuercher wrote: > I think I had tried using the & symbol, and wasn't able to make it work, > but it is possible I was missing the key "," in the phrase (it was a long > time ago.) > > Todd Zuercher > P. Graham Dunn Inc. > 630 Henry Street > Dalton, Ohio 44618 > Phone: (330)828-2105ext. 2031 > > -Original Message- > From: Sam Sokolik > Sent: Tuesday, November 29, 2022 11:55 AM > To: Enhanced Machine Controller (EMC) > Subject: Re: [Emc-users] Classic ladder compare blocks.. > > [EXTERNAL EMAIL] Be sure links are safe. > > In the manual - they say you can 'and' and 'or' and such.. You need a , > then the operator.. But I think maybe the limit is 2.. > > > https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Flinuxcnc.org%2Fdocs%2Fstable%2Fhtml%2Fladder%2Fclassic-ladder.html%23_compare&data=05%7C01%7Ctoddz%40pgrahamdunn.com%7C257d76eef1444be9420808dad22d%7C5758544c573f47cebee96c3e0806fb43%7C0%7C0%7C638053377946996653%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=NtbqLQIRX68k8nj16AoAmkS0x4hS%2BKwHr8CjM6EIhhA%3D&reserved=0 > > >- > >(, ) separate into groups example %IF1=2,&%IF2<5 in pseudo code >translates to if %IF1 is equal to 2 and %IF2 is less than 5 then the >comparison is true. Note the comma seperating the two groups of >comparisions. > > > A broad google search didn't bring up anything.. > > sam > > On Tue, Nov 29, 2022 at 9:04 AM Todd Zuercher > wrote: > > > Oh I misunderstood your question. Yes I think a single variable > > comparison block is limited to only a single comparison of a variable > > to one constant or another variable. I am surprised that it worked > > with the last two compares combined into a single block. So for your > > row of logic below I would have thought it would require 3 comparison > > blocks in a row on the same line. One each for %IW0<%W0, and %IW0>0, > > and %IW0<7. Are you certain your logic worked completely, and one or > > both of the last two were not ignored. > > > > Todd Zuercher > > P. Graham Dunn Inc. > > 630 Henry Street > > Dalton, Ohio 44618 > > Phone: (330)828-2105ext. 2031 > > > > -Original Message- > > From: Sam Sokolik > > Sent: Monday, November 28, 2022 8:57 PM > > To: Enhanced Machine Controller (EMC) > > > > Subject: [Emc-users] Classic ladder compare blocks.. > > > > [EXTERNAL EMAIL] Be sure links are safe. > > > > It doesn't say anywhere in the linuxcnc manual for classic ladder - > > but is there a limit for the compare block to just 2 compares? > > ie.. > > > > I had this in the compare > > %IW0<%W0,&%IW0>0,&IW0<7 > > For the life of me the logic just wasn't working. > > Finally I put it in 2 separate compares.. > > %IW0<%W0 in one.. followed by %IW0>0,&IW0<7 > > > > This worked as expected.. > > > > BTW - the old emco turret with no feedback should work pretty darn > > well with a little ladder logic.. Only 1 output. (logic 0 runs the > turret into > > the pawl through a current limiting resistor.. logic 1 runs the turret > > clockwise to the next tool.) > > > > > > https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww. > > youtube.com%2Fwatch%3Fv%3DJGGPob1iKj8&data=05%7C01%7Ctoddz%40pgrah > > amdunn.com%7C257d76eef1444be9420808dad22d%7C5758544c573f47cebee96c > > 3e0806fb43%7C0%7C0%7C638053377947152901%7CUnknown%7CTWFpbGZsb3d8eyJWIj > > oiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C > > %7C%7C&sdata=cif23wgzE%2FVAGPkRunpoNKJIEhXWuelmjvRBaNQKeaI%3D& > > reserved=0 > > > > The original Emco compact 5 CNC, when you would call a tool - say you are > > at tool 1 and going to tool 3 - would stop at tool 2 and index. (it > stops > > at every tool location between the one it was at and the one you > > called) > > > > I think this was probably convenience as you need 2 different time > > delays > > - the initial one to go to the next one.. (slightly longer than every > > pocket after the first..) I am currently using 2.2 seconds for the > > first tool - > > 1.8 seconds for every tool after. > > > > kinda neat. > > > > __
Re: [Emc-users] Classic ladder compare blocks..
I think I had tried using the & symbol, and wasn't able to make it work, but it is possible I was missing the key "," in the phrase (it was a long time ago.) Todd Zuercher P. Graham Dunn Inc. 630 Henry Street Dalton, Ohio 44618 Phone: (330)828-2105ext. 2031 -Original Message- From: Sam Sokolik Sent: Tuesday, November 29, 2022 11:55 AM To: Enhanced Machine Controller (EMC) Subject: Re: [Emc-users] Classic ladder compare blocks.. [EXTERNAL EMAIL] Be sure links are safe. In the manual - they say you can 'and' and 'or' and such.. You need a , then the operator.. But I think maybe the limit is 2.. https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Flinuxcnc.org%2Fdocs%2Fstable%2Fhtml%2Fladder%2Fclassic-ladder.html%23_compare&data=05%7C01%7Ctoddz%40pgrahamdunn.com%7C257d76eef1444be9420808dad22d%7C5758544c573f47cebee96c3e0806fb43%7C0%7C0%7C638053377946996653%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=NtbqLQIRX68k8nj16AoAmkS0x4hS%2BKwHr8CjM6EIhhA%3D&reserved=0 - (, ) separate into groups example %IF1=2,&%IF2<5 in pseudo code translates to if %IF1 is equal to 2 and %IF2 is less than 5 then the comparison is true. Note the comma seperating the two groups of comparisions. A broad google search didn't bring up anything.. sam On Tue, Nov 29, 2022 at 9:04 AM Todd Zuercher wrote: > Oh I misunderstood your question. Yes I think a single variable > comparison block is limited to only a single comparison of a variable > to one constant or another variable. I am surprised that it worked > with the last two compares combined into a single block. So for your > row of logic below I would have thought it would require 3 comparison > blocks in a row on the same line. One each for %IW0<%W0, and %IW0>0, > and %IW0<7. Are you certain your logic worked completely, and one or > both of the last two were not ignored. > > Todd Zuercher > P. Graham Dunn Inc. > 630 Henry Street > Dalton, Ohio 44618 > Phone: (330)828-2105ext. 2031 > > -Original Message- > From: Sam Sokolik > Sent: Monday, November 28, 2022 8:57 PM > To: Enhanced Machine Controller (EMC) > > Subject: [Emc-users] Classic ladder compare blocks.. > > [EXTERNAL EMAIL] Be sure links are safe. > > It doesn't say anywhere in the linuxcnc manual for classic ladder - > but is there a limit for the compare block to just 2 compares? > ie.. > > I had this in the compare > %IW0<%W0,&%IW0>0,&IW0<7 > For the life of me the logic just wasn't working. > Finally I put it in 2 separate compares.. > %IW0<%W0 in one.. followed by %IW0>0,&IW0<7 > > This worked as expected.. > > BTW - the old emco turret with no feedback should work pretty darn > well with a little ladder logic.. Only 1 output. (logic 0 runs the turret > into > the pawl through a current limiting resistor.. logic 1 runs the turret > clockwise to the next tool.) > > > https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww. > youtube.com%2Fwatch%3Fv%3DJGGPob1iKj8&data=05%7C01%7Ctoddz%40pgrah > amdunn.com%7C257d76eef1444be9420808dad22d%7C5758544c573f47cebee96c > 3e0806fb43%7C0%7C0%7C638053377947152901%7CUnknown%7CTWFpbGZsb3d8eyJWIj > oiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C > %7C%7C&sdata=cif23wgzE%2FVAGPkRunpoNKJIEhXWuelmjvRBaNQKeaI%3D& > reserved=0 > > The original Emco compact 5 CNC, when you would call a tool - say you are > at tool 1 and going to tool 3 - would stop at tool 2 and index. (it stops > at every tool location between the one it was at and the one you > called) > > I think this was probably convenience as you need 2 different time > delays > - the initial one to go to the next one.. (slightly longer than every > pocket after the first..) I am currently using 2.2 seconds for the > first tool - > 1.8 seconds for every tool after. > > kinda neat. > > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > > https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist > s.sourceforge.net%2Flists%2Flistinfo%2Femc-users&data=05%7C01%7Cto > ddz%40pgrahamdunn.com%7C257d76eef1444be9420808dad22d%7C5758544c573 > f47cebee96c3e0806fb43%7C0%7C0%7C638053377947152901%7CUnknown%7CTWFpbGZ > sb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3 > D%7C3000%7C%7C%7C&sdata=v4CiNH2ZM9M7Yd8nANPRBAsjCmliUa9C4BetsWZOn0 > Y%3D&reserved=0 > > > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > ht
Re: [Emc-users] Classic ladder compare blocks..
I still remember the feeling of the first successful turret index on my pc turn 55 😀 Phil T. The Feral Engineer Check out my LinuxCNC tutorials, machine builds and other antics at www.youtube.com/c/theferalengineer Help support my channel efforts and coffee addiction: www.patreon.com/theferalengineer Order one of the coolest label makers on the market at http://labelworks.epson.com, use coupon code "theferalengineer" and receive 20% off of your order 🙂 On Mon, Nov 28, 2022, 9:01 PM Sam Sokolik wrote: > It doesn't say anywhere in the linuxcnc manual for classic ladder - but is > there a limit for the compare block to just 2 compares? > ie.. > > I had this in the compare > %IW0<%W0,&%IW0>0,&IW0<7 > For the life of me the logic just wasn't working. > Finally I put it in 2 separate compares.. > %IW0<%W0 in one.. followed by %IW0>0,&IW0<7 > > This worked as expected.. > > BTW - the old emco turret with no feedback should work pretty darn well > with a little ladder logic.. Only 1 output. (logic 0 runs the turret into > the pawl through a current limiting resistor.. logic 1 runs the turret > clockwise to the next tool.) > > https://www.youtube.com/watch?v=JGGPob1iKj8 > > The original Emco compact 5 CNC, when you would call a tool - say you are > at tool 1 and going to tool 3 - would stop at tool 2 and index. (it stops > at every tool location between the one it was at and the one you called) > > I think this was probably convenience as you need 2 different time delays - > the initial one to go to the next one.. (slightly longer than every pocket > after the first..) I am currently using 2.2 seconds for the first tool - > 1.8 seconds for every tool after. > > kinda neat. > > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Classic ladder compare blocks..
In the manual - they say you can 'and' and 'or' and such.. You need a , then the operator.. But I think maybe the limit is 2.. http://linuxcnc.org/docs/stable/html/ladder/classic-ladder.html#_compare - (, ) separate into groups example %IF1=2,&%IF2<5 in pseudo code translates to if %IF1 is equal to 2 and %IF2 is less than 5 then the comparison is true. Note the comma seperating the two groups of comparisions. A broad google search didn't bring up anything.. sam On Tue, Nov 29, 2022 at 9:04 AM Todd Zuercher wrote: > Oh I misunderstood your question. Yes I think a single variable comparison > block is limited to only a single comparison of a variable to one constant > or another variable. I am surprised that it worked with the last two > compares combined into a single block. So for your row of logic below I > would have thought it would require 3 comparison blocks in a row on the > same line. One each for %IW0<%W0, and %IW0>0, and %IW0<7. Are you certain > your logic worked completely, and one or both of the last two were not > ignored. > > Todd Zuercher > P. Graham Dunn Inc. > 630 Henry Street > Dalton, Ohio 44618 > Phone: (330)828-2105ext. 2031 > > -Original Message- > From: Sam Sokolik > Sent: Monday, November 28, 2022 8:57 PM > To: Enhanced Machine Controller (EMC) > Subject: [Emc-users] Classic ladder compare blocks.. > > [EXTERNAL EMAIL] Be sure links are safe. > > It doesn't say anywhere in the linuxcnc manual for classic ladder - but is > there a limit for the compare block to just 2 compares? > ie.. > > I had this in the compare > %IW0<%W0,&%IW0>0,&IW0<7 > For the life of me the logic just wasn't working. > Finally I put it in 2 separate compares.. > %IW0<%W0 in one.. followed by %IW0>0,&IW0<7 > > This worked as expected.. > > BTW - the old emco turret with no feedback should work pretty darn well > with a little ladder logic.. Only 1 output. (logic 0 runs the turret into > the pawl through a current limiting resistor.. logic 1 runs the turret > clockwise to the next tool.) > > > https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DJGGPob1iKj8&data=05%7C01%7Ctoddz%40pgrahamdunn.com%7C0fa3074c034248ba60d508dad1ad2e3a%7C5758544c573f47cebee96c3e0806fb43%7C0%7C0%7C638052838992711450%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=B9AYShdhN79RyUPXJrTdSYeNycxAnDlMyFFgo6mdgDA%3D&reserved=0 > > The original Emco compact 5 CNC, when you would call a tool - say you are > at tool 1 and going to tool 3 - would stop at tool 2 and index. (it stops > at every tool location between the one it was at and the one you called) > > I think this was probably convenience as you need 2 different time delays > - the initial one to go to the next one.. (slightly longer than every > pocket after the first..) I am currently using 2.2 seconds for the first > tool - > 1.8 seconds for every tool after. > > kinda neat. > > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > > https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Femc-users&data=05%7C01%7Ctoddz%40pgrahamdunn.com%7C0fa3074c034248ba60d508dad1ad2e3a%7C5758544c573f47cebee96c3e0806fb43%7C0%7C0%7C638052838992711450%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=aaOUNvxcdaW9Kw%2F%2FZtos6aGo98LDtAr4jRK7pO22NDs%3D&reserved=0 > > > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Classic ladder compare blocks..
Oh I misunderstood your question. Yes I think a single variable comparison block is limited to only a single comparison of a variable to one constant or another variable. I am surprised that it worked with the last two compares combined into a single block. So for your row of logic below I would have thought it would require 3 comparison blocks in a row on the same line. One each for %IW0<%W0, and %IW0>0, and %IW0<7. Are you certain your logic worked completely, and one or both of the last two were not ignored. Todd Zuercher P. Graham Dunn Inc. 630 Henry Street Dalton, Ohio 44618 Phone: (330)828-2105ext. 2031 -Original Message- From: Sam Sokolik Sent: Monday, November 28, 2022 8:57 PM To: Enhanced Machine Controller (EMC) Subject: [Emc-users] Classic ladder compare blocks.. [EXTERNAL EMAIL] Be sure links are safe. It doesn't say anywhere in the linuxcnc manual for classic ladder - but is there a limit for the compare block to just 2 compares? ie.. I had this in the compare %IW0<%W0,&%IW0>0,&IW0<7 For the life of me the logic just wasn't working. Finally I put it in 2 separate compares.. %IW0<%W0 in one.. followed by %IW0>0,&IW0<7 This worked as expected.. BTW - the old emco turret with no feedback should work pretty darn well with a little ladder logic.. Only 1 output. (logic 0 runs the turret into the pawl through a current limiting resistor.. logic 1 runs the turret clockwise to the next tool.) https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DJGGPob1iKj8&data=05%7C01%7Ctoddz%40pgrahamdunn.com%7C0fa3074c034248ba60d508dad1ad2e3a%7C5758544c573f47cebee96c3e0806fb43%7C0%7C0%7C638052838992711450%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=B9AYShdhN79RyUPXJrTdSYeNycxAnDlMyFFgo6mdgDA%3D&reserved=0 The original Emco compact 5 CNC, when you would call a tool - say you are at tool 1 and going to tool 3 - would stop at tool 2 and index. (it stops at every tool location between the one it was at and the one you called) I think this was probably convenience as you need 2 different time delays - the initial one to go to the next one.. (slightly longer than every pocket after the first..) I am currently using 2.2 seconds for the first tool - 1.8 seconds for every tool after. kinda neat. ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Femc-users&data=05%7C01%7Ctoddz%40pgrahamdunn.com%7C0fa3074c034248ba60d508dad1ad2e3a%7C5758544c573f47cebee96c3e0806fb43%7C0%7C0%7C638052838992711450%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=aaOUNvxcdaW9Kw%2F%2FZtos6aGo98LDtAr4jRK7pO22NDs%3D&reserved=0 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Classic ladder compare blocks..
The CL program I have running on our machine has at least 20 different variable comparisons. There are even 6 in a single rung with 4 or branches and 2 pairs anded together. So yes you can use more than two, and as far as I know there is no practical limit. Todd Zuercher P. Graham Dunn Inc. 630 Henry Street Dalton, Ohio 44618 Phone: (330)828-2105ext. 2031 -Original Message- From: Sam Sokolik Sent: Monday, November 28, 2022 8:57 PM To: Enhanced Machine Controller (EMC) Subject: [Emc-users] Classic ladder compare blocks.. [EXTERNAL EMAIL] Be sure links are safe. It doesn't say anywhere in the linuxcnc manual for classic ladder - but is there a limit for the compare block to just 2 compares? ie.. I had this in the compare %IW0<%W0,&%IW0>0,&IW0<7 For the life of me the logic just wasn't working. Finally I put it in 2 separate compares.. %IW0<%W0 in one.. followed by %IW0>0,&IW0<7 This worked as expected.. BTW - the old emco turret with no feedback should work pretty darn well with a little ladder logic.. Only 1 output. (logic 0 runs the turret into the pawl through a current limiting resistor.. logic 1 runs the turret clockwise to the next tool.) https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DJGGPob1iKj8&data=05%7C01%7Ctoddz%40pgrahamdunn.com%7C0fa3074c034248ba60d508dad1ad2e3a%7C5758544c573f47cebee96c3e0806fb43%7C0%7C0%7C638052838992711450%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=B9AYShdhN79RyUPXJrTdSYeNycxAnDlMyFFgo6mdgDA%3D&reserved=0 The original Emco compact 5 CNC, when you would call a tool - say you are at tool 1 and going to tool 3 - would stop at tool 2 and index. (it stops at every tool location between the one it was at and the one you called) I think this was probably convenience as you need 2 different time delays - the initial one to go to the next one.. (slightly longer than every pocket after the first..) I am currently using 2.2 seconds for the first tool - 1.8 seconds for every tool after. kinda neat. ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Femc-users&data=05%7C01%7Ctoddz%40pgrahamdunn.com%7C0fa3074c034248ba60d508dad1ad2e3a%7C5758544c573f47cebee96c3e0806fb43%7C0%7C0%7C638052838992711450%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=aaOUNvxcdaW9Kw%2F%2FZtos6aGo98LDtAr4jRK7pO22NDs%3D&reserved=0 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Classic ladder compare blocks..
I'm pretty sure no. I thought the machine I have using CL uses several more than 2 compares, but I'll have to check (it was several years ago I wrote that ladder.) Todd Zuercher P. Graham Dunn Inc. 630 Henry Street Dalton, Ohio 44618 Phone: (330)828-2105ext. 2031 -Original Message- From: Sam Sokolik Sent: Monday, November 28, 2022 8:57 PM To: Enhanced Machine Controller (EMC) Subject: [Emc-users] Classic ladder compare blocks.. [EXTERNAL EMAIL] Be sure links are safe. It doesn't say anywhere in the linuxcnc manual for classic ladder - but is there a limit for the compare block to just 2 compares? ie.. I had this in the compare %IW0<%W0,&%IW0>0,&IW0<7 For the life of me the logic just wasn't working. Finally I put it in 2 separate compares.. %IW0<%W0 in one.. followed by %IW0>0,&IW0<7 This worked as expected.. BTW - the old emco turret with no feedback should work pretty darn well with a little ladder logic.. Only 1 output. (logic 0 runs the turret into the pawl through a current limiting resistor.. logic 1 runs the turret clockwise to the next tool.) https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DJGGPob1iKj8&data=05%7C01%7Ctoddz%40pgrahamdunn.com%7C0fa3074c034248ba60d508dad1ad2e3a%7C5758544c573f47cebee96c3e0806fb43%7C0%7C0%7C638052838992711450%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=B9AYShdhN79RyUPXJrTdSYeNycxAnDlMyFFgo6mdgDA%3D&reserved=0 The original Emco compact 5 CNC, when you would call a tool - say you are at tool 1 and going to tool 3 - would stop at tool 2 and index. (it stops at every tool location between the one it was at and the one you called) I think this was probably convenience as you need 2 different time delays - the initial one to go to the next one.. (slightly longer than every pocket after the first..) I am currently using 2.2 seconds for the first tool - 1.8 seconds for every tool after. kinda neat. ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Femc-users&data=05%7C01%7Ctoddz%40pgrahamdunn.com%7C0fa3074c034248ba60d508dad1ad2e3a%7C5758544c573f47cebee96c3e0806fb43%7C0%7C0%7C638052838992711450%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=aaOUNvxcdaW9Kw%2F%2FZtos6aGo98LDtAr4jRK7pO22NDs%3D&reserved=0 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Classic ladder compare blocks..
It doesn't say anywhere in the linuxcnc manual for classic ladder - but is there a limit for the compare block to just 2 compares? ie.. I had this in the compare %IW0<%W0,&%IW0>0,&IW0<7 For the life of me the logic just wasn't working. Finally I put it in 2 separate compares.. %IW0<%W0 in one.. followed by %IW0>0,&IW0<7 This worked as expected.. BTW - the old emco turret with no feedback should work pretty darn well with a little ladder logic.. Only 1 output. (logic 0 runs the turret into the pawl through a current limiting resistor.. logic 1 runs the turret clockwise to the next tool.) https://www.youtube.com/watch?v=JGGPob1iKj8 The original Emco compact 5 CNC, when you would call a tool - say you are at tool 1 and going to tool 3 - would stop at tool 2 and index. (it stops at every tool location between the one it was at and the one you called) I think this was probably convenience as you need 2 different time delays - the initial one to go to the next one.. (slightly longer than every pocket after the first..) I am currently using 2.2 seconds for the first tool - 1.8 seconds for every tool after. kinda neat. ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users