[Emc-users] Software stepgen through Mesa GPIO pins

2012-01-16 Thread Viesturs Lācis
Hello!

I have a question:
How can I do software step generation and export it through gpio pins on 5i23?

Is this correct approach?

addf stepgen.make-pulses base-thread
net 1step   stepgen.0.step   hm2_5i20.0.gpio.00m
net 1dir  stepgen.0.dir hm2_5i20.0.gpio.00n

I have a suspicion that something is missing for the gpio pins to
change their state at the base-thread rate.

Viesturs

--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Software stepgen through Mesa GPIO pins

2012-01-16 Thread andy pugh
On 16 January 2012 15:44, Viesturs Lācis viesturs.la...@gmail.com wrote:

 How can I do software step generation and export it through gpio pins on 5i23?

You will need to add the hm2_5i23.0.write_gpio function to the base
thread (and you will need a base thread)

-- 
atp
The idea that there is no such thing as objective truth is, quite simply, wrong.

--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Software stepgen through Mesa GPIO pins

2012-01-16 Thread Chris Radek
On Mon, Jan 16, 2012 at 05:44:47PM +0200, Viesturs L??cis wrote:
 Hello!
 
 I have a question:
 How can I do software step generation and export it through gpio pins on 5i23?

Why do you want to do this?


--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Software stepgen through Mesa GPIO pins

2012-01-16 Thread Viesturs Lācis
2012/1/16 Chris Radek ch...@timeguy.com:
 On Mon, Jan 16, 2012 at 05:44:47PM +0200, Viesturs L??cis wrote:
 Hello!

 I have a question:
 How can I do software step generation and export it through gpio pins on 
 5i23?

 Why do you want to do this?


Because the machine has 3 servo motors to be controlled by 7i39 card
and also 2 stepper motors.
Ideal solution would be modifying 5i23 firmware for 7i39 card to add
stepgens, but I have no skill to do that by myself. Can anyone help me
out on this? Usually Peter helped me out on such situations (which
added lots of bonus points to my evaluation of their customer service
and my loyalty), I asked him, but it seems that he is too busy this
time.
I have to go to client's site day after tomorrow and now I am figuring
out all the possible ways to get machine working.

Viesturs

--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Software stepgen through Mesa GPIO pins

2012-01-16 Thread Viesturs Lācis
2012/1/16 andy pugh bodge...@gmail.com:
 On 16 January 2012 15:44, Viesturs Lācis viesturs.la...@gmail.com wrote:

 How can I do software step generation and export it through gpio pins on 
 5i23?

 You will need to add the hm2_5i23.0.write_gpio function to the base
 thread (and you will need a base thread)

Thanks for the tip, found this page:
http://linuxcnc.org/docview/devel/html/man/man9/hostmot2.9.html#FUNCTIONS

Is there anything else I should not miss?

Viesturs

--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Software stepgen through Mesa GPIO pins

2012-01-16 Thread Peter C. Wallace
On Mon, 16 Jan 2012, Viesturs L?cis wrote:

 Date: Mon, 16 Jan 2012 18:14:39 +0200
 From: [UTF-8] Viesturs L?cis viesturs.la...@gmail.com
 Reply-To: Enhanced Machine Controller (EMC)
 emc-users@lists.sourceforge.net
 To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] Software stepgen through Mesa GPIO pins
 
 2012/1/16 Chris Radek ch...@timeguy.com:
 On Mon, Jan 16, 2012 at 05:44:47PM +0200, Viesturs L??cis wrote:
 Hello!

 I have a question:
 How can I do software step generation and export it through gpio pins on 
 5i23?

 Why do you want to do this?


 Because the machine has 3 servo motors to be controlled by 7i39 card
 and also 2 stepper motors.
 Ideal solution would be modifying 5i23 firmware for 7i39 card to add
 stepgens, but I have no skill to do that by myself. Can anyone help me
 out on this? Usually Peter helped me out on such situations (which
 added lots of bonus points to my evaluation of their customer service
 and my loyalty), I asked him, but it seems that he is too busy this
 time.
 I have to go to client's site day after tomorrow and now I am figuring
 out all the possible ways to get machine working.

 Viesturs





I can do this sometime today

I was very busy last week so got behind on custom bitfiles.



 --
 RSA(R) Conference 2012
 Mar 27 - Feb 2
 Save $400 by Jan. 27
 Register now!
 http://p.sf.net/sfu/rsa-sfdev2dev2
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
()_() signature to help him gain world domination.


--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Software stepgen through Mesa GPIO pins

2012-01-16 Thread Viesturs Lācis
2012/1/16 Peter C. Wallace p...@mesanet.com:

 I can do this sometime today

 I was very busy last week so got behind on custom bitfiles.

Thank You very much!
I would really appreciate that!

Viesturs

--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users