Pokeys_homecomp EncoderSearch / Encoder Arm Topic: Pos_Fb Following errors
- MATZE-ATZE-SCH
- Offline
- Senior Member
-
- Posts: 51
- Thank you received: 6
Attachments:
Please Log in or Create an account to join the conversation.
- zarfld
- Offline
- Junior Member
-
- Posts: 38
- Thank you received: 14
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:
Please Log in or Create an account to join the conversation.
- MATZE-ATZE-SCH
- Offline
- Senior Member
-
- Posts: 51
- Thank you received: 6
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
-
- Posts: 51
- Thank you received: 6
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:
Please Log in or Create an account to join the conversation.
- zarfld
- Offline
- Junior Member
-
- Posts: 38
- Thank you received: 14
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 or Create an account to join the conversation.
- MATZE-ATZE-SCH
- Offline
- Senior Member
-
- Posts: 51
- Thank you received: 6
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 or Create an account to join the conversation.
- ChapEng
- Offline
- New Member
-
- Posts: 15
- Thank you received: 5
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 or Create an account to join the conversation.
- zarfld
- Offline
- Junior Member
-
- Posts: 38
- Thank you received: 14
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.
- rodw
-
- Offline
- Platinum Member
-
- Posts: 11148
- Thank you received: 3705
I have the same issue.
Please Log in or Create an account to join the conversation.
- zarfld
- Offline
- Junior Member
-
- Posts: 38
- Thank you received: 14
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.