Re: [Emc-users] Carousel Jogging

2011-10-25 Thread robert
this is intresting i will keep watch, as i too would like this for when 
i sort my turret on the chnc to jog it home if it gets stuck etc.

have you done a following error check on the carousel so if it gets 
stuck u can automaticly stop it with out braking something etc?
http://www.linuxcnc.org/component/option,com_kunena/Itemid,20/func,view/catid,30/id,14077/lang,english/


rob

--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Carousel Jogging

2011-10-21 Thread andy pugh
On 21 October 2011 06:58, Kirk Wallace kwall...@wallacecompany.com wrote:

 The PID sees
 a position change and moves during the counter synchronization.

You probably need to disable the PID during the synch. Possibly using
an inverted oneshot on the edge (or maybe something else entirely)

-- 
atp
Torque wrenches are for the obedience of fools and the guidance of wise men

--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Carousel Jogging

2011-10-21 Thread Kirk Wallace
On Fri, 2011-10-21 at 13:06 +0100, andy pugh wrote:
 On 21 October 2011 06:58, Kirk Wallace kwall...@wallacecompany.com wrote:
 
  The PID sees
  a position change and moves during the counter synchronization.
 
 You probably need to disable the PID during the synch. Possibly using
 an inverted oneshot on the edge (or maybe something else entirely)

I tried the Set Home button first, which simply put encoder.0.reset
and encoder.1.reset on a pyvcp button. What happened was one encoder
would reset a significant time latter than the other. PID would either
see the position or the command change and try to fix it. I added the
amp (pwm actually) enable button to disable the motion while the resets
settle, which works fine, except for the need for the manual button and
PID would wind up in some cases. For switching the MPG to/from
Carousel, the problem is very similar, the command and position need
to change and sync on entering and leaving Carousel. I suppose it
would be easier to just write a component that uses if/case to keep
track of ATC status, but I thought I would try to build it with existing
components first. I just don't have my brain around using components in
an if/case fashion. Too many spinning plates for me:
http://www.youtube.com/watch?v=Zhoos1oY404 

-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Carousel Jogging

2011-10-21 Thread Karl Cunningham
On 10/21/2011 09:02 AM, Kirk Wallace wrote:
 I tried the Set Home button first, which simply put encoder.0.reset
 and encoder.1.reset on a pyvcp button. What happened was one encoder
 would reset a significant time latter than the other. PID would either
 see the position or the command change and try to fix it. I added the
 amp (pwm actually) enable button to disable the motion while the resets
 settle, which works fine, except for the need for the manual button and
 PID would wind up in some cases. For switching the MPG to/from
 Carousel, the problem is very similar, the command and position need
 to change and sync on entering and leaving Carousel. I suppose it
 would be easier to just write a component that uses if/case to keep
 track of ATC status, but I thought I would try to build it with existing
 components first. I just don't have my brain around using components in
 an if/case fashion. Too many spinning plates for me:
 http://www.youtube.com/watch?v=Zhoos1oY404

For homing, could you give the PID position command a constant ramp (use 
the integ component?) until the home microswitch closes. At that 
point, save whatever the position is as a constant position offset 
(sample_hold component). Feed the sum of that and the desired tool 
offset to the PID position input, to get to the desired tool.

For the question you asked, instead of resetting the encoders to zero, 
maybe just save the difference between them. Below is the guts of a 
component I wrote to multiplex between two jogwheels. It stores the 
difference between the two jogwheels whenever it switches so there's no 
glitch. I'm not sure if this is what you need either, but maybe it'll help.

Karl


variable long diff;
variable short prev_select;
if(!select) {
// Select the first jogwheel
if(prev_select)
diff += in2 - in1;
out = in1 - diff;
} else {
// Select the second jogwheel
if(!prev_select)
diff += in1 - in2;
out = in2 - diff;
}
prev_select = select;

--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Carousel Jogging

2011-10-21 Thread Karl Cunningham
I see the first paragraph of my last post wasn't clear. Here it is 
again, hopefully more understandable.

For homing, could you give the PID command a constant ramp (use the 
integ component?) until the home microswitch closes. At that point, 
save the feedback encoder's position as a constant offset (sample_hold 
component). For operation, feed the sum the stored offset and the 
desired tool position to the PID command to go to the desired tool.

I think you could (should) still use the limit3 component right in front 
of the PID command input.

Karl

--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users