Dynomotion

Group: DynoMotion Message: 11266 From: steve wayne Date: 3/26/2015
Subject: Axis homing problem

hello Tom,
i use the MPGSmooth.c example to move z axis to home using a switch placed in the end of the axis. it works but there is some thing wrong with it. the limit switch is connected to an opto input. when axis hits the switch, motor should slow down untill controller catch the index pulse of motor encoder. controller detects limit switch but the motor slow down with some delay so cause motor to run for a time and some times miss index pulse depend on homing jog speed. to solve this i use DisableAxis(2) function that makes motor stop instantly after hitting limit switch. then re-enable it and jog with slower speed to catch index pulse. it works well.
the question is:
1. why Jog() function has got delay? how should i use it to act with no delay?
2. for homing i disable the axis, enable it again, jog with slower speed until catching the index pulse
does this method make any problem? or not?
3. what else can i do to solve the problem?

From:"Tom Kerekes tk@... [DynoMotion]" <DynoMotion@yahoogroups.com>
Date:Wed, Mar 25, 2015 at 10:01 PM
Subject:Re: [DynoMotion] Two wire AC inductive proximity sensors

 

Hi Jon,

Without any specs it is difficult to say what would work.  I would try an experiment with something like an isolated 24V transformer connected to the sensor and maybe a 1K ohm load.  Then check with an AC voltmeter across the resistor to see what happens.  If the voltage changes from near zero to near 24V then it could probably be made to work.  A single diode into a Capacitor would probably be sufficient to create a 24V DC signal.  You might also want a bleed resistor to discharge the capacitor quickly (over a few 60Hz cycles) when the signal goes away.

Good luck
Regards
TK
 

Group: DynoMotion Message: 11267 From: steve wayne Date: 3/26/2015
Subject: Axis homing problem

Hi Tom,
i use the MPGSmooth.c example to move z axis to home using a switch placed in the end of the axis. it works but there is some thing wrong with it. the limit switch is connected to an opto input. when axis hits the switch, motor should slow down untill controller catch the index pulse of motor encoder. controller detects limit switch but the motor slow down with some delay so cause motor to run for a time and some times miss index pulse depend on homing jog speed. to solve this i use DisableAxis(2) function that makes motor stop instantly after hitting limit switch. then re-enable it and jog with slower speed to catch index pulse. it works well.
the question is:
1. why Jog() function has got delay? how should i use it to act with no delay?
2. for homing i disable the axis, enable it again, jog with slower speed until catching the index pulse
does this method make any problem? or not?
3. what else can i do to solve the problem?

Sent from Yahoo Mail on Android

Group: DynoMotion Message: 11268 From: Tom Kerekes Date: 3/26/2015
Subject: Re: Axis homing problem
Hi Steve,

I'm not sure why you would be using the MPG program to home.  Consider the SimpleHomeIndexFunctionTest.c example instead.

The Jog functions should have no delay but it will decelerate in a controlled manner based on the Acceleration and Jerk for the Axis.  Try increasing the Acceleration and/or Jerk to stop more quickly.  Also consider homing at a lower speed.  It shouldn't be necessary to Disable the Axis.

Regards
TK


From: "steve wayne steve.vip1980@... [DynoMotion]" <DynoMotion@yahoogroups.com>
To: "DynoMotion@yahoogroups.com" <DynoMotion@yahoogroups.com>
Sent: Thursday, March 26, 2015 11:27 AM
Subject: [DynoMotion] Axis homing problem

 
hello Tom,
i use the MPGSmooth.c example to move z axis to home using a switch placed in the end of the axis. it works but there is some thing wrong with it. the limit switch is connected to an opto input. when axis hits the switch, motor should slow down untill controller catch the index pulse of motor encoder. controller detects limit switch but the motor slow down with some delay so cause motor to run for a time and some times miss index pulse depend on homing jog speed. to solve this i use DisableAxis(2) function that makes motor stop instantly after hitting limit switch. then re-enable it and jog with slower speed to catch index pulse. it works well.
the question is:
1. why Jog() function has got delay? how should i use it to act with no delay?
2. for homing i disable the axis, enable it again, jog with slower speed until catching the index pulse
does this method make any problem? or not?
3. what else can i do to solve the problem?
From:"Tom Kerekes tk@... [DynoMotion]" <DynoMotion@yahoogroups.com>
Date:Wed, Mar 25, 2015 at 10:01 PM
Subject:Re: [DynoMotion] Two wire AC inductive proximity sensors

 


Hi Jon,

Without any specs it is difficult to say what would work.  I would try an experiment with something like an isolated 24V transformer connected to the sensor and maybe a 1K ohm load.  Then check with an AC voltmeter across the resistor to see what happens.  If the voltage changes from near zero to near 24V then it could probably be made to work.  A single diode into a Capacitor would probably be sufficient to create a 24V DC signal.  You might also want a bleed resistor to discharge the capacitor quickly (over a few 60Hz cycles) when the signal goes away.

Good luck
Regards
TK
 

Group: DynoMotion Message: 11269 From: steve wayne Date: 3/26/2015
Subject: Re: Axis homing problem

Thanks Tom, You're right, I made a mistake about the example name, I've used SimpleHomeIndexFunctionTest.c as u mentioned. Thank you.

Regards
Steve

Sent from Yahoo Mail on Android