HURCO KMB-1 Control Update

More
11 months 1 week ago #338640 by tommylight
Not a missing connection, Andy pointed to a missing 0 :
error shows
Code:
encoder.position
it should be
Code:
encoder.0.position

Please Log in to join the conversation.

More
11 months 1 week ago #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.

Please Log in to join the conversation.

More
11 months 1 week ago #338644 by tommylight
No worries, and you are welcomed, always.

Please Log in to join the conversation.

More
11 months 1 week ago #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.

Please Log in to join the conversation.

More
11 months 2 days ago #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 to join the conversation.

More
11 months 2 days ago #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 to join the conversation.

More
10 months 1 week ago #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?

Please Log in to join the conversation.

More
9 months 14 hours ago #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

 

Attachment not found

Attachment not found

Please Log in to join the conversation.

More
8 months 4 weeks ago #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. 

 

Attachment not found

Please Log in to join the conversation.

More
8 months 3 weeks ago #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 to join the conversation.

Time to create page: 0.117 seconds
Powered by Kunena Forum