Pokeys
- MATZE-ATZE-SCH
- Offline
- Senior Member
Less
More
- Posts: 51
- Thank you received: 6
10 Aug 2022 20:00 #249472
by MATZE-ATZE-SCH
Replied by MATZE-ATZE-SCH on topic Pokeys
Attachments:
Please Log in or Create an account to join the conversation.
10 Aug 2022 20:37 - 11 Aug 2022 12:22 #249476
by zarfld
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 ***********
(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)
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 ***********
(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.
- MATZE-ATZE-SCH
- Offline
- Senior Member
Less
More
- Posts: 51
- Thank you received: 6
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
I think position, scale and reset would be nice to have.
BR
Marcel
Please Log in or Create an account to join the conversation.
- MATZE-ATZE-SCH
- Offline
- Senior Member
Less
More
- Posts: 51
- Thank you received: 6
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
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.
26 Aug 2022 17:08 #250534
by zarfld
The following user(s) said Thank You: MATZE-ATZE-SCH
Please Log in or Create an account to join the conversation.
- MATZE-ATZE-SCH
- Offline
- Senior Member
Less
More
- Posts: 51
- Thank you received: 6
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
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.
23 Nov 2022 06:58 - 23 Nov 2022 06:59 #257431
by ChapEng
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
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
Last edit: 23 Nov 2022 06:59 by ChapEng.
Please Log in or Create an account to join the conversation.
23 Nov 2022 07:27 #257434
by zarfld
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
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.
23 Nov 2022 07:58 #257438
by zarfld
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.
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.
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.PoKeysLibDevicePoKeys57Industrial.c: In function ‘PK57i_SearchDevice’:
PoKeysLibDevicePoKeys57Industrial.c:221:12: warning: implicit declaration of function ‘GetBroadcastAddresses’ ...
Please Log in or Create an account to join the conversation.
Time to create page: 1.099 seconds