[Emc-users] Charge pump controlled stuffs

2015-12-09 Thread Gene Heskett
Greetings all;

While I can make a CP detector with 2 caps, 2 diodes and a load resistor, 
and have 2 of them in service ATM, it strikes me that someone ought to 
be making them, several up on a PCB.

Losing our local Radio Shack I now have to order online, so if I can, I 
may as well order the ready-made thing if its available.

It should have an output buffer that is polarity selectable, and the 
output should be robust enough, and back emf protected, so as to run a 
P multipole "socketted" Ice Cube relay, which can then run even bigger 
stuff. One such application would be a couple of the multibreak T-Bar 
power relays for the soft start and power circuits I mentioned 
controlling the other day.

Does anyone make such a critter?

Thanks.
Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Some mill pix are at:
Genes Web page 

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump controlled stuffs

2015-12-09 Thread Ralph Stirling
I've got a couple of watchdog modules from Brentek
(http://brentek.com) that I think would do what you
want.  The ones I have are WDT5 units, which plug
into an Opto22 rack.  They have a variety of other
form factors though.  It looks like they show up on
ebay too.

-- Ralph

From: Gene Heskett [ghesk...@wdtv.com]
Sent: Wednesday, December 09, 2015 1:37 PM
To: Enhanced Machine Controller (EMC)
Subject: [Emc-users] Charge pump controlled stuffs

Greetings all;

While I can make a CP detector with 2 caps, 2 diodes and a load resistor,
and have 2 of them in service ATM, it strikes me that someone ought to
be making them, several up on a PCB.

Losing our local Radio Shack I now have to order online, so if I can, I
may as well order the ready-made thing if its available.

It should have an output buffer that is polarity selectable, and the
output should be robust enough, and back emf protected, so as to run a
P multipole "socketted" Ice Cube relay, which can then run even bigger
stuff. One such application would be a couple of the multibreak T-Bar
power relays for the soft start and power circuits I mentioned
controlling the other day.

Does anyone make such a critter?

Thanks.
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Some mill pix are at:
Genes Web page <http://geneslinuxbox.net:6309/gene/GO704-pix>

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump controlled stuffs

2015-12-09 Thread Gene Heskett
On Wednesday 09 December 2015 17:53:30 Ralph Stirling wrote:

> I've got a couple of watchdog modules from Brentek
> (http://brentek.com) that I think would do what you
> want.  The ones I have are WDT5 units, which plug
> into an Opto22 rack.  They have a variety of other
> form factors though.  It looks like they show up on
> ebay too.
>
> -- Ralph

Thanks Ralph.  A bit pricey for me though. I can do the same thing with a 
$2.61 555 based gizmo available also on fleabay.

But when I clicked on a 5 pack of them for a hair over a $12 bill, I was 
greeted with a login request from ebays servers, something I haven't 
been able to do for 6 months or more. So I thought maybe its been fixed, 
and clicked on the forgot password.  But I clicked on the link and got 
the exact same eject message for probably the 30th time, the link I just 
got 30 seconds before, is claimed to be an expired link. Exact same 
scenario from about 90 days back when I last tried to fix it.

The person I was talking to said perhaps my firewall was blocking 
something. So I informed him that this was a linux house, and that the 
router was running DD-WRT, and assured him that in a decade of running 
DD-WRT on various hardware, currently a Netgear, and that only one 
person had come in from the outside AFTER I gave him the password.  You 
can get to my web page, but nearly every other port doesn't even respond 
to a ping.  Locked up tight.

So I've been on the phone to ebay in 2 separate sessions, talking to a 
guy who withstood the abuse I was giving out freely (and I am VERY good 
at that when I'm upset).  Killed a bit over an hour all told.  But the 
upshot is that he took all the data, and has initiated the procedure to 
totally nuke my account(s).  But it will take a week to complete in case 
I owe somebody something, which I don't.

In the meantime I have a phone message in to my packrat ex employee to 
see if he has any 4 pole or better T-Bar power relays that I can use to 
softstart the mill's spindle supply. There's a decent chance, he has 3 
old salvaged 55 foot trailers crammed with this stuff so its in out of 
the weather.

I have scrounged up a 51 ohm 200 watt power resistor and modified its 
home brewed mounts so it will fit in the space above the capacitor bank 
thats under the copper buss pcb's in the pictures at the link below.  
And there is room for 2 of those T-Bar relays under the BoB and Jon's 
servo amp.  So I think I can do it all inside the box.



Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Some mill pix are at:
Genes Web page 

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] charge pump start at Axis startup (if no Estop)

2015-05-03 Thread Tom Easterday
Oops, had iocontrol.0.user-enable-out commented out in my flailing about with 
the config yesterday….nevermind
-Tom

 On May 2, 2015, at 6:45 PM, Sebastian Kuzminsky s...@highlab.com 
 mailto:s...@highlab.com wrote:
 The iocontrol manpage says:
 
   iocontrol.0.user-enable-out
  (Bit, Out) FALSE when an internal estop condition exists
 
 Experimenting with 2.7.0~pre6 here shows that user-enable-out follows
 the E-stop button in Axis, which is what i think you want.


--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] charge pump start at Axis startup (if no Estop)

2015-05-03 Thread Tom Easterday

 On May 2, 2015, at 6:45 PM, Sebastian Kuzminsky s...@highlab.com wrote:
 The iocontrol manpage says:
 
   iocontrol.0.user-enable-out
  (Bit, Out) FALSE when an internal estop condition exists
 
 Experimenting with 2.7.0~pre6 here shows that user-enable-out follows
 the E-stop button in Axis, which is what i think you want.

This is not the case on my machine for some reason.   
iocontrol.0.user-enable-out does not follow my estop button.  My estop button 
does cause Axis’ estop button to toggle, as it should.  I do see that 
iocontrol.0.emc-enable-in does follow my estop button….
-Tom

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] charge pump start at Axis startup (if no Estop)

2015-05-02 Thread Tom Easterday
I am trying to get my charge pump to start up when Axis starts and the Estop 
button is disabled (out) but not having any luck.  This page gives several 
variations http://wiki.linuxcnc.org/cgi-bin/wiki.pl?About_Charge_Pumps and says:

An example is, net notEstop iocontrol.0.user-enable-out = 
charge-pump.enable  to have the charge pump run except with an e-stop

But this does not work.  I can either get the charge pump to come on when I 
press the red On button in Axis (which is not what I want) or not come on at 
all.  Any ideas?
Thanks,
-Tom


Snippet of related config:

loadrt trivkins
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD 
num_joints=[TRAJ]AXES
loadrt hostmot2
loadrt hm2_pci config= num_encoders=4 num_pwmgens=0 num_stepgens=3 
sserial_port_0=00 
setphm2_5i25.0.watchdog.timeout_ns 500
loadrt pid names=pid.x,pid.z,pid.s
loadrt abs names=abs.spindle
loadrt lowpass names=lowpass.spindle
loadrt scale names=scale.spindle
loadrt charge_pump

