Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 08:42:10 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  Having M3 output as pulse
Pages: 1   Go Down
Print
Author Topic: Having M3 output as pulse  (Read 246 times)
0 Members and 1 Guest are viewing this topic.
cemal
Active Member

Offline Offline

Posts: 4


View Profile
« on: October 17, 2011, 03: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
Logged
Hood
Active Member

Offline Offline

Posts: 17,368


Carnoustie, Scotland


View Profile
« Reply #1 on: October 18, 2011, 05:59:50 AM »

Have you looked at the impact engraving plugin? May not be what you want but thought I would mention anyway.
Hood
Logged
Tweakie.CNC
Active Member

Offline Offline

Posts: 3,263


Super Kitty.


View Profile WWW
« Reply #2 on: October 18, 2011, 06: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.
Logged

Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
cemal
Active Member

Offline Offline

Posts: 4


View Profile
« Reply #3 on: October 19, 2011, 12: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
Logged
rrc1962
Active Member

Offline Offline

Posts: 434


View Profile
« Reply #4 on: October 19, 2011, 10: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.
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!