Pokeys_homecomp EncoderSearch / Encoder Arm Topic: Pos_Fb Following errors

More
7 years 10 months ago #121720 by andypugh
Replied by andypugh on topic Pokeys
Does moving the "setp" into the my_mill.hal help?

If you start linuxCNC from the command line (command "linuxcnc") is there any helpful output in the terminal?

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

More
7 years 10 months ago #121722 by Erikcnc
Replied by Erikcnc on topic Pokeys
if i put all the commands in my_mill.hal file i got a error.

this is the (test) code
Code:
setp pokeys.0.devSerial 38163 loadusr -W pokeys # --- ALL-HOME --- net all-home pokeys.0.in-2 => halui.home-all

if i start linuxcnc (program) , the error says:

parameter or pin 'pokeys.0.devSerial' not found

posting 'setp pokeys.0.devSerial 38163' in costom_postgui.hal linuxcnc starts, but no respons from the pokeys

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

More
7 years 10 months ago #121726 by andypugh
Replied by andypugh on topic Pokeys
You will need to load the component before you try to set any of its hal pins.

Swap the order of those two lines.

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

More
7 years 10 months ago - 7 years 10 months ago #121729 by Erikcnc
Replied by Erikcnc on topic Pokeys
Do you mean this?:
Code:
loadusr -W pokeys setp pokeys.0.devSerial 38163

Or swap the pin command?
Code:
net halui.home-all => pokeys.0.in-2


I tried the first one though. Didn't work.
Last edit: 7 years 10 months ago by Erikcnc.

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

More
7 years 10 months ago #121730 by andypugh
Replied by andypugh on topic Pokeys
Whatever else is wrong, you definitely need to loadusr the component before you try to set any of its pins. The pins won't exist until it is loaded.

-W should mean that the loadusr command waits for the component to be ready before continuing.

When you say "Didn't work" what error message do you see?

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

More
7 years 10 months ago - 7 years 10 months ago #121802 by Erikcnc
Replied by Erikcnc on topic Pokeys
This is what i got now.


in my_mill.hal file
Code:
loadusr -W pokeys net all-home pokeys.0.in-2 => halui.home-all


in postgui_call_list.hal file
Code:
setp pokeys.0.devSerial 38163

If i use terminal with:
Code:
halrun halcmd: loadusr -W pokeys halcmd: setp pokeys.0.devSerial 38163 halshow

Pokeys response to the switches i installed before. Check, pokeys works.

I close terminal.

I start Linuxcnc (Gmoccapy)

Emergency butten ---> Machine Enable.
Go to settings ---> button Halshow

I go to watch en selecting the pins from the pokeys.

No response from my pre installed buttons.

Eny one got an example how it should look like?
Last edit: 7 years 10 months ago by Erikcnc.

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

Time to create page: 0.145 seconds
Powered by Kunena Forum