Homing Switches - Expected State

More
07 Jun 2021 17:47 #211428 by Jeff_in_Wa
I can't figure out what Linuxcnc expects for the state of the home switches when the machine is off of the switches...

I've installed Prox Sensors which are NPN N/O devices. Should I just reverse what I had prior in the .hal file from

net home-y1 <= parport.0.pin-11-in-not

to

net home-y1 <= parport.0.pin-11-in

I understand that the net statement is the connection to the Parallel port on these lines. I understand that the -in is saying that those pins, 10,11,12,13 etc are inputs. What does the -not tell linuxcnc?

I can change the state by that -not being there or not, but I don't know why it should be changed or to which state with N/O switches. Man, I must be missing this by an inch

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

More
07 Jun 2021 17:52 #211429 by PCW
LinuxCNC expects it home and limit switch inputs to be active high (true = on switch)

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

More
07 Jun 2021 18:24 #211430 by Jeff_in_Wa
Thank you

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

More
08 Jun 2021 03:18 - 08 Jun 2021 03:55 #211475 by Jeff_in_Wa
So, now that I have the proximity sensors installed on the machine, after homing, the results are as follows:

Z stops after homing over the sensor + a few mm's
X finds the sensor, backs up and then pushes on the sensor a few mm's and stops
Y1 & Y2 are over the top of the sensors + a few mm's

I would like to come off of the sensors after homing. Here is how I have my X settings in the .ini file

Could someone tell me what to change so that I can back off the sensors by 7-8mm's and stop?

[AXIS_X]
MIN_LIMIT = -0.001
MAX_LIMIT = 1146
MAX_VELOCITY = 50.0
MAX_ACCELERATION = 250

[JOINT_0]
TYPE = LINEAR
HOME = 1140.0
MIN_LIMIT = -0.001
MAX_LIMIT 1146
MAX_VELOCITY = 50.0
MAX_ACCELERATION = 250.0
STPEGEN_MAXVEL - 75
STEPGEN_MAXACCEL = 300.0
SCALE = 100.0
FERROR = 10
MIN_FERROR = 1.0
HOME_OFFSET = 1146.0
#Manual Homing Section
HOME_SEARCH_VEL = -10
HOME_LATCH_VEL = 5
HOME_FINAL_VEL = 20
HOME_SEQUENCE = 1

Thank you

While waiting for an answer, I just realized, I can't home off of the switches. My home position is at the back right of the machine. I can't jog forward or move the X to the left. (switch is on right side of gantry)
Last edit: 08 Jun 2021 03:55 by Jeff_in_Wa.

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

More
08 Jun 2021 20:48 #211543 by BigJohnT
Read the home offset section.
linuxcnc.org/docs/2.8/html/config/ini-homing.html#_home_offset
You have the axis moving to 1146 from where the home switch was detected and that then becomes 0 for that axis.

JT

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

More
11 Jun 2021 14:15 #211807 by andypugh
The machine should set the position to 1146 (HOME_OFFSET = ) when it finds the switch, and then should make a rapid move to 1140 (HOME =)

You need to configure the HOME = to be somewhere off the switches.
The following user(s) said Thank You: Jeff_in_Wa

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

Time to create page: 0.067 seconds
Powered by Kunena Forum