HURCO KMB-1 Control Update

More
1 year 8 months ago - 1 year 8 months ago #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: 1 year 8 months ago by NT4Boy. Reason: Mistakes
The following user(s) said Thank You: tommylight

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

More
1 year 8 months ago - 1 year 8 months ago #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: 1 year 8 months ago by NT4Boy. Reason: typo

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

More
1 year 8 months ago #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
1 year 8 months ago #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
1 year 8 months ago #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
1 year 8 months ago - 1 year 8 months ago #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: 1 year 8 months ago by NT4Boy. Reason: typos

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

Time to create page: 0.079 seconds
Powered by Kunena Forum