Homing switches dont react, CNC goes on.

More
21 Oct 2024 12:58 #312745 by TheProcessTechnician
Hi there
Could solve the GPIO Problem, but now i got another problem:
The homing switches don't react.
Tested the switches and pins, everything does as it should (input is normally 1, if it touches it opens ->0), but if theĀ  machine touches the switches, it goes on with driving. what did I do wrong?
INI file:

File Attachment:

File Name: Badog_cubique.ini
File Size:3 KB

HAL file:

File Attachment:

File Name: Badog_cubi...tual.hal
File Size:4 KB
Attachments:

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

More
21 Oct 2024 14:27 - 21 Oct 2024 14:30 #312752 by Aciera

everything does as it should (input is normally 1, if it touches it opens ->0),

Have you checked that the relevant pins
'joint.0.home-sw-in'
'joint.1.home-sw-in'
'joint.2.home-sw-in'

Change from 0 to 1 when the switch is activated?
Last edit: 21 Oct 2024 14:30 by Aciera.
The following user(s) said Thank You: TheProcessTechnician

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

More
21 Oct 2024 14:44 #312754 by TheProcessTechnician
Value is set to FALSE even if I press the button.

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

More
21 Oct 2024 15:31 #312761 by Aciera
Follow the trail and watch the hal input pins:

net min-home-x <= hal_gpio.PIN40-in
net min-home-y <= hal_gpio.PIN36-in
net min-home-z <= hal_gpio.PIN38-in

If these are also not changing state (as I would expect) then you have a problem with the hal_gpio driver (which I know nothing about).
The following user(s) said Thank You: TheProcessTechnician

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

More
21 Oct 2024 18:08 #312781 by TheProcessTechnician
Arrrrgs, im an idiot. forgot to add read to the base thread...

addf hal_gpio.read base-thread

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

Time to create page: 0.076 seconds
Powered by Kunena Forum