addf charge-pump servo-thread
addf hm2_5i25.0.read  servo-thread
addf motion-command-handler   servo-thread
addf motion-controllerservo-thread
addf pid.x.do-pid-calcs   servo-thread
addf pid.z.do-pid-calcs   servo-thread
addf pid.s.do-pid-calcs   servo-thread
addf scale.spindleservo-thread
addf abs.spindle  servo-thread
addf lowpass.spindle  servo-thread
addf hm2_5i25.0.write servo-thread

# ---Chargepump StepGen: 0.25 velocity = 10Khz square wave output---

setp   hm2_5i25.0.stepgen.02.dirsetup100
setp   hm2_5i25.0.stepgen.02.dirhold 100
setp   hm2_5i25.0.stepgen.02.steplen 100
setp   hm2_5i25.0.stepgen.02.stepspace   100
setp   hm2_5i25.0.stepgen.02.position-scale  1
setp   hm2_5i25.0.stepgen.02.step_type   2
setp   hm2_5i25.0.stepgen.02.control-type1
setp   hm2_5i25.0.stepgen.02.maxaccel0
setp   hm2_5i25.0.stepgen.02.maxvel  0
setp   hm2_5i25.0.stepgen.02.velocity-cmd0.25

net charge-pump   =  charge-pump.out  = hm2_5i25.0.stepgen.02.enable

# --- ESTOP-EXT ---
net estop-ext =  hm2_5i25.0.7i84.0.0.input-16

#net machine-is-enabled=  motion.motion-enabled
net machine-is-enabled charge-pump.enable =  motion.motion-enabled


#  ---estop signals---

net estop-out =  iocontrol.0.user-enable-out
net estop-ext =  iocontrol.0.emc-enable-in


--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] charge pump start at Axis startup (if no Estop)

2015-05-02 Thread Sebastian Kuzminsky
On 05/02/2015 04:34 PM, Tom Easterday wrote:
 I am trying to get my charge pump to start up when Axis starts and the Estop 
 button is disabled (out) but not having any luck.  This page gives several 
 variations http://wiki.linuxcnc.org/cgi-bin/wiki.pl?About_Charge_Pumps and 
 says:
 
 An example is, net notEstop iocontrol.0.user-enable-out = 
 charge-pump.enable  to have the charge pump run except with an e-stop
 
 But this does not work.  I can either get the charge pump to come on when I 
 press the red On button in Axis (which is not what I want) or not come on at 
 all.  Any ideas?

The iocontrol manpage says:

iocontrol.0.user-enable-out
   (Bit, Out) FALSE when an internal estop condition exists

Experimenting with 2.7.0~pre6 here shows that user-enable-out follows
the E-stop button in Axis, which is what i think you want.


 Snippet of related config:
 
 loadrt trivkins
 loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD 
 num_joints=[TRAJ]AXES
 loadrt hostmot2
 loadrt hm2_pci config= num_encoders=4 num_pwmgens=0 num_stepgens=3 
 sserial_port_0=00 
 setphm2_5i25.0.watchdog.timeout_ns 500
 loadrt pid names=pid.x,pid.z,pid.s
 loadrt abs names=abs.spindle
 loadrt lowpass names=lowpass.spindle
 loadrt scale names=scale.spindle
 loadrt charge_pump
 
 addf charge-pump servo-thread
 addf hm2_5i25.0.read  servo-thread
 addf motion-command-handler   servo-thread
 addf motion-controllerservo-thread
 addf pid.x.do-pid-calcs   servo-thread
 addf pid.z.do-pid-calcs   servo-thread
 addf pid.s.do-pid-calcs   servo-thread
 addf scale.spindleservo-thread
 addf abs.spindle  servo-thread
 addf lowpass.spindle  servo-thread
 addf hm2_5i25.0.write servo-thread
 
 # ---Chargepump StepGen: 0.25 velocity = 10Khz square wave output---
 
 setp   hm2_5i25.0.stepgen.02.dirsetup100
 setp   hm2_5i25.0.stepgen.02.dirhold 100
 setp   hm2_5i25.0.stepgen.02.steplen 100
 setp   hm2_5i25.0.stepgen.02.stepspace   100
 setp   hm2_5i25.0.stepgen.02.position-scale  1
 setp   hm2_5i25.0.stepgen.02.step_type   2
 setp   hm2_5i25.0.stepgen.02.control-type1
 setp   hm2_5i25.0.stepgen.02.maxaccel0
 setp   hm2_5i25.0.stepgen.02.maxvel  0
 setp   hm2_5i25.0.stepgen.02.velocity-cmd0.25
 
 net charge-pump   =  charge-pump.out  = hm2_5i25.0.stepgen.02.enable
 
 # --- ESTOP-EXT ---
 net estop-ext =  hm2_5i25.0.7i84.0.0.input-16
 
 #net machine-is-enabled=  motion.motion-enabled
 net machine-is-enabled charge-pump.enable =  motion.motion-enabled
 
 
 #  ---estop signals---
 
 net estop-out =  iocontrol.0.user-enable-out
 net estop-ext =  iocontrol.0.emc-enable-in

I think you want charge-pump.enable netted to
iocontrol.0.user-enable-out, so that when the machine comes out of
Estop, the charge-pump starts pumping.

I dont understand why you're netting charge-pump.out to the stepgen
enable, could that be the source of your troubles?

The charge pump component makes a square wave all by itself, you don't
need a stepgen inline.  Just net the charge-pump.out to a gpio.


-- 
Sebastian Kuzminsky

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] charge pump start at Axis startup (if no Estop)

2015-05-02 Thread Tom Easterday

 On May 2, 2015, at 6:45 PM, Sebastian Kuzminsky s...@highlab.com wrote:
 
 The iocontrol manpage says:
 
   iocontrol.0.user-enable-out
  (Bit, Out) FALSE when an internal estop condition exists
 
 Experimenting with 2.7.0~pre6 here shows that user-enable-out follows
 the E-stop button in Axis, which is what i think you want.

It does sound like what I want.

 I think you want charge-pump.enable netted to
 iocontrol.0.user-enable-out, so that when the machine comes out of
 Estop, the charge-pump starts pumping.


I thought I already tried that but will do it again and see...

 I dont understand why you're netting charge-pump.out to the stepgen
 enable, could that be the source of your troubles?

Well, that wasn’t working but I have tried about a dozen different combinations 
and only the last one had that config.

 The charge pump component makes a square wave all by itself, you don't
 need a stepgen inline.  Just net the charge-pump.out to a gpio.

Hmm, I wonder if this is my problem.  I want to use the Mesa stepgen to 
generate the charge pump signal.  Should I not even be doing the loadrt (and 
addf) for the charge-pump component?  But if I don’t will I still have all the 
charge pump signals (like charge-pump.enable and charge-pump.out)?  The mesa 
stepgen will stop if it loses contact with Linuxcnc (via watchdog).

