Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 11:02:59 PM

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 write home function() in the motion plugin ?
Pages: 1   Go Down
Print
Author Topic: How to write home function() in the motion plugin ?  (Read 455 times)
0 Members and 1 Guest are viewing this topic.
cncstep
Active Member

Offline Offline

Posts: 21




View Profile WWW
« on: June 08, 2011, 09:17:23 AM »

how to write home function() in the motion plugin ?

Code:
extern "C" __declspec(dllexport) void Home( short axis ) ////////////////////  Called when Reset is pressed.
{
//Called when jog shoudl stop on a particular axis
AFX_MANAGE_STATE(AfxGetStaticModuleState( ));
}

Thanks !
Logged

cncstep
Active Member

Offline Offline

Posts: 21




View Profile WWW
« Reply #1 on: June 13, 2011, 06:13:55 AM »

Hello to All !!!

Studied library for mach3 and came across a function HomeOn(int axis, int dir) , tried to use it but when you compile error is pointing to the wrong argument to an int dir. How correctly you can specify the direction of movement in this function?

i write this:

//axis   0-Xaxis,  1-Yaxis, 2-Zaxis, 3-Aaxis
//HomeOn(int axis, int dir)

TrajectoryControl->HomeOn(axis, HuhHuh);
TrajectoryControl->GoHome;
Logged

cncstep
Active Member

Offline Offline

Posts: 21




View Profile WWW
« Reply #2 on: June 15, 2011, 01:42:38 PM »

the problem decided to myself Smiley do Not understand one moment , when the hit on the trailer and rode back up to its opening is reset to zero machine coordinate the axis .. how to do it until I understand.
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!