5i25+7i76 Spindle and Encoder Setup

More
9 years 9 months ago - 9 years 9 months ago #85080 by andypugh
You have a typo in the HAL file.
The error is

HAL: ERROR: function 'abs.spindle_output' not found


caused by

loadrt abs names=abs.spindle,abs,spindle_out


You are loading three abs components: abs.spindle, abs, spindle_out
I think you want
loadrt abs names=abs.spindle,abs.spindle_out
ie, a dot not a comma.
Last edit: 9 years 9 months ago by andypugh.

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

More
9 years 9 months ago - 9 years 9 months ago #85083 by PCW
Actually no absolute component is needed at all

the spindle out voltage should be controlled by these statements:

net spindle-vel-cmd-rpm-abs => hm2_5i25.0.7i76.0.0.spinout
net motion.spindle-on => hm2_5i25.0.7i76.0.0.spinena
net spindle-ccw => hm2_5i25.0.7i76.0.0.spindir
net spindle-vel-cmd-rpm-abs <= motion.spindle-speed-out-abs

Note that you are using a quite old version of pncconf (with many errors).
At the very minimum I would update to the latest version of LinuxCNC (2.7.8) and start again

Also you will get additional errors when you fix the current batch because you have some power
issue that is preventing the 7I76s field I/O section from running (missing field power?)
Last edit: 9 years 9 months ago by PCW.

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

More
9 years 9 months ago #85139 by sg
OK,
I've updated LinuxCNC to 2.7.8 from 2.7.0 and rerun PNCconfig to generate new HAL and INI files. I no longer have any LinuxCNC launch errors.

I currently only have A, B, and Index encoders wired single ended onto the 7i76 board for the spindle. Do I need to have SPINENA+, and SPINENA- wired before I can see spindle speed feedback within LinuxCNC and get an Spindle Output signal from the spindle controller? (Currently there is no speed spindle speed display visible anywhere within LinuxCNC). If so, do I simply jumper SPINENA+ (+6V) to Spindle+ and SPINENA- (0V) to Ground? If I wanted to enable the spindle by pulling to ground, how do I wire that onto the 7i76 and what do I need to change on my HAL file?

I appreciate the assistance.

File Attachment:

File Name: my_LinuxCN...hine.ini
File Size:3.06 KB

File Attachment:

File Name: my_LinuxCN...hine.hal
File Size:8.43 KB

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

More
9 years 9 months ago #85140 by andypugh

sg wrote: I currently only have A, B, and Index encoders wired single ended onto the 7i76 board for the spindle. Do I need to have SPINENA+, and SPINENA- wired before I can see spindle speed feedback within LinuxCNC and get an Spindle Output signal from the spindle controller?


No. Those outputs are provided for the purpose of turning the spindle drive on and off.

Perhaps surprisingly there is no spindle speed display built in to the Axis Gui.

For a temporary display of spindle speed (in revs per second) you can open a halmeter and look at (typically) motion.spindle.speed-in or (the signal source) hm2_5i25.0.encoder.0.velocity

To have a permanent spindle speed display you can add a PyVCP or GladeVCP panel to the GUI.

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

More
9 years 9 months ago #85142 by sg
Oh, I see. SPINENA+ and SPINENA- are output signals for activating and deactivating the Spindle Drive. (Please correct me if I'm wrong.) What button and/or function in LinuxCNC activates this signal?

I also can't vary the Spindle Out signal through LinuxCNC. It seems to be stuck at 0V despite me trying to increase and decrease the spindle speed via LinuxCNC. Any idea what may be causing this?

Regards,

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

More
9 years 9 months ago #85146 by PCW
To get an output from the 7I76 analog spindle output, (7I76 SPINDLE OUT) you need

1. +5VDC to +15VDC on SPINDLE+, VDC common on SPINDLE-
2. hm2_5i25.0.7i76.0.0.spinena must be "true"
3. hm2_5i25.0.7i76.0.0.spinout must be set to some detectable percentage of hm2_5i25.0.7i76.0.0.spinout-scalemax
4. hm2_5i25.0.7i76.0.0.spinout-maxlim and hm2_5i25.0.7i76.0.0.spinout-minlim must be set so they are not bounding
hm2_5i25.0.7i76.0.0.spinout to a small number

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

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