Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 02:27:26 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach SDK plugin questions and answers.
| | |-+  How to tell if the movement is occuring
Pages: 1   Go Down
Print
Author Topic: How to tell if the movement is occuring  (Read 350 times)
0 Members and 2 Guests are viewing this topic.
flocisguy
Active Member

Offline Offline

Posts: 2


View Profile
« on: September 06, 2011, 02:04:41 PM »

I am working on a Plug-In (using plug-in wizard and Visual C++ 2008) and I am wondering what is the "best" or "proper" way  to find out if movement is occurring.  For example, I would like to use the Code() function to send Gcode such as "G01 X1 Y1 Z1", and then display a status indicator of "Moving" or "Stopped".  I found an example that compared Engine->TrajHead to Engine->TrajIndex and if they were different, the system was moving.  Is that the only way to determine if movement is occuring, or is there a property with a true/false value or some other way?
Logged
jarekk
Active Member

Offline Offline

Posts: 47


View Profile
« Reply #1 on: September 07, 2011, 03:07:16 PM »

You can try to use this one: MainPlanner->ExternalStill

It is better ( compared to trajectroy variables) because in case of e.g. external motion plugin it should accomodate also jogging and homing ( which is not a part of trajectory planning)
Logged
flocisguy
Active Member

Offline Offline

Posts: 2


View Profile
« Reply #2 on: September 09, 2011, 03:55:54 PM »

Thanks for the suggestion, however MainPlanner->ExternalStill stays true even when movement is occuring.
Logged
jarekk
Active Member

Offline Offline

Posts: 47


View Profile
« Reply #3 on: September 10, 2011, 08:40:25 AM »

Well, maybe it works only in case of motion plugins, not with embedded LPT support :-(
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!