Hal for control of analog output of 5i25 nd 7i76
- diegoroman17
- Offline
- Premium Member
Less
More
- Posts: 140
- Thank you received: 2
22 Dec 2012 07:22 #27938
by diegoroman17
Hal for control of analog output of 5i25 nd 7i76 was created by diegoroman17
Hi everybody,
I am migrate from my antique 7i78 card to 7i76 because I need more GPIO pins in my CNC Laser. But my surprise that it give a error that say don´t exist pwm component in this configuration. I try use PncConf but doesn´t exist any configuration for PWM or analog channel. How can I configurate the analog output in the hal file?
Thanks
I am migrate from my antique 7i78 card to 7i76 because I need more GPIO pins in my CNC Laser. But my surprise that it give a error that say don´t exist pwm component in this configuration. I try use PncConf but doesn´t exist any configuration for PWM or analog channel. How can I configurate the analog output in the hal file?
Thanks
Please Log in or Create an account to join the conversation.
22 Dec 2012 08:44 - 22 Dec 2012 08:59 #27941
by PCW
Replied by PCW on topic Hal for control of analog output of 5i25 nd 7i76
The single analog output on the 7I76 is called
spinout (short for spindle output)
in addition there are spinena and spindir (enable and direction)
A good way to see what pins are available is to start linuxcnc with a minimal
HAL file that will start with no assumptions about available pins
and then run
halcmd show pin > mypins
in a terminal
(you can do parameters similarly)
spinout (short for spindle output)
in addition there are spinena and spindir (enable and direction)
A good way to see what pins are available is to start linuxcnc with a minimal
HAL file that will start with no assumptions about available pins
and then run
halcmd show pin > mypins
in a terminal
(you can do parameters similarly)
Last edit: 22 Dec 2012 08:59 by PCW. Reason: ommision
Please Log in or Create an account to join the conversation.
22 Dec 2012 10:19 #27949
by andypugh
With the 5i25 you don't even need a HAL file for the default config:
Replied by andypugh on topic Hal for control of analog output of 5i25 nd 7i76
A good way to see what pins are available is to start linuxcnc with a minimal
HAL file that will start with no assumptions about available pins
and then run halcmd show pin > mypins
With the 5i25 you don't even need a HAL file for the default config:
halrun
loadrt hostmot2
loadrt hm2_pci
show all
Please Log in or Create an account to join the conversation.
- diegoroman17
- Offline
- Premium Member
Less
More
- Posts: 140
- Thank you received: 2
24 Dec 2012 22:57 #28003
by diegoroman17
I try it but don't found the spinout pin or spinena or spindir why?
Replied by diegoroman17 on topic Hal for control of analog output of 5i25 nd 7i76
halrun
loadrt hostmot2
loadrt hm2_pci
show all
I try it but don't found the spinout pin or spinena or spindir why?
Please Log in or Create an account to join the conversation.
24 Dec 2012 23:15 #28004
by PCW
Replied by PCW on topic Hal for control of analog output of 5i25 nd 7i76
pin names would be:
hm2_5i25.0.7i76.0.0.spinout
hm2_5i25.0.7i76.0.0.spindir
hm2_5i25.0.7i76.0.0.spinena
if you dont see these (or the 80 or so other pins with 7i76 in their names)
its most likely that you dont have field I/O power supplied to the 7I76
hm2_5i25.0.7i76.0.0.spinout
hm2_5i25.0.7i76.0.0.spindir
hm2_5i25.0.7i76.0.0.spinena
if you dont see these (or the 80 or so other pins with 7i76 in their names)
its most likely that you dont have field I/O power supplied to the 7I76
Please Log in or Create an account to join the conversation.
- diegoroman17
- Offline
- Premium Member
Less
More
- Posts: 140
- Thank you received: 2
24 Dec 2012 23:33 #28006
by diegoroman17
Why Is absolutely necessary connect field power to see this pins? Can you explain me please?
Replied by diegoroman17 on topic Hal for control of analog output of 5i25 nd 7i76
its most likely that you dont have field I/O power supplied to the 7I76
Why Is absolutely necessary connect field power to see this pins? Can you explain me please?
Please Log in or Create an account to join the conversation.
24 Dec 2012 23:47 - 24 Dec 2012 23:49 #28007
by PCW
Replied by PCW on topic Hal for control of analog output of 5i25 nd 7i76
Because the capability of the remote I/O is
unknown by LinuxCNC until communication is established
and the remote I/O runs on field power so cannot communicate
if field power is not present.
unknown by LinuxCNC until communication is established
and the remote I/O runs on field power so cannot communicate
if field power is not present.
Last edit: 24 Dec 2012 23:49 by PCW.
The following user(s) said Thank You: diegoroman17
Please Log in or Create an account to join the conversation.
- diegoroman17
- Offline
- Premium Member
Less
More
- Posts: 140
- Thank you received: 2
25 Dec 2012 00:00 #28009
by diegoroman17
Replied by diegoroman17 on topic Hal for control of analog output of 5i25 nd 7i76
Now I understand. The spindle signals is into field signals and it communicate with 5i25 with a field protocol and it aren't active while does not exist field power supply. Thanks now I can see the pins
Please Log in or Create an account to join the conversation.
25 Dec 2012 00:03 #28010
by PCW
Replied by PCW on topic Hal for control of analog output of 5i25 nd 7i76
Its seems funny but its a great advantage for flexibility,
For example if we add a firmware option to the remote I/O
(or a new remote I/O card) the pins appear to HAL automatically
without any other changes in linuxCNC required
For example if we add a firmware option to the remote I/O
(or a new remote I/O card) the pins appear to HAL automatically
without any other changes in linuxCNC required
Please Log in or Create an account to join the conversation.
Time to create page: 0.106 seconds