Set the home pos.
- Aciera
- 
				  
- Offline
- Administrator
- 
				  
		Less
		More
		
			
	
		- Posts: 4554
- Thank you received: 2028
			
	
						27 Nov 2020 15:14				#190451
		by Aciera
	
	
		
			
	
			
			 		
													
	
				Replied by Aciera on topic Set the home pos.			
			
				So connect them to the Parallel port and make sure they work when you check them in the "Show Hal configuration" inside LinuxCNC.
Some general information:
linuxcnc.org/docs/2.8/html/config/ini-homing.html
Then you set it up for each [joint] in the ini file
					Some general information:
linuxcnc.org/docs/2.8/html/config/ini-homing.html
Then you set it up for each [joint] in the ini file
Please Log in or Create an account to join the conversation.
- Rørbæk
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 53
- Thank you received: 7
			
	
						29 Nov 2020 16:39				#190612
		by Rørbæk
	
	
		
			
	
			
			 		
													
	
				Replied by Rørbæk on topic Set the home pos.			
			
				I have made the hardstops but i dont now abot they work. You write that i shall look on the hal file do i have to have it open while i am moving around with the axis.
am sorry if i am a little slow but i am not used to use linux, and my english is not the best in the world. I am also a not so young man 75 ears old and carpenter of proffesion. so please be pation with me i am very happy that you are helping me.
Henrik
					am sorry if i am a little slow but i am not used to use linux, and my english is not the best in the world. I am also a not so young man 75 ears old and carpenter of proffesion. so please be pation with me i am very happy that you are helping me.
Henrik
Please Log in or Create an account to join the conversation.
- Aciera
- 
				  
- Offline
- Administrator
- 
				  
		Less
		More
		
			
	
		- Posts: 4554
- Thank you received: 2028
			
	
						30 Nov 2020 07:36				#190657
		by Aciera
	
	
		
			
	
			
			 		
													
	
				Replied by Aciera on topic Set the home pos.			
			
				Ok, maybe best for you to attach your .hal and .ini files.  Do you know where to find them and how to attach them here?			
					Please Log in or Create an account to join the conversation.
- Rørbæk
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 53
- Thank you received: 7
			
	
						30 Nov 2020 13:05				#190670
		by Rørbæk
	
	
		
			
	
			
			 		
													
	
				Replied by Rørbæk on topic Set the home pos.			
			
				I thought that i have already done that  please look on the last pos, on the first page.
Othewise i will try again.
Henrik
					Othewise i will try again.
Henrik
Please Log in or Create an account to join the conversation.
- Aciera
- 
				  
- Offline
- Administrator
- 
				  
		Less
		More
		
			
	
		- Posts: 4554
- Thank you received: 2028
			
	
						30 Nov 2020 13:55				#190677
		by Aciera
	
	
		
			
	
			
			 		
													
	
				Replied by Aciera on topic Set the home pos.			
			
				Ah yes, so you did. What pins on the parallel port are the signals from the switches coming in on?			
					Please Log in or Create an account to join the conversation.
- Rørbæk
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 53
- Thank you received: 7
			
	
						01 Dec 2020 16:33				#190778
		by Rørbæk
	
	
		
			
	
			
			 		
													
	
				Replied by Rørbæk on topic Set the home pos.			
			
				pin 15 is Z axis
- 13 - X -
- 12 - Y -
- 11 is reserved for probe plate
Henrik
					- 13 - X -
- 12 - Y -
- 11 is reserved for probe plate
Henrik
Please Log in or Create an account to join the conversation.
- Aciera
- 
				  
- Offline
- Administrator
- 
				  
		Less
		More
		
			
	
		- Posts: 4554
- Thank you received: 2028
			
	
						01 Dec 2020 16:58		 -  01 Dec 2020 17:02		#190781
		by Aciera
	
	
		
			
	
	
			 		
													
	
				Replied by Aciera on topic Set the home pos.			
			
				So, add this to your HAL file:
This to the appropriate [JOINT] sections of your INI file:
in [JOINT 0] and [AXIS X] sections you will need to change the Limits to:
Then for the homing:
[JOINT 0]
[JOINT 1]
[JOINT 2]
You will have to fine tune these settings:
linuxcnc.org/docs/html/config/ini-homing.html
[edit]
This assumes that your switches are normally open.
					net both-home-x   <= parport.0.pin-13-in
net both-home-y   <= parport.0.pin-12-in
net both-home-z   <= parport.0.pin-15-in
net both-home-x  => joint.0.pos-lim-sw-in => joint.0.neg-lim-sw-in => joint.0.home-sw-in 
net both-home-y  => joint.1.pos-lim-sw-in => joint.1.neg-lim-sw-in => joint.1.home-sw-in 
net both-home-x  => joint.2.pos-lim-sw-in => joint.2.neg-lim-sw-in => joint.2.home-sw-in This to the appropriate [JOINT] sections of your INI file:
in [JOINT 0] and [AXIS X] sections you will need to change the Limits to:
MIN_LIMIT = -0.1
MAX_LIMIT = 390.0Then for the homing:
[JOINT 0]
HOME_SEARCH_VEL = -5
HOME_LATCH_VEL = -5
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 2
[JOINT 1]
HOME_SEARCH_VEL = -5
HOME_LATCH_VEL = -5
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 1
[JOINT 2]
HOME_SEARCH_VEL = 5
HOME_LATCH_VEL = 5
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = YES
HOME_SEQUENCE = 0
You will have to fine tune these settings:
linuxcnc.org/docs/html/config/ini-homing.html
[edit]
This assumes that your switches are normally open.
		Last edit: 01 Dec 2020 17:02  by Aciera.			
	
		The following user(s) said Thank You: Rørbæk 	
			Please Log in or Create an account to join the conversation.
- Rørbæk
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 53
- Thank you received: 7
			
	
						01 Dec 2020 20:25				#190794
		by Rørbæk
	
	
		
			
	
			
			 		
													
	
				Replied by Rørbæk on topic Set the home pos.			
			
				Thank you i will try tomorrow and let you
Thank you for your time
Henrik
					Thank you for your time
Henrik
Please Log in or Create an account to join the conversation.
- Rørbæk
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 53
- Thank you received: 7
			
	
						02 Dec 2020 11:58				#190867
		by Rørbæk
	
	
		
			
	
	
			
			 		
													
	
				Replied by Rørbæk on topic Set the home pos.			
			
				I have changed what wrote plus i have changed the y axis to .1 and 590 as the bed id 60cm
I am i doubt what about the Z axis.
see the Att. thats how the HAL and INI file looks like now.
Henrik
					I am i doubt what about the Z axis.
see the Att. thats how the HAL and INI file looks like now.
Henrik
Please Log in or Create an account to join the conversation.
- Aciera
- 
				  
- Offline
- Administrator
- 
				  
		Less
		More
		
			
	
		- Posts: 4554
- Thank you received: 2028
			
	
						02 Dec 2020 13:01				#190870
		by Aciera
	
	
		
			
	
			
			 		
													
	
				Replied by Aciera on topic Set the home pos.			
			
				You need to delete these lines in your HAL:
net home-x => joint.0.home-sw-in
net home-y => joint.1.home-sw-in
net home-z => joint.2.home-sw-in
Then click the home button and report back.
					net home-x => joint.0.home-sw-in
net home-y => joint.1.home-sw-in
net home-z => joint.2.home-sw-in
Then click the home button and report back.
Please Log in or Create an account to join the conversation.
		Time to create page: 0.145 seconds	
