Hello Guest it is August 18, 2019, 09:44:56 AM

Author Topic: Having M3 output as pulse  (Read 2376 times)

0 Members and 1 Guest are viewing this topic.

Having M3 output as pulse
« on: October 17, 2011, 04:17:19 PM »
Good morning,
For my dot peen engraving applicationi use M10p1 and m11p1 commands to turn on and off the marking head.
Is it possible to have the output of M11p1 as pulses that i can set the frequence(100 hz.)
(I use m10 and m11 instead of M3 and 5 because they react faster)
Cemal

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Having M3 output as pulse
« Reply #1 on: October 18, 2011, 06:59:50 AM »
Have you looked at the impact engraving plugin? May not be what you want but thought I would mention anyway.
Hood

Offline Tweakie.CNC

*
  • *
  •  7,882 7,882
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Having M3 output as pulse
« Reply #2 on: October 18, 2011, 07:49:15 AM »
Cemal,

To add to Hood's post....
If you think that the impact engraving plugin would be of use to you then this thread may be of interest.
http://www.machsupport.com/forum/index.php/topic,16446.0.html

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
Re: Having M3 output as pulse
« Reply #3 on: October 19, 2011, 01:26:09 AM »
Hi,
I tried to write a macro such:
begin:
activate (output1)
sleep 5
deactivate(output1)
sleep 5
goto begin

That make it work(i saw the led blinking), but was not be able to stop it with an other macro
Any suggestions?
Thanks
Re: Having M3 output as pulse
« Reply #4 on: October 19, 2011, 11:20:55 PM »
The two macros are running in different threads which is why you can't stop one from the other.  Try putting it in a while loop that looks at an input or an LED.  For instance, set up a button that turns on an LED.  While the LED is active, run your engraver code.  Put the code in a macro pump.