Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 09:53:09 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  Macro in background
Pages: 1   Go Down
Print
Author Topic: Macro in background  (Read 1324 times)
0 Members and 1 Guest are viewing this topic.
kerim
Guest
« on: September 29, 2006, 06:19:14 AM »

Hi I'm new here and my English isn't very good so please be patient and full of understanding. Thanks.

My question is: How can I write macro which works in background while Mach3 is running? Macro must working all the time.

Is this possible? How can I do this?

kerim
« Last Edit: September 29, 2006, 06:29:09 AM by kerim » Logged
Graham Waterworth
Administrator
*
Offline Offline

Posts: 1,665


West Yorkshire, England



View Profile WWW
« Reply #1 on: September 29, 2006, 11:51:34 AM »

If you look in the manual under macropump that should do what you want.

Graham.
Logged

G-Code is on the cutting edge

Autovalues Engineering, CNC machining specialists, Bradford, England
kerim
Guest
« Reply #2 on: September 29, 2006, 04:02:44 PM »

But macropump doesn't work all the time in background. It runs consistently. It run once and couple of seconds (I don't know how many) later it run again, and again. It's not working all the time continually without stopping or killing the process. Is it possible to do such a macro that works continually? If not, what period of time is betwean executes macropump?
Please help.
Thank you and sorry for my English again.

kerim
« Last Edit: September 29, 2006, 04:05:31 PM by kerim » Logged
Graham Waterworth
Administrator
*
Offline Offline

Posts: 1,665


West Yorkshire, England



View Profile WWW
« Reply #3 on: September 29, 2006, 04:30:27 PM »

the macropump runs about 4 times a second

Graham.
Logged

G-Code is on the cutting edge

Autovalues Engineering, CNC machining specialists, Bradford, England
kerim
Guest
« Reply #4 on: October 04, 2006, 04:52:00 PM »

So, if I want to write a macro which sends dData to output port continually with frequency say about 100 dDatas per second, how can I do it?
I know that if I write simple macro like:

PutPortByte( 0x378, dData )

It will send dData to my COM port with frequency 4 dDatas per second but if I write:

While IsMoving()
PutPortByte( 0x378, dData )
WEnd

It sends dData with higher frequency, but I don't know what is the value of frequency and how to solve problem of a macro which sends dData with known value.
Please help.

PS. Sorry for being late. I was busy a little...
« Last Edit: October 12, 2006, 06:15:46 AM by kerim » 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!