WHB04B-4 Lead Switch Issue

More
2 years 11 months ago #285241 by bally123
Replied by bally123 on topic WHB04B-4 Lead Switch Issue
I had a read last night, will look at that some more this week and begin to work through it.

Lots of questions are springing up as I read due to unfamiliarity, but it's a place to start from. 

Id really appreciate it if I can have your compiled file, I can  verify the improvements you made and have an easier time on the machine until I get to a point where I'm implementing my own additional changes.

Thanks for your help... 

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

More
2 years 11 months ago #285272 by slammers
Replied by slammers on topic WHB04B-4 Lead Switch Issue
Sure, this file should go in the /usr/bin driectory

hopefully it works for you,

I think you should be able to run it from a terminal window

xhc-whb04b-6 -ue

and it will print out events when you press buttons on the pendant. 
 

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

More
2 years 11 months ago - 2 years 11 months ago #286079 by bally123
Replied by bally123 on topic WHB04B-4 Lead Switch Issue
Hi Slammers

I have installed a RIP linuxcnc system.(V2.9)   I now have the pendant driver terminal test mode working. I have added a few changes to pendant.cc and used a make command to recompile linuxcnc.

regards implementing these changes- did you compile just the driver or do a make linuxcnc ?

If there's a way to compile just the driver could you help me with the terminal commands and make file?

In terminal I attempted to  make the driver and obviously got an error, no rule to make target. I believe I need a make file - but I am a bit out of my depth here in terms of the content and syntax . I guess the submake file will give me some clues as to the content of the makefile ?

Thanks for the driver file - I will try that on my 2.8 machine later
 
Cheers Bally

 
Last edit: 2 years 11 months ago by bally123.

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

More
2 years 11 months ago #286093 by bally123
Replied by bally123 on topic WHB04B-4 Lead Switch Issue
Hi slammers

I tried your file but got an error trying to run the driver from terminal and same opening linuxcnc. 

Permission denied.

I simply renamed the existing file in bin and pasted your file. 

Any ideas?

Cheers Andy 
 

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

More
2 years 11 months ago - 2 years 11 months ago #286128 by slammers
Replied by slammers on topic WHB04B-4 Lead Switch Issue
Did you check the file permisions are correct? It needs to have execute permisions. Use chmod to set the permissions the same as the file you renamed.

I think you can compile just a particular component but its been a long time and i do not remember how to do it, I will have to try and figure it out.
Last edit: 2 years 11 months ago by slammers.

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

More
2 years 11 months ago #286129 by slammers
Replied by slammers on topic WHB04B-4 Lead Switch Issue
I think you can just do the following

cd into src directory then

make ../bin/xhc-whb04b-4

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

Time to create page: 0.282 seconds
Powered by Kunena Forum