I have my initialization C program, after tuning the servos, for my axis done. Is defining each of the I/O all I need to in order to run G code?
I have my initialization C program, after tuning the servos, for my axis done. Is defining each of the I/O all I need to in order to run G code?
Hi Gunmachinist,
I'm not sure what you mean by: "defining each of the I/O"
It depends on what devices you have in your system and how are they controlled.
Normally to run KMotionCNC you would assign a User INIT button to the initialization C Program.
Then configure all your MCodes.
Then configure all of the Trajectory Planner Settings. See here and here.
HTH
TK
http://dynomotion.com
Thinking I would need to add my limit switch I/O to my ini. C program for them to work.
Like:
int LimitSwitchNegBit; // Neg Limit I/O Bit number
int LimitSwitchPosBit; // Pos Limit I/O Bit number
I have been working with KMotionCNC in the Tool Setup Screen (M0 - M30). I've been able to get the spendle working CW/CCW/stop but am having trouble with how to get my axis working while running g code. My init. C program was done but the axis and most g-code telling the axis to m ove will not work, what am I missing?
How have you configured M0-M30 ?
What is the GCode that doesn't work?
Post your Init Program.
TK
http://dynomotion.com
just started attempting to get this mill working but, here is a few screen shots of what I have at this point. I don't understand what the key box is on the User Button page. I know I need to create some C code for the rest of the M codes, or is there a place I can locate existing c code for them?
TK
http://dynomotion.com
here is my init file. I'm also having a problem with my limit switch, when they are active my axis will not move unless I manually press the switch.
You can change the polarity of limit switches by changing the "Stop when Low" Limit Switch Option as described here.
TK
http://dynomotion.com
No that's wrong. The code you posted after I asked was correct. Does it enable the axes?
TK
http://dynomotion.com
I have gotten the X and Y axis moving, but when the X axis moves it counts in the screen Z axis. X axis will count like its moving but nothing moves. How do I correct the X axis to make it the X axis?
Which axes in KFLOP are your X and Z axes?
TK
http://dynomotion.com
This what you mean:
0=Z
1=Y
2=Z
Is that a typo?
TK
http://dynomotion.com
So you did make a mistake in the previous post? Then code:
DefineCoordSystem(2,1,0,-1); // define XYZA axes
instead of
DefineCoordSystem(0,1,2,-1);
TK
http://dynomotion.com