HURCO KMB-1 Control Update

More
20 Feb 2025 16:54 #322088 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
I see what you mean.
I'll look at the numbers again, especially as I've only recently realised the INI stores velocities as mm/sec, and the GUI is in mm/min.

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

More
20 Feb 2025 17:49 #322096 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
Homed...!
After getting my head around these units, then I found the max acceleration set to something monstrous I'd entered randomly in pncconf, (mildly entertained by setting so slow it looks almost drunk). Any way, the final realisatioin was looking at the position trace in halscope, expanded vertically, which showed that its goes in reverse back over the limit switch after finding the index....
Yes HOME_OFFSET needs to be negative DOH.
I had in my head that anything moving the spindle to the right is a positive number, but I think that in fact when the index is picked up, that sets a zero, and to home at zero, this point we've found has to be at -25.4 in these coordinates.
Ha

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

More
22 Feb 2025 20:23 #322301 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
Its very weird, but I can travel over all the limit switches in X and Y and LNCN errors as I expect with on limit switch error, except for Z minus, where I get a joint2follower error.   By setting up to home at the Z max end, then I've run the Linuxcnc outline program, so the machine is otherwise working.
I've tuned the axis to as fine a limit as I can get, I've been through the hal and ini files but must be missing something.
Could I ask someone else to have a look in the files attached and see where I have made the mistake I must have. Or perhaps there is some other solution?

Thank you.
 

File Attachment:

File Name: Hurco_7i92...2-22.hal
File Size:11 KB

File Attachment:

File Name: Hurco_7i92.ini
File Size:4 KB
Attachments:

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
22 Feb 2025 21:50 #322311 by tommylight
Replied by tommylight on topic HURCO KMB-1 Control Update
Nothing is tied to max-z, everything is tied to min-z, so the only active pin is min-z input, and from your description even that is not set properly as you are getting joint 2 following error form the motor bottoming out.
Can you explain again why such hoops for home and limits on Z?

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

More
22 Feb 2025 22:20 #322314 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
Not really.
I started the whole config with mesact, then as the switches are 5volt, needed to use encoder channels, the index is inverted so have to not the signals, and then moved to pncconf. Lastly from one of the notes above copied what I thought was required homing code.
So the hoops, are just a mess I've got myself into.
If nothing is tied to max-z then even more mystified how its possible to home on it.
I guess that proves those three lines of code are superfluous.

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

More
22 Feb 2025 22:33 #322316 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
Maybe as the Z axis, negative end is actually, when extended, and I my head I'm calling that max-z, in fact that end is really min-z, so it is connected?

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
23 Feb 2025 00:36 #322327 by tommylight
Replied by tommylight on topic HURCO KMB-1 Control Update
What switches does the machine have on Z?

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

More
23 Feb 2025 08:15 #322346 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
Thanks Tommy, Don't actually know the technology, but all the limit switches on the machine are the same, and magnetic.

Signal goes to an optical isolator and the output from that to the 7i77.

Have only just now noticed that the Upper switch is labelled +OT.. A likely start of my confusion.!

Now that I've actually managed to run the machine and draw that famous Linuxcnc outline with it on a piece of paper, I fear it less and know better what the configurator questions are really aimed at, I'm going to create a new build from scratch and check this out all over.
Attachments:

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

More
23 Feb 2025 15:50 - 23 Feb 2025 15:54 #322371 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
So I made a rebuilt config, and can see what went wrong.
The pins were setup correctly. but maybe looks odd, because I have had to use encoder inputs as my switches are 5volt devices.
# --- MIN-X ---
net min-x <= hm2_7i92.0.encoder.03.input-a

# --- MAX-X ---
net max-x <= hm2_7i92.0.encoder.03.input-b

# --- MIN-Y ---   (The index pulses are inverted, so the NOT function reverses that.)
net my-input-signal-1 <= not.0.in hm2_7i92.0.encoder.03.input-index
net min-y => not.0.out

# --- MAX-Y ---
net max-y <= hm2_7i92.0.encoder.04.input-a

# --- MIN-Z --- THIS IS SPINDLE EXTENDED ie DOWN limit
net min-z <= hm2_7i92.0.encoder.04.input-b

# --- MAX-Z --- THIS IS SPINDLE FULLY HOME ie UP limit
net my-input-signal-2 <= not.1.in hm2_7i92.0.encoder.04.input-index
net max-z => not.1.out

Mess up was that all the axes, had a similar mistake. Had only min terms in all three places
Putting the max terms as follows has fixed it.

net min-x => joint.0.home-sw-in
net min-x => joint.0.neg-lim-sw-in
net max-x => joint.0.pos-lim-sw-in

X and Y home on the min end, so need to be told, and also that there is a switch at the other end. (Had min there too instead of max.)

Z homes at the max end, which is fully UP
net min-z => joint.2.neg-lim-sw-in
net max-z => joint.2.pos-lim-sw-in
net max-z => joint.2.home-sw-in

Homing all good now, Thanks
Last edit: 23 Feb 2025 15:54 by NT4Boy. Reason: Mistakes
The following user(s) said Thank You: tommylight

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

More
24 Feb 2025 20:23 - 24 Feb 2025 20:24 #322527 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
Next task is Pendant encoder and feedrate pots.

I've a 7i92-7i77-7i73 combination.
From the 7i73 manual, I can use pins,3(IN0),4(IN1) and 5 (IN2) for 0-3.3v analogue inputs.
which I think I can call using
... <= hm2_7i92.0.7i73.0.0.analogin0, 1, 2

Then original Hurco mpg, (5 volt ) pulses can be connected pins 14 (IN8) and 15 (IN9) channels for a and b.
For which I think I need to set the mode
setp hm2_7i92.0.7i73.0.0.nvencmode1 4 (if quadrature scaled)

but then I am unsure how to refer to the pin.
my guesses .
.... <= hm2_7i92.0.7i73.0.2.input-08
... <= hm2_7i92.0.7i73.0.2.enc0.rawcounts

Are they interchangeable, or is only one effective depending on the mode?

As ever indebted to your kind selves.
Last edit: 24 Feb 2025 20:24 by NT4Boy. Reason: typo

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

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