HURCO KMB-1 Control Update

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
18 Nov 2025 17:21 #338640 by tommylight
Replied by tommylight on topic HURCO KMB-1 Control Update
Not a missing connection, Andy pointed to a missing 0 :
error shows
encoder.position
it should be
encoder.0.position

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

More
18 Nov 2025 17:26 #338641 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
Apologies for Clumsy writing on my part,
I understand the issue and thanks for the clarification Tommy.
The following user(s) said Thank You: tommylight

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
18 Nov 2025 18:26 #338644 by tommylight
Replied by tommylight on topic HURCO KMB-1 Control Update
No worries, and you are welcomed, always.

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

More
23 Nov 2025 16:02 #339057 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
My thought of testing the system with an Orient command, I understand now was very naïve.
From others examples, introducing this ability requires pretty much a total tear up of the whole spindle control setup, and a need to get into the ladder world not just a reroute of the enable signal, and that's a move way too far way from any comfort zone for me.
Ducking this piece of implementation brings me much relief.

Thanks for your effort to help.
The following user(s) said Thank You: tommylight

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

More
28 Nov 2025 20:46 #339392 by andypugh
Replied by andypugh on topic HURCO KMB-1 Control Update
You don't _need_ ladder for spindle orient, but you will need, at the least, some HAL logic and a second PID controller for position mode.

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

More
29 Nov 2025 00:29 #339407 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
Andy, just found your orient.svg  which has encouraged me to have another go. Especially as I realise the function could be useful when probing.
Thanks for your clarification.

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

More
22 Dec 2025 11:34 - 22 Dec 2025 11:42 #340391 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
I've been distracted by configuring a CAM post for this machine, and kind of blown away, that after months of learning, I can decide on a strategy, select tools speeds feed etc, and output the NC code from the CAM system and linuxcnc, parses it without comment. Not only that the machine runs the code and the the part is to drawing. Just excellent.

The orient.svg chart, while I get some of what it is telling me, i cannot understand how I need to convert it into hal statements. I thought by now I would get this stuff but I don't. which ones are loadrt, addf, setp and net ?

Sorry to be a dunce.

Could I ask for some pointers please?
Last edit: 22 Dec 2025 11:42 by NT4Boy.

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

More
30 Jan 2026 18:29 - 30 Jan 2026 18:30 #342223 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
I understand that for Orient to work, you need two PIDs and a MUX to switch the PID output from Velocity to Position.
I think some of it works for instance the Spindle will fire up with and M3 command and in HalShow the MUX2 light goes from red to yellow, and back to RED with M5.
However M19 R90 registers in the pid.so.angle but doesn't move the spindle. 

Could another pair of eyes look at the attached please.
Thanks

 

File Attachment:

File Name: Hurco_7i92...1-30.ini
File Size:4 KB

File Attachment:

File Name: spindlecontrol.hal
File Size:4 KB
Attachments:
Last edit: 30 Jan 2026 18:30 by NT4Boy.

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

More
31 Jan 2026 14:07 #342248 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
After some more studying, I realise that the mux2 doesn't have an output.
Not sure even now I have done that correctly.
I think I am now closer. After issuing M19 R45, the mux switches, but the spindle-output  isn't being populated.
Odd as the spindle still runs with M3 command. 

 

File Attachment:

File Name: spindlecon...1-31.hal
File Size:4 KB
Attachments:

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

More
06 Feb 2026 21:47 #342573 by andypugh
Replied by andypugh on topic HURCO KMB-1 Control Update
The first surprise I see is in the INI file where all the P, I and D parameters are set to zero.

Try increasing P to see if that helps.
(You can do this interactively in Halshow, though that won't save to the INI file)

linuxcnc.org/docs/html/man/man1/emccalib.1.html will save to the INI and is a menu option in the Axis GUI. I don't know if there is a way to run it from the other GUIs.

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

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