Pokeys

More
10 Aug 2022 20:00 #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!!!
 

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

Best regards
Marcel
Attachments:

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

More
10 Aug 2022 20:37 - 11 Aug 2022 12:22 #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 ***********
 
 

File Attachment:

File Name: pokeys_202...-11.comp
File Size:3 KB

(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)
 
Attachments:
Last edit: 11 Aug 2022 12:22 by zarfld.

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

More
10 Aug 2022 21:15 #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 or Create an account to join the conversation.

More
12 Aug 2022 14:57 - 12 Aug 2022 16:31 #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...
 
(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
Attachments:
Last edit: 12 Aug 2022 16:31 by MATZE-ATZE-SCH.
The following user(s) said Thank You: zarfld

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

More
26 Aug 2022 17:08 #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
Attachments:
The following user(s) said Thank You: MATZE-ATZE-SCH

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

More
27 Aug 2022 18:55 #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
The following user(s) said Thank You: zarfld

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

More
23 Nov 2022 06:58 - 23 Nov 2022 06:59 #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
Attachments:
Last edit: 23 Nov 2022 06:59 by ChapEng.

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

More
23 Nov 2022 07:27 #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 or Create an account to join the conversation.

More
23 Nov 2022 07:38 #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 or Create an account to join the conversation.

More
23 Nov 2022 07:58 #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 or Create an account to join the conversation.

Time to create page: 0.393 seconds
Powered by Kunena Forum