Sieg KX3 and 5i25. Seeking firmware.

More
10 years 4 months ago #76813 by andypugh
Did I forget the first "halrun" command?

If I did then start with halrun, and use exit to finish.

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #76814 by mooser
Yeah!!!!! that worked!
I had to add LED to he line for whatever reason but I see that in the pins
setp hm2_5i25.0.led.CR01 1

So for the first time something has happened that I wanted to

Now, lets say I want to turn on a single output pin, line an enabled signal just straight on/off?
I thought maybe setp hm2_5i25.0.gpio.01 1
but that would be too simple

M

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #76830 by andypugh

mooser wrote: Now, lets say I want to turn on a single output pin, line an enabled signal just straight on/off?
I thought maybe setp hm2_5i25.0.gpio.01 1
but that would be too simple


If that is the pin name, that is exactly what you would do. Except that I think that GPIO-01 is allocated to stepgen.04.step. it should work for gpio.00 on physical pin 1 though.

You might also need:
setp hm2_5i25.0.gpio.00.is-output 1
(That will be in the parameter list, not the pin list).

The documentation for Hostmot2 is here, though it could do with some improvements in the formatting.
linuxcnc.org/docs/2.7/html/man/man9/hostmot2.9.html
You probably only care about the GPIO and stepgen sections.

Do you know what the desired frequency is for the charge-pump circuit on the C11G?

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #76831 by mooser

andypugh wrote:

mooser wrote: Now, lets say I want to turn on a single output pin, line an enabled signal just straight on/off?
I thought maybe setp hm2_5i25.0.gpio.01 1
but that would be too simple


If that is the pin name, that is exactly what you would do. Except that I think that GPIO-01 is allocated to stepgen.04.step. it should work for gpio.00 on physical pin 1 though.

You might also need:
setp hm2_5i25.0.gpio.00.is-output 1
(That will be in the parameter list, not the pin list).

The documentation for Hostmot2 is here, though it could do with some improvements in the formatting.
linuxcnc.org/docs/2.7/html/man/man9/hostmot2.9.html
You probably only care about the GPIO and stepgen sections.

Do you know what the desired frequency is for the charge-pump circuit on the C11G?


I'll try that (turning on a single pin) after work today
12.5khz for the chargepump
Thx
M

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #76833 by andypugh

mooser wrote: 12.5khz for the chargepump


The HAL section for setting up the charge pump will look a bit like this.
You wouldn't type the comment lines when doing this by hand.
Code:
#set the stepgen on pin 14 to velocity mode setp hm2_5i25.0.stepgen.05.control-type 1 #choose a scale that gives kHz velocity scaling setp hm2_5i25.0.stepgen.05.scale 1000 #12.5kHz and 50% duty cycle setp hm2_5i25.0.stepgen.05.velocity-cmd 12.5 setp hm2_5i25.0.steplen 40000 #create an enable signal for use in HAL later net charge-pump-enable hm2_5i25.0.stepgen.05.enable #this would be linked to machine-is-on or similar in HAL #but this sets it going permanently. "sets" is "set signal" sets charge-pump-enable 1
The following user(s) said Thank You: JohnPrime

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #76836 by JohnPrime
Watching this with great interest :) .The mesa HAL syntax is now much clearer.

andypugh wrote:

Code:
#set the stepgen on pin 14 to velocity mode


The chargepump's on pin 17 (of the DB25) in the C11g.

HTH

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.385 seconds
Powered by Kunena Forum