How to use M7 M8 M9 G-code in EMC2 ?

More
14 Dec 2011 07:20 #15660 by mansourirad
Salam,
I want to use a motor for liquid cooler and control it with M7 M8 M9 G-code commands
please help me:
which pin in parport (LPT1) Active?

My release is EMC2.4.3

Please Log in or Create an account to join the conversation.

More
14 Dec 2011 08:40 - 14 Dec 2011 08:43 #15661 by dzarek
M8 - usually 16 pin LPT, but you can use any pin you want
Last edit: 14 Dec 2011 08:43 by dzarek.

Please Log in or Create an account to join the conversation.

More
14 Dec 2011 09:24 #15666 by mansourirad
Thanks,

Please tel me :
in page " EMC2 stepper Mill configuration " I most select which title for Pin16 or other?

Digital out 0 ?
Digital out 1 ?
coolant flood ?
coolant mist ?

Please Log in or Create an account to join the conversation.

More
14 Dec 2011 09:34 #15667 by ArcEye
Hi

In you .hal file connect

net coolant-flood <= iocontrol.0.coolant-flood => parport.N.pin-nn-out

Where N is parport number and nn is the pin number of an on-board (BOB) relay or the parport pin number to activate an external relay for coolant.

M8 and M9 will trigger on / off

regards

Please Log in or Create an account to join the conversation.

More
23 Mar 2015 16:06 - 23 Mar 2015 16:06 #57101 by careyer
Hi there :laugh:

I tried the hint written by ArcEye (thanks man) and I can turn on my Laser-Cutter with M8 now... and M9 will disable it.

Which command do I need to add to my .hal file in order to make it M7 instead of M8?
I would like to fire the Laser with M7 and cooling air with M8... and switch of both with M9

Hope someone can help and give me an example!
Thank you so much!

Best regards!
Thomas
Last edit: 23 Mar 2015 16:06 by careyer.

Please Log in or Create an account to join the conversation.

More
23 Mar 2015 22:44 #57111 by ArcEye
That is an old thread :laugh:

Just substitute mist for flood, M7 is mist, M8 is flood.

Does not matter which one you use, what matters is what it is connected to

regards

Please Log in or Create an account to join the conversation.

More
24 Mar 2015 21:44 #57150 by careyer
Hi ArcEye,

thank you very much for your answer - that has helped me already! :woohoo:
And YES! .. it is a very old thread.... but sometimes it makes so much sense to try the search functionality first before asking dumb questions in a shiny new thread! :whistle:

Cheers!
Thomas

Please Log in or Create an account to join the conversation.

Time to create page: 0.203 seconds
Powered by Kunena Forum