7i76e and 2.2Kw spindle connection help

More
07 Apr 2021 03:39 #205227 by PCW
Can you post your current hal and ini files?

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

More
07 Apr 2021 05:00 #205228 by kb8wmc
PCW, I sure can post them...

Thanks
Mike
Attachments:

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

More
07 Apr 2021 15:22 #205259 by PCW
net spindle-output hm2_7i76e.0.7i76.0.0.spinout

The net spindle-output is not connected to anything

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

More
09 Apr 2021 19:08 #205458 by kb8wmc
PCW, "The net spindle-output is not connected to anything "
Ok, what would you suggest that should get it to connect to something useful that would make it work as it should...?
Mike

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

More
09 Apr 2021 19:15 - 09 Apr 2021 19:16 #205459 by PCW
probably the simplest would be to replace:

net spindle-output hm2_7i76e.0.7i76.0.0.spinout

with

net spindle-vel-cmd-rpm-abs hm2_7i76e.0.7i76.0.0.spinout


But I hesitated to patch your existing file because this should all have been setup
properly by pncconf
Last edit: 09 Apr 2021 19:16 by PCW.
The following user(s) said Thank You: kb8wmc

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

More
09 Apr 2021 21:09 - 09 Apr 2021 21:09 #205474 by kb8wmc
PCW, Thanks so much, we can finally control the spindle speeds...I am not a friend's shop to verify, but he has verified to me that it is functioning using M3/M5 commands...One note on this particular spindle is that the specs state that the minimum RPM is 8000...I have set the 8000 minimum in the .ini file so theoretically when spindle starts it should be running at 8000...As related to the Axis button interface, it appears (as shown in the halshow) in increments of 100, but where the increments begin is a mystery to me as I am not at the machine location...I am curious if those increments begin at the 8000 RPM's or start from base zero...If it does start at base zero, is there any way to have it begin at higher RPM...?

BTW...After your comment that "spindle-out" was not connected to anything, I did some reasearch I should have done a long time ago into the actual workings of HAL...Over the years I have usually been able to find answers to questions and problem situations to me just by reading this forum, as many other people have had similar experiences...Thus my number of posts in this forum are not a many as others...Based on this I have never actually learned that much about how HAL really functions...I decided after reading your post, that I had to know more than I did...
Day before yesterday (7 April), I had figured out just exactly what you today have suggested we use to accomplish the solution and I made up a test spindle.hal and sent it to my friend and he tested it today, I forgot to tell him to comment out the existing line pertaining to "net spindle-out" and it threw errors...I was in the dumps for a while, so I posted here and 8 minutes later you replied...It was exactly what you provided to the letter, so that meant to me that I had learned something and figured out what had to be done...What an elevating experience for me (and at my age...lol)

Thanks again for your help
Mike
Last edit: 09 Apr 2021 21:09 by kb8wmc.

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

More
10 Apr 2021 02:35 - 10 Apr 2021 02:37 #205495 by JohnnyCNC
I don't know if this will help but I remember having to do something on my adjunct spindle. Below are my hal entries. I believe the offset entry might be what you are looking for. It has been a long time since I messed with this. The spindle I used this on is a 24000 rpm water cooled spindle controlled via analog 0~10volts.

#*******************
# SPINDLE S
#*******************
setp pid.s.Pgain [SPINDLE_0]P
setp pid.s.Igain [SPINDLE_0]I
setp pid.s.Dgain [SPINDLE_0]D
setp pid.s.bias [SPINDLE_0]BIAS
setp pid.s.FF0 [SPINDLE_0]FF0
setp pid.s.FF1 [SPINDLE_0]FF1
setp pid.s.FF2 [SPINDLE_0]FF2
setp pid.s.deadband [SPINDLE_0]DEADBAND
setp pid.s.maxoutput [SPINDLE_0]OUTPUT_MAX_LIMIT
setp pid.s.error-previous-target true

setp offset.0.offset 7200
net spindle-vel-cmd-rpm => offset.0.fb-in
net spindle-output <= offset.0.fb-out

# ---Analog output signals/setup---

setp hm2_5i25.0.7i83.0.1.analogout4-scalemax [SPINDLE_0]OUTPUT_SCALE
setp hm2_5i25.0.7i83.0.1.analogout4-minlim [SPINDLE_0]OUTPUT_MIN_LIMIT
setp hm2_5i25.0.7i83.0.1.analogout4-maxlim [SPINDLE_0]OUTPUT_MAX_LIMIT
net spindle-output => hm2_5i25.0.7i83.0.1.analogout4

# ---setup spindle control signals---

net spindle-vel-cmd-rpm <= spindle.0.speed-out
net spindle-enable <= spindle.0.on and2.ena.in0 estop-latch.1.reset
net spindle-cw <= spindle.0.forward
net spindle-ccw <= spindle.0.reverse
net spindle-brake <= spindle.0.brake
net spindle-revs => hm2_5i25.0.encoder.00.position spindle.0.revs
net spindle-at-speed => spindle.0.at-speed
net spindle-vel-fb-rps => spindle.0.speed-in
net spindle-index-enable <=> spindle.0.index-enable


net spindle-lockout-db estop-latch.1.ok-out => and2.ena.in1
net spindle-OK and2.ena.out => timedelay.0.in
net HY-enable timedelay.0.out => hm2_5i25.0.7i76.0.0.output-05 hm2_5i25.0.7i83.0.1.analogena4
net spindle-Lockout hm2_5i25.0.7i76.0.0.input-07-not => estop-latch.1.fault-in

# ---Setup spindle at speed signals---
net spindle-at-speed <= hm2_5i25.0.7i76.0.0.input-10

.ini
[SPINDLE_0]
P = 0
I = 0
D = 0.0
FF0 = 1.00
FF1 = 0.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
OUTPUT_MIN_LIMIT = 0
OUTPUT_MAX_LIMIT = 16800
OUTPUT_SCALE = 16800

#16800+7200 = 24000
Last edit: 10 Apr 2021 02:37 by JohnnyCNC.

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

More
10 Apr 2021 04:51 #205503 by kb8wmc
Thanks Johnny...gives me something else to think about and I will look into it as I can see what your approach...

Mike

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

More
10 Apr 2021 21:34 #205565 by andypugh

I am curious if those increments begin at the 8000 RPM's or start from base zero..


I don't think that they do. For safety I would set up the min frequency in the VFD too.

I intend to add max and min limits to the spindles, as well as accel limits. But I would not like to guess when.

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

More
10 Apr 2021 21:35 #205566 by andypugh

I intend to add max and min limits to the spindles


Just to clarify... Some GUIs already do this. But I think it belongs in the spindle parameters.

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

Moderators: PCWjmelson
Time to create page: 0.093 seconds
Powered by Kunena Forum