Pokeys_homecomp EncoderSearch / Encoder Arm Topic: Pos_Fb Following errors

More
4 years 2 months ago #249472 by MATZE-ATZE-SCH
Replied by MATZE-ATZE-SCH on topic Pokeys
It seems to work!!!
The . alive is blinking,
.in-1 works also, the .deb is counting up and restarts every time...
.ain-0 with a poti works also...
and the counter works!!!
 

Attachment not found



Big thank to you, Dominik!
Friday I set up a second encoder, I will tell you if all works!

Best regards
Marcel

Please Log in to join the conversation.

More
4 years 2 months ago #249476 by zarfld
Replied by zarfld on topic Pokeys
Hi Matze,

I'm glad to hear that.

do you think we might need to extend that as described in chapter "4.5 Encoder" of www.linuxcnc.org/docs/2.2/HAL_User_Manual.pdf ?

calculating "postion" using parameter "scale" should be a short one.

i can imagine that at some point "reset" might be needed, there is a PK_EncoderValuesSet() which we could use to reset the counter to 0 on pokeys for that task.

for "index-enable" i think it will be not that easy to get the next-pulse directly, maybe i just use the next loop when "counter"-value changed. (as a workaround)

for velocity we would also need to get timers involved which might get a bit complicated, but nut sure if it will be needed at this time.

(i anyway planned to do that on my pokeys.comp on github)

BR
dominik

****** edit ***********
 

Attachment not found


 

Attachment not found


(please note: when doing reset with current pokeyslib it's not yet possible to write/reset single encoder values to device - so i might expect issues depending if some encoders moved between ReadEncoders&WriteEncoders)
 

Please Log in to join the conversation.

More
4 years 2 months ago #249480 by MATZE-ATZE-SCH
Replied by MATZE-ATZE-SCH on topic Pokeys
Hi Dominik,

I think position, scale and reset would be nice to have.

BR
Marcel

Please Log in to join the conversation.

More
4 years 2 months ago #249595 by MATZE-ATZE-SCH
Replied by MATZE-ATZE-SCH on topic Pokeys
Hey Dominik,

tried it out, the .scale and .position works.
But the .reset dosn´t...
 

Attachment not found


(I assume if I hit reset, the .count will be set to 0?)

EDIT:
I think it would be good, if the reset is be done at start of Linuxcnc...
If the last .count valvue was for example 10, at a restart of Linuxcnc it is 10, too...
So for my example to use it for feed-override, it is set at 110% at start of linuxcnc...


Best regards
Marcel

Please Log in to join the conversation.

More
4 years 2 months ago #250534 by zarfld
Replied by zarfld on topic Pokeys
Hi Marcel,

sorry for my late reply. Now i also have my encoder wheel wired to my pokeys57CNC.

i think i found the problem.
(reset at startup is added also)

did you setup this encoder for jog-wheel operation or as position feedback?

BR
dominik

Please Log in to join the conversation.

More
4 years 2 months ago #250590 by MATZE-ATZE-SCH
Replied by MATZE-ATZE-SCH on topic Pokeys
Hey Dominik,

thank you for the new file, this works as it should.

I set up the encoder for feed- and rapid-override.
had first a poti, but like the encoder-style with push-button for reset more...

Best regards
Marcel

Please Log in to join the conversation.

More
3 years 11 months ago #257431 by ChapEng
Replied by ChapEng on topic Pokeys
G'day Dominik (or anyone else who knows their way around pokeys on linuxCNC).

I've tried following the steps on page one of this thread, but keep running into errors at the make step. I have attached an error log to this post. Does anyone have and idea what I am doing wrong?

Thanks, Matt

Please Log in to join the conversation.

More
3 years 11 months ago #257434 by zarfld
Replied by zarfld on topic Pokeys
there are updated instructions, which can be found on page 10.

which usually work as described.
forum.linuxcnc.org/24-hal-components/298...rnet?start=90#162953

it includes Reading of digital and analog inputs.
(my component is extended to also read use kbd48CNC, and basic functionality of PulseEngine, external Relays or OpenCollector outs - but as it is doing this it creates to many Pins if it is just added to an existing HAL-file)

BR
Dominik

Please Log in to join the conversation.

More
3 years 11 months ago #257436 by rodw
Replied by rodw on topic Pokeys
If you review the errors, it is failing during the build process.
I have the same issue.

Please Log in to join the conversation.

More
3 years 11 months ago #257438 by zarfld
Replied by zarfld on topic Pokeys

If you review the errors, it is failing during the build process.
I have the same issue. 
 
you get these build errors even if you use the update instructions (page 10)?

i did not have problems so far - but there might be some changes (pokeyslib, linux,...) since i did my last build on that component.


 

PoKeysLibDevicePoKeys57Industrial.c: In function ‘PK57i_SearchDevice’:
PoKeysLibDevicePoKeys57Industrial.c:221:12: warning: implicit declaration of function ‘GetBroadcastAddresses’ ...
 

so it seems that pokeyslib commit "Merge of updated PoKeysLib to public repository"(2022-06-23) includes a change for PoKeysLibDevicePoKeys57Industrial.c, which might cause that problem.

Please Log in to join the conversation.

Time to create page: 0.316 seconds
Powered by Kunena Forum