Help Needed: Cracking the Code on LinuxCNC Servo Homing Setup!

More
2 years 4 months ago #303424 by Aciera

sets joint.0.custom-homing-is-requested true

You are using the wrong hal command (sets) here as that is for setting a signal.
Use 'setp' instead:
Code:
setp joint.0.custom-homing-is-requested true

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

More
2 years 4 months ago #303425 by eduard
Ok, I changed to setp, but the pin is not writebale.

M5_EtherCAT.hal:33: pin 'joint.0.custom-homing-is-requested' is not writable

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

More
2 years 4 months ago - 2 years 4 months ago #303426 by Aciera
[edit]
We are trying to set the wrong pin
I'm sorry the line should be:
Code:
setp joint.0.request-custom-homing true
Last edit: 2 years 4 months ago by Aciera. Reason: fix wrong command

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

More
2 years 4 months ago #303427 by eduard
Yepp, I did not see either.

But here is the next error:
HAL: ERROR: signal 'x-home-request' already has output pin

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

More
2 years 4 months ago #303428 by Aciera
Besides this line:
Code:
net x-home-request joint.0.custom-homing-is-requested => cia402.0.home
do you have another line with 'x-home-request' in your hal?
 

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

More
2 years 4 months ago #303429 by Aciera
Ok, it seems that 'cia402.0.home' is of type 'IO' not 'IN' so I changed the custom homing comp to make 'joint.0.custom-homing-is-requested' have type 'IO'. Not sure if this works but give it a go:
 

File Attachment:

File Name: el8_homeco...06-20.gz
File Size:4.47 KB


Don't forget to halcompile --install the new comp.

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

Time to create page: 0.410 seconds
Powered by Kunena Forum