Thanks Seb,
-Tom

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Charge Pump on PMDX-131

2011-05-21 Thread Mike Cinquino
Hello,

I am attempting to get the charge pump on a PMDX-131 working. I have had
this board for years and am just getting around to trying to get this
working.

I have a charge pump output setup on pin 17 as described in the PMDX-131
manual. Because I was unable to get this to work I also attempted to use a
CNC4PC external charge pump board through a PMDX-131 output (Pin 16). This
did not work either.

I used Halscope to watch the output pin signal and I am getting a signal
from EMC2 as expected (at least internally). I then hooked an oscilliscope
to the output and did not get a matching signal. I have no signal at all. I
connected the CNC4PC charge pump to a signal generator and it worked
as advertised. I also have a spindle motor working through PMDX output 1
relay K1.

Has anyone used the charge pump on the PMDX-131 with EMC2 successfully?

Is there anything obvious that I am missing?

My thought is that maybe the buffer on the PMDX can't handle the HZ. I am
basing the signal off my servo thread and have manipulated that up and down
to but see no output. I changed parallel port cables also.

Thanks,
Mike
--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge Pump on PMDX-131

2011-05-21 Thread Steve Stallings
If you cannot see the signal on pin 17 of your
parallel port using an real oscilloscope, then
you may have issues with your HAL file bringing
the signal to the actual output pin.

Also, I would caution that the signal should
be somewhere between 100 Hertz and 10 kHz
in frequency. Normally the EMC servo thread
defaults to 1 kHz which is fine, but since this
is a stepper based system, are you sure that
you don't have your charge pump signal generator
running at the much higher base thread rate?

Regards,
Steve Stallings

-Original Message-
From: Mike Cinquino [mailto:mcinqu...@gmail.com] 
Sent: Saturday, May 21, 2011 2:58 PM
To: emc-users@lists.sourceforge.net
Subject: [Emc-users] Charge Pump on PMDX-131

Hello,

I am attempting to get the charge pump on a PMDX-131 working. I have had
this board for years and am just getting around to trying to get this
working.

I have a charge pump output setup on pin 17 as described in the PMDX-131
manual. Because I was unable to get this to work I also attempted to use a
CNC4PC external charge pump board through a PMDX-131 output (Pin 16). This
did not work either.

I used Halscope to watch the output pin signal and I am getting a signal
from EMC2 as expected (at least internally). I then hooked an oscilliscope
to the output and did not get a matching signal. I have no signal at all. I
connected the CNC4PC charge pump to a signal generator and it worked as
advertised. I also have a spindle motor working through PMDX output 1 relay
K1.

Has anyone used the charge pump on the PMDX-131 with EMC2 successfully?

Is there anything obvious that I am missing?

My thought is that maybe the buffer on the PMDX can't handle the HZ. I am
basing the signal off my servo thread and have manipulated that up and down
to but see no output. I changed parallel port cables also.

Thanks,
Mike

--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge Pump on PMDX-131

2011-05-21 Thread Mike Cinquino
If you cannot see the signal on pin 17 of your
parallel port using an real oscilloscope, then
you may have issues with your HAL file bringing
the signal to the actual output pin.

If I can see a signal on halscope what in my hal file would prevent it from
occurring on the physical I/O? My axis work perfectly. The only difference I
can see is in hardware.

My i/o pin through the hal file is linked to the servo thread not the base
thread. Also based on the halscope scaling I believe my pulses are within
the 100 to 10kHz range. I have tried multiple thread rates to manipulate
that value with no luck.

Coincidentally I don't see a upper limit on PMDX-131 in the manual. They do
however specify the 100 Hz low end. I have used the published values from
the CNC4PC board and tried values from 100Hz (low end of PMDX) to 15500Hz
high end of CNC4PC.

My next test will be to see if that output pin works at all.static
on/off. I know Pin 1 works to control my spindle through the on board relay.
Have not used the others...until now.

Thanks,
Mike
--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2011-02-19 Thread Andy Pugh

On 19 Feb 2011, at 03:00, Kirk Wallace kwall...@wallacecompany.com wrote:

 so charge-pump.enable doesn't seem correct because it is a slave,
 iocontrol is a slave. I don't think this line will work, but I could be
 wrong.

This could be correct if (and only if) the  e-stop signal has been created 
and linked to an output pin in the main HAL file. On reflection this is 
probably the problem. It should be possible to view the state of that signal 
with halmeter or the HAL configuration viewer. 
--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2011-02-19 Thread Stephen Wille Padnos
Kirk Wallace wrote:
 On Fri, 2011-02-18 at 19:45 -0800, Doug wrote:

 I believe I understand.  File should read.
 loadrt charge_pump
 # net estop-out charge-pump.enable iocontrol.0.user-enable-out
 net signal_name  master   slaves
 net cp   charge-pump.out  parport.0.pin-17-out
 addf charge-pump base-thread

 Does it the order make a difference?
 How do I set the hall scope to fast period.  I think I know how to set the
 trigger to charge-pump.out pin.

 Doug
  
 Oops, leave the net signal_name master slaves line out or comment it
 out.

 
 loadrt charge_pump
 addf charge-pump base-thread
 # net estop-out charge-pump.enable iocontrol.0.user-enable-out
 net cp  charge-pump.out  parport.0.pin-17-out
 

 The order of the lines does make a difference, in that, in order for a
 component's pins or functions to exist, the loadrt line needs to be
 invoked. After the loadrt line, the pins and functions will have been
 made so then they can be addf'd and net'd. After the loadrt line, the
 other lines can be in any order.

 There is an exception. Sometimes you might see a 1 or -1 following an
 addf line. A 1 overrides the line order and puts this command first. A
 -1 places the command last.

 Here is an example:
 ...
 # next connect the parport functions to threads
 # read inputs first
 addf parport.0.read base-thread 1
 # write outputs last
 addf parport.0.write base-thread -1

 ...

 It's my understanding that the first word after net is always a signal
 name and the next word is always an output or master. It gets more
 complicated when the net command is broken into more than one line,
 which is allowed. See:
 http://www.linuxcnc.org/docview/html/hal_basic_hal.html#r1_1_4

No, the order of the pin names on a net line isn't important.  The 
following are all equivalent:
net cp charge-pump.out parport.0.pin-17-out
net cp charge-pump.out = parport.0.pin-17-out
net cp parport.0.pin-17-out charge-pump.out
net cp parport.0.pin-17-out = charge-pump.out

The arrows (=, =) are optional and for human eyes only.  The pin 
order makes no difference.

The above can also be split into multiple net lines:
net cp charge-pump.out
and later on
net cp parport.0.pin-17-out

The first net command will create the net and attach only the charge 
pump output pin to it.  The second net command will see that there is 
already a signal named cp, and will connect the parport pin to it.

