Lost Step Counter

More
8 years 2 weeks ago #118946 by DieselJoe
Replied by DieselJoe on topic Lost Step Counter
Hi I get nowher at this point. I spent 3 days on it...
I know a bit programing in C (arduino), but It's is to much to chew for me...
Python langage, HAL, linuxcnc structure ...
At this point I have a custom panel on the side of main screen.
I can display two interesting things:
for X axis for instance:

halui.axis.0.pos-commanded (which seems to reset to Zero when homing)
xpos-cmd (which seems to remain very absolute)

with this we can imagine a variable which make the difference and give the deviation
"deviation" = "X" - "absoluteX" - "previous deviation"
and a reset button to give to "previous deviation" variable the value of "deviation"

???!!!???? HELP

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

More
8 years 2 weeks ago #118950 by andypugh
Replied by andypugh on topic Lost Step Counter
Have you managed to get the file that I gave you to load as a HAL module?

It won't display anything until it is connected up in HAL.

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

More
8 years 2 weeks ago #118951 by DieselJoe
Replied by DieselJoe on topic Lost Step Counter
Hi,
I believe YES, I think a mistake in the copy/past in your post introduced a little mistake.
p1 = .......JOINT.pos-cmd right? (joint was missing)
now linuxCNC run, and I see this new pins in the HalMeter
nothing appears when I force a Home, and the halMeter remain at "0"
But I think it is an improvement yet :-)
I start understanding how it works... maybe...

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

More
8 years 2 weeks ago #118952 by andypugh
Replied by andypugh on topic Lost Step Counter
Do you have the HAL pins connected?

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

More
8 years 2 weeks ago #118953 by DieselJoe
Replied by DieselJoe on topic Lost Step Counter
Sh...t I forgot this.
I was so happy to succeed running linuxcnc eventualy.
I do it right now

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

More
8 years 2 weeks ago #118954 by DieselJoe
Replied by DieselJoe on topic Lost Step Counter
Now connected, I have your popup window working.
It show up asap I move the axis and just repeat the position.
Can you check the code and or the connection syntax?
But it's an improvement for my understanding of the system yet !
thank you
:-)

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

Time to create page: 0.237 seconds
Powered by Kunena Forum