HURCO KMB-1 Control Update

More
24 Feb 2025 20:29 #322528 by PCW
Replied by PCW on topic HURCO KMB-1 Control Update
Typically you use 1X quadrature mode for MPGs (the 7I73 default)

If in doubt about pin names, you can always follow the pin tree in halshow  or do something like:

halcmd show all | grep -i 7i73

(when linuxcnc is running)
 
The following user(s) said Thank You: NT4Boy

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

More
24 Feb 2025 20:50 #322529 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
Thanks Peter,
So ... <= hm2_7i92.0.7i73.0.2.analogin0, 1, 2 are confirmed
as are both
<= hm2_7i92.0.7i73.0.2.enc0.rawcounts and
<= hm2_7i92.0.7i73.0.2.input-08

but I guess one is processing the data differently from the other.

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

More
01 Mar 2025 12:25 #322918 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
7i92 P2 7i77 serial 7i73
I said above that analog was confirmed, not true as I was seeing parameters, not pins.
I've read many posts about enabling the analog mode for inputs 0-7, but cannot get my head around the syntax.

looks like it might be
loadrt hm2_7i92.0.7i73.0.2 config="sserial_port_0=01000000"

But I'm not certain

Would you check for please.
Thanks

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

More
01 Mar 2025 13:31 - 01 Mar 2025 13:33 #322922 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
I found I had this statement in my hal file...
loadrt hm2_eth board_ip="10.10.10.10" config="num_encoders=6 num_pwmgens=0 num_stepgens=0 sserial_port_0=000xxxxx"

so I have tried
0=010xxxxx"
0=020xxxxx"
But cannot find these
hm2_7i92.0.7i73.0.2.analogin0, 1, 2
I have my pots connected to the IN0 ,1,2 pins and in halshow
on pins
hm2_7i92.0.7i73.0.2.input-00 etc, the lights change from red to yellow as the pot is turned, so electrically looks ok.
still mystified.
Last edit: 01 Mar 2025 13:33 by NT4Boy. Reason: typos

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

More
01 Mar 2025 17:11 - 01 Mar 2025 17:12 #322945 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
sserial_port_0=001xxxxx"  works for me

Maybe the third position is the third card?

Anyway, another step on the journey.
Last edit: 01 Mar 2025 17:12 by NT4Boy.
The following user(s) said Thank You: tommylight

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

More
01 Mar 2025 18:55 - 01 Mar 2025 19:02 #322956 by PCW
Replied by PCW on topic HURCO KMB-1 Control Update
The sserial_port_0 parameter sets the modes for sserial channels 0.N in
left to right order of channels so sserial_port_0=001xxxxx means set

sserial channel 0 -> mode 0
sserial channel 1 -> mode 0
sserial channel 2 -> mode 1
sserial channels 3..7 = x = disabled

The channels used in a a particular FPGA configuration can
be determined with mesaflash's --readhmid command
Last edit: 01 Mar 2025 19:02 by PCW.

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

More
01 Mar 2025 19:37 #322958 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
Peter,
Thank you. I can see the logic behind that, what I think was lost is the significance of the channel numbers and why I'd have to use the third channel for this card.
I think I see it like this. The sserial instruction is to the host card ie 0, (7i92, ) in my case. Plugged into which is a daughter, could be two of them, but only one (7i77) here, and that's therefore channel 1, and lastly, the smart serial card 7i73 that hangs off the 7i77must be channel 2

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

More
01 Mar 2025 22:22 #322967 by PCW
Replied by PCW on topic HURCO KMB-1 Control Update
They don't _have_ to be:

0 = 7i77 #1 digital I/O
1 = 7I77 #1 analog output
2 = 7I77 #1 expansion channel

Buts that's the way the standard firmware arranges them.
The following user(s) said Thank You: NT4Boy

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

More
02 Mar 2025 12:35 - 02 Mar 2025 12:40 #323009 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
Page went wrong, so recreated below.
Last edit: 02 Mar 2025 12:40 by NT4Boy.

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

More
02 Mar 2025 12:39 - 02 Mar 2025 12:41 #323010 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
Last bit of the puzzle?
I've now got my feed override pots, kind of working, in that I can twiddle them, and the axis gui sliders update.The full scale voltage swing is 0-3.3v. Need to tune the scaling as the gui seems to think my pots only have three steps, rather than being continuously variable, a task for later.
More importantly to me is the Jog wheel.
I'd like to duplicate the original machine button functions, as they are ingrained...but, for the moment, I'm happy just to get the wheel to move an axis.
The attached hal file is nominally as published and is called in my system by the custom.hal.
In hal show, I can see counts rising and falling with the wheel being turned, and the 5 button all light up relevant pins when they are pressed.
As the buttons are momentary contact, I reasoned that if I pressed and held down say X and span the wheel, that the X axis would move, but nothing does.
As ever missing some vital part of the plot. Thanks
Attachments:
Last edit: 02 Mar 2025 12:41 by NT4Boy.

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

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