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

More
14 years 10 months ago #15660 by mansourirad
How to use M7 M8 M9 G-code in EMC2 ? was created 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 years 10 months ago - 14 years 10 months ago #15661 by dzarek
Replied by dzarek on topic Re:How to use M7 M8 M9 G-code in EMC2 ?
M8 - usually 16 pin LPT, but you can use any pin you want
Last edit: 14 years 10 months ago by dzarek.

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

More
14 years 10 months ago #15666 by mansourirad
Replied by mansourirad on topic Re:How to use M7 M8 M9 G-code in EMC2 ?
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 years 10 months ago #15667 by ArcEye
Replied by ArcEye on topic Re:How to use M7 M8 M9 G-code in EMC2 ?
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
11 years 7 months ago - 11 years 7 months ago #57101 by careyer
Replied by careyer on topic How to use M7 M8 M9 G-code in EMC2 ?
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: 11 years 7 months ago by careyer.

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

More
11 years 7 months ago #57111 by ArcEye
Replied by ArcEye on topic How to use M7 M8 M9 G-code in EMC2 ?
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.

Time to create page: 3.014 seconds
Powered by Kunena Forum