Override no longer works

More
19 Aug 2016 16:28 #79081 by dirk61
hi Guys
Today I from my machine with parport
the custom.hal transferred to my new machine ..
Unfortunately work spindle and feed no longer override.
Signals A and B are to see and change the HAL-Meter
In encoder.1.counts unfortunately does not change.
What can not be true because ??

Yours sincerely Dirk

File Attachment:

File Name: custom.hal
File Size:2 KB


File Attachment:

File Name: my_LinuxCN...hine.hal
File Size:11 KB
Attachments:

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

More
19 Aug 2016 18:26 #79090 by cmorley
Replied by cmorley on topic Override no longer works
I see no where you have the feed/spindle override counts enabled:
halui.feed-override.count-enable true

While you have confirmed that encoder counts do actually change when the MPG is turned,
You should confirm more things:
Does halui.feed-override.value change ?
is halui.feed-override.count-enable true?
If you start the linuxcnc status program in axis (under MACHINE heading) and you move the encoder to you see
anything change color or value?

I'm thinking it's the count enable.

Chris M

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

More
19 Aug 2016 21:35 #79105 by dirk61
Replied by dirk61 on topic Override no longer works
Hello

halui.spindle-override.count-enable = TRUE
halui.spindle-override.value = 1 turn no change in

encoder.1.phase-A alternates between true and false
encoder.1.phase-B alternates between true and false

Can anything have to do with the area parport ??
Because here only servo is and no longer base

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

More
20 Aug 2016 06:48 #79119 by cmorley
Replied by cmorley on topic Override no longer works
ah yes. I'm sorry I miss read your post.

Yes i think you will need to add a base thread to use the parport as an encoder counter.
The servo thread is too slow to catch the changes.
Chris M

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

More
22 Aug 2016 15:29 #79257 by andypugh
Replied by andypugh on topic Override no longer works

Yes i think you will need to add a base thread to use the parport as an encoder counter.
The servo thread is too slow to catch the changes.


Actually, the servo-thread works fine. For a 100ppr MPG you can twirl it at 2.5 revs per second before there is a problem, and you dont actually notice missed-counts with an MPG.

I don't see the encoder HAL function being added to a thread anywhere. I suspect that its the problem.

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

More
22 Aug 2016 16:03 #79264 by dirk61
Replied by dirk61 on topic Override no longer works
Hello
can you please tell me what should I do exactly ?
did not specially written to my old HAL .
thank you.

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

More
23 Aug 2016 06:00 #79294 by dirk61
Replied by dirk61 on topic Override no longer works
Hello
Have added to HAL these lines.
There are counts counted the display will change but if I turn a little faster then losing or stops.
If the servo-thread too slow ??


addf encoder.update-counters servo-thread
addf encoder.capture-position servo-thread

Yours sincerely Dirk

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

More
23 Aug 2016 07:11 #79295 by dirk61
Replied by dirk61 on topic Override no longer works
Hello

Hello
Have now tried a base-thread in the HAL to load.
That can not.
Is it even possible ??
Wanted later out my A-axis running through the parport.
Is that even possible yet ??

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

More
23 Aug 2016 11:12 #79300 by andypugh
Replied by andypugh on topic Override no longer works
Yes, you can have a base-thread with a Mesa-card system. You need to add it to the "loadrt motmod" line in HAL:
linuxcnc.org/docs/2.7/html/man/man9/motion.9.html
In practice that is probably an INI file change.

You are using Mesa hardware, why not use that for the A axis and for the MPGs? What hardware are you using?

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

More
23 Aug 2016 12:34 #79306 by Todd Zuercher
Remember If you are trying to use a base thread with a Mesa card. If you want to read or write to I/O on the Mesa card in the base thread you have to move the read/write addf(s) for the Mesa card to the base thread as well, and there may be limits to how fast those can be done.

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

Time to create page: 0.100 seconds
Powered by Kunena Forum