Re: [Emc-users] Call an M Code from a Classic ladder output
On 11 November 2015 at 13:13, Rick Lairwrote: > The M40 is going to "sets return-tool true", and I was going to use the > the M39 to "sets return-tool false". Unless there is a better way to > reset the signal without calling the M39? Why not net a classic ladder output directly to whatever pins are connected to the return-tool signal? -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Call an M Code from a Classic ladder output
I did answer my own question, I added a dwell time, then called the m39 from the m40, using subroutines. John, I am not sure how to use the M6 command to put the currently loaded tool away, back into the carousel. I am just doing this that way if the operator knows he needs to shut linuxcnc down, he can put the loaded tool away, and start it back up, without a tool in the spindle, and not confuse the hell out of the ladder logic and carousel component. I tried starting it up and using the M61QXX command, which works, but when you go to change the tool, the carousel is still sitting on pocket 1, ( haven't figured out how yet, I specify yet, to get the carousel to index to pocket XX that is set with the M61 command ) so it will try to put tool XX, into pocket 1, which would probably already have a tool in it. On 11/11/2015 8:25 AM, John Thornton wrote: > I just have to wonder why your not using iocontrol.0.tool-change and > iocontrol.0.tool-changed or am I totally off track and not understanding > the application? > > JT > > On 11/11/2015 7:13 AM, Rick Lair wrote: >> Good Morning Gentleman, >> >> Is it possible, to call an m-code using a classicladder output? >> >> Now that I have my tool changer working, I am trying to work into my >> ladder logic the ability to call a M40, and it will put the tool that is >> in the spindle back into the carousel, and then when the logic is >> finished, have classicladder call an M39. >> >> The M40 is going to "sets return-tool true", and I was going to use the >> the M39 to "sets return-tool false". Unless there is a better way to >> reset the signal without calling the M39? Really I need the M40 to pulse >> the "return-tool" signal true for maybe 3-4 tenths of a second to get >> the ladder rolling, but my original train of thought is just fine. >> >> > > -- > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users -- Thanks Rick Lair Superior Roll & Turning LLC 399 East Center Street Petersburg MI, 49270 PH: 734-279-1831 FAX: 734-279-1166 www.superiorroll.com -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Call an M Code from a Classic ladder output
So far I know you use a MDI_COMMAND in the .ini file and then you connect that through halui.mdi-command-01 -- Original Message -- From: "Rick Lair" <r...@superiorroll.com> To: "Emc Users" <emc-users@lists.sourceforge.net> Sent: 2015-11-11 15:13:57 Subject: [Emc-users] Call an M Code from a Classic ladder output >Good Morning Gentleman, > >Is it possible, to call an m-code using a classicladder output? > >Now that I have my tool changer working, I am trying to work into my >ladder logic the ability to call a M40, and it will put the tool that >is >in the spindle back into the carousel, and then when the logic is >finished, have classicladder call an M39. > >The M40 is going to "sets return-tool true", and I was going to use the >the M39 to "sets return-tool false". Unless there is a better way to >reset the signal without calling the M39? Really I need the M40 to >pulse >the "return-tool" signal true for maybe 3-4 tenths of a second to get >the ladder rolling, but my original train of thought is just fine. > > >-- > >Thanks > > >Rick Lair >Superior Roll & Turning LLC >399 East Center Street >Petersburg MI, 49270 >PH: 734-279-1831 >FAX: 734-279-1166 >www.superiorroll.com > > >-- >___ >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] Call an M Code from a Classic ladder output
I just have to wonder why your not using iocontrol.0.tool-change and iocontrol.0.tool-changed or am I totally off track and not understanding the application? JT On 11/11/2015 7:13 AM, Rick Lair wrote: > Good Morning Gentleman, > > Is it possible, to call an m-code using a classicladder output? > > Now that I have my tool changer working, I am trying to work into my > ladder logic the ability to call a M40, and it will put the tool that is > in the spindle back into the carousel, and then when the logic is > finished, have classicladder call an M39. > > The M40 is going to "sets return-tool true", and I was going to use the > the M39 to "sets return-tool false". Unless there is a better way to > reset the signal without calling the M39? Really I need the M40 to pulse > the "return-tool" signal true for maybe 3-4 tenths of a second to get > the ladder rolling, but my original train of thought is just fine. > > -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Call an M Code from a Classic ladder output
How will your carousel component handle that "0"? On 11/11/2015 8:42 AM, andy pugh wrote: > On 11 November 2015 at 13:38, Rick Lairwrote: >> I am not sure how to use the M6 command to put the currently loaded tool >> away, back into the carousel. > > M6 T0 > -- Thanks Rick Lair Superior Roll & Turning LLC 399 East Center Street Petersburg MI, 49270 PH: 734-279-1831 FAX: 734-279-1166 www.superiorroll.com -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Call an M Code from a Classic ladder output
Good Morning Gentleman, Is it possible, to call an m-code using a classicladder output? Now that I have my tool changer working, I am trying to work into my ladder logic the ability to call a M40, and it will put the tool that is in the spindle back into the carousel, and then when the logic is finished, have classicladder call an M39. The M40 is going to "sets return-tool true", and I was going to use the the M39 to "sets return-tool false". Unless there is a better way to reset the signal without calling the M39? Really I need the M40 to pulse the "return-tool" signal true for maybe 3-4 tenths of a second to get the ladder rolling, but my original train of thought is just fine. -- Thanks Rick Lair Superior Roll & Turning LLC 399 East Center Street Petersburg MI, 49270 PH: 734-279-1831 FAX: 734-279-1166 www.superiorroll.com -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Call an M Code from a Classic ladder output
On 11 November 2015 at 13:38, Rick Lairwrote: > I am not sure how to use the M6 command to put the currently loaded tool > away, back into the carousel. M6 T0 -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Call an M Code from a Classic ladder output
On 11 November 2015 at 13:54, Rick Lairwrote: > How will your carousel component handle that "0"? I don't actually know... This is the problem with writing components that you don't actually need. Looking at the code, it will enter state 1 then not move. Which is probably about right. enable going false really ought to exit state 1 though. I need to remember to fix that. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto -- ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users