HURCO KMB-1 Control Update

More
1 year 8 months ago #320990 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
Yes, it is the index pins that are inverted. Thanks.
net min-y <= hm2_7i92.0.encoder.03.input-index is a pin that needs inverting.
i tried with
net min-y <= hm2_7i92.0.encoder.03.input-index-not , but it errors
the other syntax my friendly AI chatbot suggests for this is:-

loadrt not count =2 (I'll just show one here)
add not.0 servo-thread
net my-input-signal-1 <= hm2_7i92.0.encoder.03.input-index
net inverted-signal-1 = not.0.in
net inverted-signal-1 => your-desired-component (which I guess is min-y)

I don't get what the connection is between inverted-signal-1 and my-input-signal-1
Or should all three lines read inverted-signal-1

Still trying to learn.

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

More
1 year 8 months ago #320991 by tommylight


loadrt not count =2 (I'll just show one here)
add not.0 servo-thread
net my-input-signal-1 <= hm2_7i92.0.encoder.03.input-index
net inverted-signal-1 = not.0.in
net inverted-signal-1 => your-desired-component (which I guess is min-y)
Yeah, that is not OK, should be something like
loadrt not count =2 <<<<< if you need two inverted pins, needs also another addf
addf not.0 servo-thread
addf not.1 servo-thread
net my-input-signal-1 <= hm2_7i92.0.encoder.03.input-index
net non-inverted-signal-1 = not.0.in
net inverted-signal-1 => not.0.out
net inverted-signal-1 => to whatever signal it needs to go

net my-input-signal-2 <= source of the input for inverting
net non-inverted-signal-2 = not.1.in
net inverted-signal-2 => not.1.out
net inverted-signal-2 => to whatever signal it needs to go

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

More
1 year 8 months ago #320994 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
I still don't follow it I am disappointed in my self to say.

But, have blindly entered:- (Pasted out of the hal file)

loadrt not count=2
addf not.0 servo-thread
addf not.1 servo-thread
net my-input-signal-1 <= hm2_7i92.0.encoder.03.input-index
net non-inverted-signal-1=not.0.in XXXXX
net inverted-signal-1 => not.0.out
net inverted-signal-1 => min-y
net my-input-signal-2 <= hm2_7i92.0.encoder.04.input-index
net non-inverted-signal-2=not.1.in
net inverted-signal-2 => not.1.out
net inverted-signal-2 => max-z

This errors at the line XXXXX with net command needs a pin

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

More
1 year 8 months ago - 1 year 8 months ago #320997 by tommylight
loadrt not count=2
addf not.0 servo-thread
addf not.1 servo-thread
net my-input-signal-1 <= not.0.in hm2_7i92.0.encoder.03.input-index
net inverted-signal-1 => not.0.out min-y

net my-input-signal-2 <= not.1.in hm2_7i92.0.encoder.04.input-index
net inverted-signal-2 => not.1.out max-z

Two mistakes there, one mine as i forgot to tie the signals together and yours = do not add or remove stuff randomly, xxxxx does not exist as a pin or function or parameter or anything.
Is the above easier to follow?
Last edit: 1 year 8 months ago by tommylight.

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

More
1 year 8 months ago #321000 by NT4Boy
Replied by NT4Boy on topic HURCO KMB-1 Control Update
Oh dear, I am for sure making heavy weather of this.
The revised code makes more sense in that I can kind of see the linkage now, but linuxcnc is unhappy with the net inverted-signal statement.

Pin 'min-y' does not exist

I was thinking that the point of that line was to create pin min-y

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

More
1 year 8 months ago - 1 year 8 months ago #321002 by PCW
Replied by PCW on topic HURCO KMB-1 Control Update
loadrt not count=2
addf not.0 servo-thread
addf not.1 servo-thread

net inverted-min-y <= not.0.in hm2_7i92.0.encoder.03.input-index
net min-y => not.0.out

net inverted-max-z <= not.1.in hm2_7i92.0.encoder.04.input-index
net max-z => not.1.out

"net" syntax is

net signal pin [pin] [pin]

if "signal" does not exist, it will be created
if "signal" does exist, the pins in the net statement will be added
to the existing pins already connected to the signal.

In this case its assumed that the signals min-y and max-z already exist and
connect to linuxcnc's joint limit and possibly home pins.
 
Last edit: 1 year 8 months ago by PCW. Reason: less generic signal names
The following user(s) said Thank You: NT4Boy

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

Time to create page: 0.204 seconds
Powered by Kunena Forum