- Steve
[snip]

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2011-02-18 Thread Doug
This is what Step wizard put in the Hal.

# Include your customized HAL commands here
# This file will not be overwritten when you run stepconf again

loadrt charge_pump
net estop-out charge-pump.enable iocontrol.0.user-enable-out
net charge-pump = charge-pump.out
addf charge-pump base-thread
net charge-pump = parport.0.pin-17-out

I opened the scope and there is no frequency on pin 17.  I put this in the
custom has so I can alter it.  Any Ideas?

On Thu, 2011-02-17 at 07:26 -0800, Doug wrote:
 I have a new PMDX Gecko driver board.  It requires an osculating +5 to 0
to
 enable the outputs.   I am using the step wizard and find that I only get
a
 solid voltage out of pin 17 when I choose charge pump in the wizard.  How
 can I fix this?   PMDX manufacture does not have a sample config file.

There might be something useful here:
http://wiki.linuxcnc.org/emcinfo.pl?About_Charge_Pumps 

Basically, check to see if the charge pump component is loaded with
loadrt, invoked by addf, and connected with net in your .hal file.
-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA



--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users
 

__ Information from ESET NOD32 Antivirus, version of virus signature
database 5883 (20110217) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 


--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2011-02-18 Thread andy pugh
On 18 February 2011 17:56, Doug d...@archfitters.com wrote:

 net estop-out charge-pump.enable iocontrol.0.user-enable-out

Is estop-out linked in the main HAL? Are you toggling the estop button? (F1)

 I opened the scope and there is no frequency on pin 17.

I am not altogether familiar with the charge pump, but as the Halscope
also runs in the base thread it is not inconceivable that it always
samples the same value, even though the output is toggling while
Halscope isn't looking.

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

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2011-02-18 Thread Doug
I tried without the Estop line and yes the hal connects the estop-out.  And
yes I toggled the estop.  I am not sure how fast the frequency would be but
a volt meter does not show anything.  My PBMX board with charge pump do not
enable because it does not sense anything on pin 17.

Doug 

On 18 February 2011 17:56, Doug d...@archfitters.com wrote:

 net estop-out charge-pump.enable iocontrol.0.user-enable-out

Is estop-out linked in the main HAL? Are you toggling the estop button? (F1)

 I opened the scope and there is no frequency on pin 17.

I am not altogether familiar with the charge pump, but as the Halscope
also runs in the base thread it is not inconceivable that it always
samples the same value, even though the output is toggling while
Halscope isn't looking.

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


--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users
 

__ Information from ESET NOD32 Antivirus, version of virus signature
database 5886 (20110218) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 


--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2011-02-18 Thread andy pugh
On 18 February 2011 18:44, Doug d...@archfitters.com wrote:
 I tried without the Estop line and yes the hal connects the estop-out.  And
 yes I toggled the estop.  I am not sure how fast the frequency would be but
 a volt meter does not show anything.  My PBMX board with charge pump do not
 enable because it does not sense anything on pin 17.

