Dynomotion

Group: DynoMotion Message: 7924 From: zjovanov46 Date: 7/13/2013
Subject: Kanalog / Mach3
Hi,
I have kanalog with 3 axis mill (Hitachi seiki)- connected and all
work with KMotion,(I have moving of machine, and KMotionCNC read encoders) but I can not establish proper connection with Mach3
-Mach3 do not read encoders, not jogging, not homing, only give maximum voltage on Zaxis at analog status screen of KMotion...
- I have three separate homing switches, normaly closed (NC) on J15,
136=x,137=y,138=z... on + side of I/O pins is switch with +5 volts from kanalog, - side is grounded... is that correct?
- Where and how to define home input pins 136, 137, 138
- Do I need redefine Mach3 buttons ( 22 to 1022,.. etc. each axis)
for analog servo, (DAC)?
- Haw to modify Mach3home.c for simple homing - first zaxis, than others, - where change direction of movement when axis homing?
Group: DynoMotion Message: 7928 From: Tom Kerekes Date: 7/13/2013
Subject: Re: Kanalog / Mach3
Hi zjovanov46,

The first step is to get everything working in KMotion.exe.  How much of this procedure have you performed?

http://dynomotion.com/Help/Mach3Plugin/Mach3.htm

You must write a C program to home your system.  There are a few examples.  I've attached a new example that has a function to home the axes in the most common manner.  Please see if it works for you.

Regards
TK




Group: DynoMotion Message: 7930 From: zjovanov46 Date: 7/14/2013
Subject: Re: Kanalog / Mach3
-I think everything working in KMotion.exe.I can move axis with simple
procedure like: DAC0=100 - encoders works, (but not showed in mach3 display)
- Where, and how to define home switch (input bits 136, 137, 138)-
-is that in "Limit Switch Option"
-Is it possible SmoothStepper plugin (which was previously instaled on mach3, to control the spindle) make problems?
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi zjovanov46,
>
> The first step is to get everything working in KMotion.exe.  How much of this procedure have you performed?
>
> http://dynomotion.com/Help/Mach3Plugin/Mach3.htm
>
> You must write a C program to home your system.  There are a few examples.  I've attached a new example that has a function to home the axes in the most common manner.  Please see if it works for you.
>
>
> Regards
> TK
>
>
>
>
>
>
> ________________________________
> From: zjovanov46 <zjovanov46@...>
> To: DynoMotion@yahoogroups.com
> Sent: Saturday, July 13, 2013 3:37 AM
> Subject: [DynoMotion] Kanalog / Mach3
>
>
>
>  
> Hi,
> I have kanalog with 3 axis mill (Hitachi seiki)- connected and all
> work with KMotion,(I have moving of machine, and KMotionCNC read encoders) but I can not establish proper connection with Mach3
> -Mach3 do not read encoders, not jogging, not homing, only give maximum voltage on Zaxis at analog status screen of KMotion...
> - I have three separate homing switches, normaly closed (NC) on J15,
> 136=x,137=y,138=z... on + side of I/O pins is switch with +5 volts from kanalog, - side is grounded... is that correct?
> - Where and how to define home input pins 136, 137, 138
> - Do I need redefine Mach3 buttons ( 22 to 1022,.. etc. each axis)
> for analog servo, (DAC)?
> - Haw to modify Mach3home.c for simple homing - first zaxis, than others, - where change direction of movement when axis homing?
>
Group: DynoMotion Message: 7933 From: Tom Kerekes Date: 7/15/2013
Subject: Re: Kanalog / Mach3

Hi zjovanov46,

The first step is to get your motors to move properly using KMotion.exe.  Do not run Mach3.

Load the starting example KanalogInitialPID.mot using the Config/Flash screen.

Change to the correct DAC and Encoder channels.

Then push "Enable" on the Step Response Screen.  Check if the motor Servos.

Regards
TK

Group: DynoMotion Message: 7937 From: zjovanov46 Date: 7/15/2013
Subject: Re: Kanalog / Mach3
Hi,
I do like You say, and its work... Something strange is happened when
when I tray to move axis in Mach3, x axis going normaly, but y & z axis, move only from 0.5000 to -0.5000 (inches, I suppose) - mach3 is demo...
- Haw I can set steps per unit in Mach3, encoder resolution is 2500 counts (multiple by 4, I suppose), by one revolution, axis travel 5mm?... Or, it is better to live Mach3, and work with KMotion CNC?
(But there I can not see metric setup)
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
>
> Hi zjovanov46,
>
> The first step is to get your motors to move properly using KMotion.exe.  Do not run Mach3.
>
> Load the starting example KanalogInitialPID.mot using the Config/Flash screen.
>
> Change to the correct DAC and Encoder channels.
>
>
> Then push "Enable" on the Step Response Screen.  Check if the motor Servos.
>
> Regards
> TK
>
>
>
> ________________________________
> From: zjovanov46 <zjovanov46@...>
> To: DynoMotion@yahoogroups.com
> Sent: Sunday, July 14, 2013 4:06 AM
> Subject: [DynoMotion] Re: Kanalog / Mach3
>
>
>
>  
> -I think everything working in KMotion.exe.I can move axis with simple
> procedure like: DAC0=100 - encoders works, (but not showed in mach3 display)
> - Where, and how to define home switch (input bits 136, 137, 138)-
> -is that in "Limit Switch Option"
> -Is it possible SmoothStepper plugin (which was previously instaled on mach3, to control the spindle) make problems?
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi zjovanov46,
> >
> > The first step is to get everything working in KMotion.exe.  How much of this procedure have you performed?
> >
> > http://dynomotion.com/Help/Mach3Plugin/Mach3.htm
> >
> > You must write a C program to home your system.  There are a few examples.  I've attached a new example that has a function to home the axes in the most common manner.  Please see if it works for you.
> >
> >
> > Regards
> > TK
> >
> >
> >
> >
> >
> >
> > ________________________________
> > From: zjovanov46 <zjovanov46@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Saturday, July 13, 2013 3:37 AM
> > Subject: [DynoMotion] Kanalog / Mach3
> >
> >
> >
> >  
> > Hi,
> > I have kanalog with 3 axis mill (Hitachi seiki)- connected and all
> > work with KMotion,(I have moving of machine, and KMotionCNC read encoders) but I can not establish proper connection with Mach3
> > -Mach3 do not read encoders, not jogging, not homing, only give maximum voltage on Zaxis at analog status screen of KMotion...
> > - I have three separate homing switches, normaly closed (NC) on J15,
> > 136=x,137=y,138=z... on + side of I/O pins is switch with +5 volts from kanalog, - side is grounded... is that correct?
> > - Where and how to define home input pins 136, 137, 138
> > - Do I need redefine Mach3 buttons ( 22 to 1022,.. etc. each axis)
> > for analog servo, (DAC)?
> > - Haw to modify Mach3home.c for simple homing - first zaxis, than others, - where change direction of movement when axis homing?
> >
>
Group: DynoMotion Message: 7938 From: Tom Kerekes Date: 7/15/2013
Subject: Re: Kanalog / Mach3

Hi zjovanov46,

I don't understand what you are doing or if you are following my instructions.  Did you get the axes working in KMotion.exe??  Did you tune the PID settings?  Did you set Velocity, Acceleration, Jerk?

2500 x 4 encoder counts / 5mm = 2000 counts/mm

2000 counts/mm x 25.4mm/inch = 50800 counts/inch

Set Mach3 resolution using Config Motor Tuning Screen.

KMotionCNC GCode works in metric or inches, but the Tool Setup is always in Inches

Regards
TK