It ought to be working then.
In the Machine - Show HAL Config - Watch window can you see the
charge-pump.enable pin toggle with estop?
Can you see the charge-pump function in the base thread (I think that
is visible in the same window, under Functions, otherwise you can
type halcmd show function in a command line window while EMC2 is
running.
Also check that the base thread time is not zero, and that the p-port
pin and charge-pump are shown as linked.

In fact, please put the main HAL and custom HAL files on
www.pastebin.com where we can have a proper look at them. (You might
as well paste the output of dmesg there too.)

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

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2011-02-18 Thread Kirk Wallace
On Fri, 2011-02-18 at 07:56 -0800, Doug wrote:
 This is what Step wizard put in the Hal.
 
 # Include your customized HAL commands here
 # This file will not be overwritten when you run stepconf again
 
 loadrt charge_pump
 net estop-out charge-pump.enable iocontrol.0.user-enable-out
 net charge-pump = charge-pump.out
 addf charge-pump base-thread
 net charge-pump = parport.0.pin-17-out
... snip

loadrt is good
addf is good

I read the net command line as:
net signal_name master_pin slave_pin0 [slave_pin1 ... etcetera]

so charge-pump.enable doesn't seem correct because it is a slave,
iocontrol is a slave. I don't think this line will work, but I could be
wrong. Commenting it out (adding # or ; to the front of the line) should
make charge-pump work because the default is enabled.

net charge-pump... is okay.

The charge-pump component just toggles the output pin each time the
component gets invoked by the thread, so the frequency is 1/2 the thread
rate or .5 x 1/thread period. A common base thread is 5 nanoseconds
(see your .ini file), or .5 seconds, f = 1/(.5 * 2) = 10kHz.

I would check the signal with HALscope set to the fast period, and check
and trigger on the charge-pump.out pin.

I would tend to condense the two lines above:

net charge-pump = charge-pump.out
net charge-pump = parport.0.pin-17-out

to

net signal_name  master   slaves
net cp   charge-pump.out  parport.0.pin-17-out

(I seem to recall component and signal names can not be the same so I
used cp for the signal name)


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


--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2011-02-18 Thread Doug
I believe I understand.  File should read.
loadrt charge_pump
# net estop-out charge-pump.enable iocontrol.0.user-enable-out
net signal_name  master   slaves
net cp   charge-pump.out  parport.0.pin-17-out
addf charge-pump base-thread

Does it the order make a difference?
How do I set the hall scope to fast period.  I think I know how to set the
trigger to charge-pump.out pin.

Doug

On Fri, 2011-02-18 at 07:56 -0800, Doug wrote:
 This is what Step wizard put in the Hal.
 
 # Include your customized HAL commands here
 # This file will not be overwritten when you run stepconf again
 
 loadrt charge_pump
 net estop-out charge-pump.enable iocontrol.0.user-enable-out
 net charge-pump = charge-pump.out
 addf charge-pump base-thread
 net charge-pump = parport.0.pin-17-out
... snip

loadrt is good
addf is good

I read the net command line as:
net signal_name master_pin slave_pin0 [slave_pin1 ... etcetera]

so charge-pump.enable doesn't seem correct because it is a slave,
iocontrol is a slave. I don't think this line will work, but I could be
wrong. Commenting it out (adding # or ; to the front of the line) should
make charge-pump work because the default is enabled.

net charge-pump... is okay.

The charge-pump component just toggles the output pin each time the
component gets invoked by the thread, so the frequency is 1/2 the thread
rate or .5 x 1/thread period. A common base thread is 5 nanoseconds
(see your .ini file), or .5 seconds, f = 1/(.5 * 2) = 10kHz.

I would check the signal with HALscope set to the fast period, and check
and trigger on the charge-pump.out pin.

I would tend to condense the two lines above:

net charge-pump = charge-pump.out
net charge-pump = parport.0.pin-17-out

to

net signal_name  master   slaves
net cp   charge-pump.out  parport.0.pin-17-out

(I seem to recall component and signal names can not be the same so I
used cp for the signal name)


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



--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users
 

__ Information from ESET NOD32 Antivirus, version of virus signature
database 5887 (20110218) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 


--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2011-02-18 Thread Kirk Wallace
On Fri, 2011-02-18 at 19:45 -0800, Doug wrote:
 I believe I understand.  File should read.
 loadrt charge_pump
 # net estop-out charge-pump.enable iocontrol.0.user-enable-out
 net signal_name  master   slaves
 net cp   charge-pump.out  parport.0.pin-17-out
 addf charge-pump base-thread
 
 Does it the order make a difference?
 How do I set the hall scope to fast period.  I think I know how to set the
 trigger to charge-pump.out pin.
 
 Doug

Oops, leave the net signal_name master slaves line out or comment it
out.


loadrt charge_pump
addf charge-pump base-thread
# net estop-out charge-pump.enable iocontrol.0.user-enable-out
net cp  charge-pump.out  parport.0.pin-17-out


The order of the lines does make a difference, in that, in order for a
component's pins or functions to exist, the loadrt line needs to be
invoked. After the loadrt line, the pins and functions will have been
made so then they can be addf'd and net'd. After the loadrt line, the
other lines can be in any order.

There is an exception. Sometimes you might see a 1 or -1 following an
addf line. A 1 overrides the line order and puts this command first. A
-1 places the command last.

Here is an example:
...
# next connect the parport functions to threads
# read inputs first
addf parport.0.read base-thread 1
# write outputs last
addf parport.0.write base-thread -1

...

It's my understanding that the first word after net is always a signal
name and the next word is always an output or master. It gets more
complicated when the net command is broken into more than one line,
which is allowed. See:
http://www.linuxcnc.org/docview/html/hal_basic_hal.html#r1_1_4 

This screen in section 1.5.1 in HALscope:
http://www.linuxcnc.org/docview/html/hal_tutorial.html#r1_5_1 

shows where the setting is made. This screen comes up first if the
setting has not been made before. To reset it,I believe you click on the
button just above the IDLE in the example screen, which is just below
the one linked above. In the example screen, the button has 4000
samples at 1.01kHz on it. Click on it and make the change to fast.
-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2011-02-17 Thread Doug
I have a new PMDX Gecko driver board.  It requires an osculating +5 to 0 to
enable the outputs.   I am using the step wizard and find that I only get a
solid voltage out of pin 17 when I choose charge pump in the wizard.  How
can I fix this?   PMDX manufacture does not have a sample config file.  As
you can tell I am using the wizard so you assume correct that I am new to
EMC but learning fast.  Please respond with idiot proof instructions.  I
need a EMC for dummies book.

PS. I am looking for a EMC tech in my area.  If I spent a few days with
someone that has experience I could learn a lot faster.  I live in Gresham
Oregon.  There has to be some experts in Portland area.  I am will pay for
there time, we are building CNC machines from the ground up.  Exciting but
frustrating at the same time.  

Doug McCurtain


--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2011-02-17 Thread andy pugh
On 17 February 2011 17:26, Doug d...@archfitters.com wrote:
 I have a new PMDX Gecko driver board.  It requires an osculating +5 to 0 to
 enable the outputs.

I learned many years ago that osculating 5V hurts. :-)

   I am using the step wizard and find that I only get a
 solid voltage out of pin 17 when I choose charge pump in the wizard.

Have a look in the HAL file to see what stepconf has created,
You ought to see the charge pump be loaded (loadrt charge_pump), added
to a realtime thread (addf charge-pump base-thread) and then linked to
the parport pin (net pin-name charge-pump.out parport.0.pin-17-out )
It is possible that the net command might be split onto two lines in
different parts of the file.

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

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2011-02-17 Thread Kirk Wallace
On Thu, 2011-02-17 at 07:26 -0800, Doug wrote:
 I have a new PMDX Gecko driver board.  It requires an osculating +5 to 0 to
 enable the outputs.   I am using the step wizard and find that I only get a
 solid voltage out of pin 17 when I choose charge pump in the wizard.  How
 can I fix this?   PMDX manufacture does not have a sample config file.

There might be something useful here:
http://wiki.linuxcnc.org/emcinfo.pl?About_Charge_Pumps 

Basically, check to see if the charge pump component is loaded with
loadrt, invoked by addf, and connected with net in your .hal file.
-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge Pump on Wiki

2011-01-10 Thread Slavko Kocjancic
S, Kirk Wallace pis(e:
 On Sun, 2011-01-09 at 16:13 -0800, Kirk Wallace wrote:
 In case anyone might be interested, I added a charge pump page to the
 wiki. If any one has charge pump information or machine configurations
 they would like to share on that page, please add it to the page.
 Corrections are welcome too.

 http://wiki.linuxcnc.org/emcinfo.pl?About_Charge_Pumps

 Oops, I forgot the subject:(
As e_stop_latch has near same output (one of them) it's good idea to 
mention it in that wiki. And just comment for 567 circuit. The 5V peak 
to peak is little high for them. Just use voltage divider (1/10 ratio) 
on input and should work.
--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge Pump on Wiki

2011-01-10 Thread Kirk Wallace
On Mon, 2011-01-10 at 08:56 +0200, Slavko Kocjancic wrote:
... snip
 As e_stop_latch has near same output (one of them) it's good idea to 
 mention it in that wiki. 

I mentioned in the wiki that it may be appropriate to use the charge
pump detector as _part_ of an e-stop system. E-stop is a bigger subject
than charge pump. This may or may not be something I'll have time to get
to.

Oops, I now realize you're saying that e_stop_latch has a charge pump
like feature? I'll look into it, thanks.

 And just comment for 567 circuit. The 5V peak 
 to peak is little high for them. Just use voltage divider (1/10 ratio) 
 on input and should work.

Yes, I noticed the .2V RMS recommended maximum mentioned in the app.
note. I used a 5k potentiometer as a voltage divider and found that the
output changed fairly randomly at different settings for the same
frequency. Varying the frequency also had peaks and valleys, which was
fairly discouraging. Pulse behavior, as opposed to 50% duty, wasn't very
good. I need to get the scope out to see whats going on, but the
cap/diode and AVR circuits already work well, so I'm beginning to loose
interest in this one. If anyone has a working, or near working, circuit
(with square wave or pulse input), I can post it, but I'm not certain
I'll do much more with the 567.
-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge Pump on Wiki

2011-01-10 Thread Kirk Wallace
On Mon, 2011-01-10 at 07:21 -0800, Kirk Wallace wrote:
 On Mon, 2011-01-10 at 08:56 +0200, Slavko Kocjancic wrote:
 ... snip
  As e_stop_latch has near same output (one of them) it's good idea to 
  mention it in that wiki. 
 
 I mentioned in the wiki that it may be appropriate to use the charge
 pump detector as _part_ of an e-stop system. E-stop is a bigger subject
 than charge pump. This may or may not be something I'll have time to get
 to.
 
 Oops, I now realize you're saying that e_stop_latch has a charge pump
 like feature? I'll look into it, thanks.
... snip

I think I get it, e-stop latch should be mentioned along with the other
pump enable inputs on the wiki page. A Mazak page
http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?MazakEstopChain 

mentions the charge pump and latch so I'll need to study it. My feeling
right now is that the pump should be on any time EMC2 is sane, or sane
with the machine On, with the CP detector as just another switch in
the e-stop loop.
-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge Pump on Wiki

2011-01-10 Thread Kirk Wallace
On Mon, 2011-01-10 at 07:47 -0800, Kirk Wallace wrote:
 On Mon, 2011-01-10 at 07:21 -0800, Kirk Wallace wrote:
  On Mon, 2011-01-10 at 08:56 +0200, Slavko Kocjancic wrote:
  ... snip
   As e_stop_latch has near same output (one of them) it's good idea to 
   mention it in that wiki. 

Uugh, there is a charge pump, or rather, watchdog in estop-latch,

...
  24 if( ok_out ) {
  25 /* toggle watchdog */
  26 watchdog = !watchdog;
  27 }
  28 } else {
...


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


--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge Pump on Wiki

2011-01-09 Thread Kirk Wallace
On Sun, 2011-01-09 at 16:13 -0800, Kirk Wallace wrote:
 In case anyone might be interested, I added a charge pump page to the
 wiki. If any one has charge pump information or machine configurations
 they would like to share on that page, please add it to the page.
 Corrections are welcome too.
 
 http://wiki.linuxcnc.org/emcinfo.pl?About_Charge_Pumps 
 

Oops, I forgot the subject:(
-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/index.html
California, USA


--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Charge pump

2010-01-23 Thread Klemen Ozebek
Hi all,

my charge pump require 12,5Khz signal, what would be the thread setting to
get my charge pump working?

Best regards.
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2010-01-23 Thread Andy Pugh
On 23 January 2010 15:55, Klemen Ozebek klemen.oze...@gmail.com wrote:

 my charge pump require 12,5Khz signal, what would be the thread setting to
 get my charge pump working?

There is a charge pump realtime module:
http://www.linuxcnc.org/docview/html//man/man9/charge_pump.9.html

12.5kHz is every 80uS, so if you have a 40,000nS base thread then that
would be exactly right.

Alternatively you could use pwmgen to create a 50% duty cycle square
wave of arbitrary frequency.
http://www.linuxcnc.org/docview/html//man/man9/pwmgen.9.html

In your case you would need the following lines in your HAL file.

loadrt pwmgen output_type=0
addf pwmgen.make-pulses base-thread
addf pwmgen.update servo-thread

setp pwmgen.0.enable 1
setp pwmgen.0.pwm-freq 12500
setp pwmgen.0.scale 100
setp pwngen.0.value 50


(You might not need the addf pwgen.update. line as the pwm is
fixed in value, try running without it)
(You might also want to connect the pwmgen.enable to the e-stop, but
this way the amp is live as long as the realtime system is running)

-- 
atp

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2010-01-23 Thread Klemen Ozebek
Problem solved, i used first method.

Thank you.

On Sat, Jan 23, 2010 at 6:43 PM, Andy Pugh a...@andypugh.fsnet.co.ukwrote:

 On 23 January 2010 15:55, Klemen Ozebek klemen.oze...@gmail.com wrote:

  my charge pump require 12,5Khz signal, what would be the thread setting
 to
  get my charge pump working?

 There is a charge pump realtime module:
 http://www.linuxcnc.org/docview/html//man/man9/charge_pump.9.html

 12.5kHz is every 80uS, so if you have a 40,000nS base thread then that
 would be exactly right.

 Alternatively you could use pwmgen to create a 50% duty cycle square
 wave of arbitrary frequency.
 http://www.linuxcnc.org/docview/html//man/man9/pwmgen.9.html

 In your case you would need the following lines in your HAL file.

 loadrt pwmgen output_type=0
 addf pwmgen.make-pulses base-thread
 addf pwmgen.update servo-thread

 setp pwmgen.0.enable 1
 setp pwmgen.0.pwm-freq 12500
 setp pwmgen.0.scale 100
 setp pwngen.0.value 50


 (You might not need the addf pwgen.update. line as the pwm is
 fixed in value, try running without it)
 (You might also want to connect the pwmgen.enable to the e-stop, but
 this way the amp is live as long as the realtime system is running)

 --
 atp

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump frequency

2009-05-25 Thread Leslie Newell
Ah, the fog is clearing. I hadn't grasped the relationship between 
loadrt and addf. So basically loadrt initializes the module then addf 
connects it to a thread and runs it.

Thanks,
Les



Jeff Epler wrote:
 On Mon, May 25, 2009 at 12:32:44AM +0100, Leslie Newell wrote:
 How do you specify which thread it is on?
 
 this is specified on the halcmd 'addf' line for the function and shown
 by halcmd 'show thread'.
 
 Is HAL event driven or a state machine? For instance if I change a pin 
 that is connected to other modules, do those modules get notified 
 immediately or does the change get processed on the next cycle?
 
 Realtime components are invoked in a specified order (the one shown by
 halcmd show thread) at the specified interval (also shown by halcmd
 show thread).  If the execution order is first A then B, the B function
 will see the outputs updated by A.  The next time A is invoked (e.g.,
 after 25us has passed if it's in a BASE_PERIOD of 25000) it will see the
 outputs updated by B.
 
 When functions in two different realtime threads, or some non-realtime
 code is involved, then the ordering guarantee is only that they are not
 re-ordered with respect to each other.
 
 The model of hal is discussed extensively in the first chapter of the HAL 
 manual,
 http://www.linuxcnc.org/docs/2.3/HAL_User_Manual.pdf
 
 Jeff
 

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Charge pump frequency

2009-05-24 Thread Leslie Newell
Hi,

Does anyone know what frequency the charge pump HAL module outputs?

Les

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump frequency

2009-05-24 Thread Jeff Epler
On Sun, May 24, 2009 at 11:26:47PM +0100, Leslie Newell wrote:
 Hi,
 
 Does anyone know what frequency the charge pump HAL module outputs?

It depends on the period of the thread which the charge pump is attached
to--when enabled, the charge pump makes one transition every period.
For example, if it's on the fast thread and BASE_PERIOD is 5 ns,
then the frequency is (1/2)/5ns = 10kHz.

Jeff

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump frequency

2009-05-24 Thread Leslie Newell
Thanks Jeff.

How do you specify which thread it is on? I am actually investigating 
writing a custom HAL module and am looking at some of the simpler 
examples to try to understand how HAL works.

Is HAL event driven or a state machine? For instance if I change a pin 
that is connected to other modules, do those modules get notified 
immediately or does the change get processed on the next cycle?

Les


 
 It depends on the period of the thread which the charge pump is attached
 to--when enabled, the charge pump makes one transition every period.
 For example, if it's on the fast thread and BASE_PERIOD is 5 ns,
 then the frequency is (1/2)/5ns = 10kHz.


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump frequency

2009-05-24 Thread Jeff Epler
On Mon, May 25, 2009 at 12:32:44AM +0100, Leslie Newell wrote:
 How do you specify which thread it is on?

this is specified on the halcmd 'addf' line for the function and shown
by halcmd 'show thread'.

 Is HAL event driven or a state machine? For instance if I change a pin 
 that is connected to other modules, do those modules get notified 
 immediately or does the change get processed on the next cycle?

Realtime components are invoked in a specified order (the one shown by
halcmd show thread) at the specified interval (also shown by halcmd
show thread).  If the execution order is first A then B, the B function
will see the outputs updated by A.  The next time A is invoked (e.g.,
after 25us has passed if it's in a BASE_PERIOD of 25000) it will see the
outputs updated by B.

When functions in two different realtime threads, or some non-realtime
code is involved, then the ordering guarantee is only that they are not
re-ordered with respect to each other.

The model of hal is discussed extensively in the first chapter of the HAL 
manual,
http://www.linuxcnc.org/docs/2.3/HAL_User_Manual.pdf

Jeff

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com 
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge Pump Input

2008-12-27 Thread Kirk Wallace
On Fri, 2008-12-26 at 10:55 -0800, Kirk Wallace wrote:
 I noticed that EMC2 has a charge pump output. Does anyone have a charge
 pump input HAL component? One example of its use, might be for limit and
 home switches, so that any switch fault (short to ground or supply or
 open) could be detected. Or, maybe this should be done in hardware,
 independently of software, but if the software crashes the e-stop charge
 pump should activate?

With a little more thought, a dual frequency detector, for open and
closed would be needed. Or an AC pump and DC level detector. A
software DTMF decoder component would allow for more states to be
detected.
-
Kirk
http://www.wallacecompany.com/machine_shop/



--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Charge Pump Input

2008-12-26 Thread Kirk Wallace
I noticed that EMC2 has a charge pump output. Does anyone have a charge
pump input HAL component? One example of its use, might be for limit and
home switches, so that any switch fault (short to ground or supply or
open) could be detected. Or, maybe this should be done in hardware,
independently of software, but if the software crashes the e-stop charge
pump should activate?
-
Kirk
http://www.wallacecompany.com/machine_shop/



--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2008-12-23 Thread John Thornton
On 23 Dec 2008 at 0:37, Leslie Newell wrote:

 Does anyone know how the charge pump works in emc? I am using the 
 stepconf wizard and have set pin 1 as charge pump output. However
 when I 
 run emc, I never get any charge pump output. For testing I put an
 axis 
 step output on that pin and I can see the steps coming out. I am
 using 
 the 8.04 live CD.
 
 Les
 

Also, if you open up the Show HAL Configuration window and look at 
Pins/charge-pump you 
will see that stepconf has connected the e-stop to the charge pump enable so it 
only works 
when the e-stop is out. If you look in your .hal file you will see that 
stepconf has added the 
charge pump to the base thread. The only issue is if your base thread runs fast 
enough to 
output the mininum frequency needed by your bob... AFAIK. And you could open up 
the 
HAL oscilloscope to see it which is neat to see. On my slow machine it looks 
like it goes 
high every 200 uSeconds whatever that frequency is... its too early in the 
morning to figure 
that out :) 

John

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2008-12-23 Thread John Thornton
On 23 Dec 2008 at 0:37, Leslie Newell wrote:

 Does anyone know how the charge pump works in emc? I am using the 
 stepconf wizard and have set pin 1 as charge pump output. However
 when I 
 run emc, I never get any charge pump output. For testing I put an
 axis 
 step output on that pin and I can see the steps coming out. I am
 using 
 the 8.04 live CD.
 
 Les

http://www.linuxcnc.org/docview/html//man/man9/charge_pump.9.html

John


--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2008-12-23 Thread Leslie Newell
Hi John,

I used an oscilloscope to look at the pin and nothing was coming out. 
Looking at the hal file, it looks like stepconf didn't connect the 
charge pump to the e-stop. I'll do some more testing once I get Ubuntu 
installed on my CF card. Running off the CD is a bit of a pain.

The exact frequency isn't critical. My circuit should trigger on 
anything above about 200Hz. Outputting step pulses on that pin was 
enough to trigger it.

Thanks,
Les

John Thornton wrote:
 Also, if you open up the Show HAL Configuration window and look at 
 Pins/charge-pump you 
 will see that stepconf has connected the e-stop to the charge pump enable so 
 it only works 
 when the e-stop is out. If you look in your .hal file you will see that 
 stepconf has added the 
 charge pump to the base thread. The only issue is if your base thread runs 
 fast enough to 
 output the mininum frequency needed by your bob... AFAIK. And you could open 
 up the 
 HAL oscilloscope to see it which is neat to see. On my slow machine it looks 
 like it goes 
 high every 200 uSeconds whatever that frequency is... its too early in the 
 morning to figure 
 that out :) 

 John
   


--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2008-12-23 Thread Chris Radek
On Tue, Dec 23, 2008 at 03:28:11PM +, Leslie Newell wrote:
 Hi John,
 
 I used an oscilloscope to look at the pin and nothing was coming out. 
 Looking at the hal file, it looks like stepconf didn't connect the 
 charge pump to the e-stop. I'll do some more testing once I get Ubuntu 
 installed on my CF card. Running off the CD is a bit of a pain.

What EMC version?  I tried 2.2.8 and it was hooked to estop.


--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2008-12-23 Thread Leslie Newell
I used the 8.04 Live CD with no updates.  I now have it installed on a 
CF card and I'll give it another go once it has finished updating itself.

Les


Chris Radek wrote:
 What EMC version?  I tried 2.2.8 and it was hooked to estop.
   


--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2008-12-23 Thread Leslie Newell
After some more testing, this is what stepconf generates:
net estop-out charge-pump.enable iocontrol.0.user-enable-out

This does not seem to work. I changed it to this:

net estop-out iocontrol.0.user-enable-out
setp charge-pump.enable 1

and as expected the CP starts as soon as EMC starts. This at least 
proved that the CP worked and my pin settings were correct.

I then got rid of the setp and added:

net zenable = charge-pump.enable

and it works as I want. The CP goes on when I enable Axis.

BTW, I love the MPG response - much better than Mach! My two lathe MPGs 
feel like they are directly connected now. That alone is enough to 
convince me to lose Mach :-)

Thanks,
Les




--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Charge pump

2008-12-22 Thread Leslie Newell
Does anyone know how the charge pump works in emc? I am using the 
stepconf wizard and have set pin 1 as charge pump output. However when I 
run emc, I never get any charge pump output. For testing I put an axis 
step output on that pin and I can see the steps coming out. I am using 
the 8.04 live CD.

Les

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2008-12-22 Thread Greg Michalski
My charge pump is setup to run whenever EMC is running - you may choose to
have it disable when E-Stop is activated, etc.  Here's what I believe is on
my machine (too cold to go fire up and this is what I have in my archive
folder on the laptop), the charge pump board I got from CNC4PC.com needed a
quicker pulse than my servo thread IIRC so it's in the base thread, if you
can run it in the servo thread instead it would probably be better as to
real time performance, I have been known to be mistaken though :) 

loadrt charge_pump
addf charge-pump base-thread
net charge-pump = charge-pump.out
net charge-pump = parport.1.pin-01-out
#activate the charge-pump
setp charge-pump.enable 1


Greg
www.distinctperspectives.com
 
-Original Message-
From: Leslie Newell [mailto:les.new...@fastmail.co.uk] 
Sent: Monday, December 22, 2008 7:38 PM
To: Enhanced Machine Controller (EMC)
Subject: [Emc-users] Charge pump

Does anyone know how the charge pump works in emc? I am using the 
stepconf wizard and have set pin 1 as charge pump output. However when I 
run emc, I never get any charge pump output. For testing I put an axis 
step output on that pin and I can see the steps coming out. I am using 
the 8.04 live CD.

Les


--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2008-12-22 Thread Leslie Newell
Thanks Greg,

Looks like stepconf doesn't. I am not all that familiar with hal. Would 
this do the trick?
net charge-pump.enable = iocontrol.0.user-enable-out

With my breakout board the CP is effectively a drives on signal.

Thanks,
Les


Greg Michalski wrote:
 My charge pump is setup to run whenever EMC is running - you may choose to
 have it disable when E-Stop is activated, etc.  Here's what I believe is on
 my machine (too cold to go fire up and this is what I have in my archive
 folder on the laptop), the charge pump board I got from CNC4PC.com needed a
 quicker pulse than my servo thread IIRC so it's in the base thread, if you
 can run it in the servo thread instead it would probably be better as to
 real time performance, I have been known to be mistaken though :) 

 loadrt charge_pump
 addf charge-pump base-thread
 net charge-pump = charge-pump.out
 net charge-pump = parport.1.pin-01-out
 #activate the charge-pump
 setp charge-pump.enable 1


 Greg
 www.distinctperspectives.com
  
   


--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2008-12-22 Thread Stephen Wille Padnos
Leslie Newell wrote:

Does anyone know how the charge pump works in emc? I am using the 
stepconf wizard and have set pin 1 as charge pump output. However when I 
run emc, I never get any charge pump output. For testing I put an axis 
step output on that pin and I can see the steps coming out. I am using 
the 8.04 live CD.
  

I think the default from stepconf is that the charge pump output is on 
when EMC2 is out of estop, ie after you press F1.

- Steve


--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2008-12-22 Thread Leslie Newell
Hi Steve,

That is what I was expecting but it didn't seem to work.

Les

Stephen Wille Padnos wrote:

 I think the default from stepconf is that the charge pump output is on 
 when EMC2 is out of estop, ie after you press F1.

 - Steve


 --
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users
   


--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge pump

2008-12-22 Thread Matt Shaver
On Tue, 2008-12-23 at 00:37 +, Leslie Newell wrote:
 Does anyone know how the charge pump works in emc? I am using the 
 stepconf wizard and have set pin 1 as charge pump output. However when I 
 run emc, I never get any charge pump output.

Is the enable pin set TRUE? With emc running, start a terminal and
enter:

halcmd show  myhal.txt

then, using a text editor, look at myhal.txt and find the charge pump
related HAL pins. There'll be one called 'enable'!

Thanks,
Matt



--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Charge Pump

2008-02-23 Thread zeta
Hi all

[I originally posted this at CNCZone, not realising that  this list is 
the prime organ for EMC.
Apologies in advance therefore for any breach of propriety.]

I'm looking for some guidance about the charge-pump set-up in EMC. I 
have found in the set-up docs how to assign a parallel port pin to the 
charge-pump, but that's all. A search on CNCZone yields a post about 
setting up a torch system in which there is mention of the 15 kHz 
output (but nothing about how to enable it) and searches of the EMC 
docs (and the Sherline docs) add nothing further. My conclusion is that 
I'm looking in the wrong place.
So, can anyone answer:

   * Where is the charge-pump set up documentation?
   * What's the charge-pump output amplitude (voltage)?
   * What's the charge-pump output frequency?
   * Is there anything else I need to do within EMC (other than assign
 a pin to the charge-pump) in order to set up a controller which
 expects a charge-pump signal?

Grateful thanks for any info.


Z

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge Pump

2008-02-23 Thread Ray Henry

Here is the relevant hal stuff for one of my setups.  This is from
a .hal file for that machine.

# Add a charge pump for the PMDX-131
loadrt charge_pump
addf charge-pump servo-thread
newsig charge-pump bit
linksp charge-pump charge-pump.out
linksp charge-pump parport.0.pin-17-out 

As you can see this runs the charge pump on my PMDX-131 board.  It is
that board that does the work of saying charge pump is being enabled or
is not being enabled by the PC.  That board uses parport pin 17 so that
is where the signal is sent by the last linksp.

All of this is dated HAL code.  I believe that now days the HAL folk
prefer using the net command. 

There are also a couple of parameters associated with the module.  There
is a value in there of 769 for charge-pump.time but I suspect that is a
default because I don't see any set command for that parameter.  The
frequency that you need is determined by the device you are sending it
to.

The current documentation should include a man page for charge_pump
should be included in the pdf at

http://www.linuxcnc.org/docs/HAL_Documentation.pdf

HTH

Rayh


On Sat, 2008-02-23 at 22:45 +, zeta wrote:
 Hi all
 
 [I originally posted this at CNCZone, not realising that  this list is 
 the prime organ for EMC.
 Apologies in advance therefore for any breach of propriety.]
 
 I'm looking for some guidance about the charge-pump set-up in EMC. I 
 have found in the set-up docs how to assign a parallel port pin to the 
 charge-pump, but that's all. A search on CNCZone yields a post about 
 setting up a torch system in which there is mention of the 15 kHz 
 output (but nothing about how to enable it) and searches of the EMC 
 docs (and the Sherline docs) add nothing further. My conclusion is that 
 I'm looking in the wrong place.
 So, can anyone answer:
 
* Where is the charge-pump set up documentation?
* What's the charge-pump output amplitude (voltage)?
* What's the charge-pump output frequency?
* Is there anything else I need to do within EMC (other than assign
  a pin to the charge-pump) in order to set up a controller which
  expects a charge-pump signal?
 
 Grateful thanks for any info.
 
 
 Z
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users