- Configuring LinuxCNC
- Configuration Tools
- PnCConf Wizard
- Gantry System reversing direction of Motor on y2
Gantry System reversing direction of Motor on y2
- Creative25
- Offline
- Premium Member
- 
				  
		Less
		More
		
			
	
		- Posts: 150
- Thank you received: 11
			
	
						14 Mar 2021 17:14				#202229
		by Creative25
	
	
		
			
	
			
			 		
													
	
				Gantry System reversing direction of Motor on y2 was created by Creative25			
			
				I am trying to test my setup for a gantry system. So I want Stepper Motors of y and y2 to move in opposite direction. Is this done by inverting the dir pin for y2 or is there a better way of doing it?			
					Please Log in or Create an account to join the conversation.
- PCW
- 
				  
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 17371
- Thank you received: 5064
			
	
						14 Mar 2021 17:51				#202232
		by PCW
	
	
		
			
	
			
			 		
													
	
				Replied by PCW on topic Gantry System reversing direction of Motor on y2			
			
				I think there are at least four ways to do this, 2 in hal and 2 with wiring changes:
1. Inverting the direction pin in hal
2. Changing the sign of the step scale in hal
3. If you are using differential drive so you have
DIR+ and DIR-, swapping these will reverse the direction
4. Swapping polarity on one of the motor windings
Your choice...
					1. Inverting the direction pin in hal
2. Changing the sign of the step scale in hal
3. If you are using differential drive so you have
DIR+ and DIR-, swapping these will reverse the direction
4. Swapping polarity on one of the motor windings
Your choice...
Please Log in or Create an account to join the conversation.
- Creative25
- Offline
- Premium Member
- 
				  
		Less
		More
		
			
	
		- Posts: 150
- Thank you received: 11
			
	
						14 Mar 2021 18:13				#202238
		by Creative25
	
	
		
			
	
			
			 		
													
	
				Replied by Creative25 on topic Gantry System reversing direction of Motor on y2			
			
				Thanks for the info I did not know of swapping the dir pins , do they actually swap polarity?
I will use one of the wiring methods to keep it simple.
					I will use one of the wiring methods to keep it simple.
Please Log in or Create an account to join the conversation.
- andypugh
- 
				  
- Offline
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 19677
- Thank you received: 4554
			
	
						15 Mar 2021 15:19				#202358
		by andypugh
	
	
		
			
				
I would always do it in HAL, to keep it simple.
You will always have access to HAL, but wiring gets buried in the machine.
I generally change the sign of the step_scale.
					
	
			
			 		
													
	
				Replied by andypugh on topic Gantry System reversing direction of Motor on y2			
			I will use one of the wiring methods to keep it simple.
I would always do it in HAL, to keep it simple.
You will always have access to HAL, but wiring gets buried in the machine.
I generally change the sign of the step_scale.
Please Log in or Create an account to join the conversation.
- Creative25
- Offline
- Premium Member
- 
				  
		Less
		More
		
			
	
		- Posts: 150
- Thank you received: 11
			
	
						15 Mar 2021 17:35				#202375
		by Creative25
	
	
		
			
	
			
			 		
													
	
				Replied by Creative25 on topic Gantry System reversing direction of Motor on y2			
			
				Can’t find step_scale in Hal only in the ini file.			
					Please Log in or Create an account to join the conversation.
- andypugh
- 
				  
- Offline
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 19677
- Thank you received: 4554
			
	
						15 Mar 2021 17:54				#202377
		by andypugh
	
	
		
			
				
The HAL reads it from the INI, so change it in the INI.
					
	
	
			 		
													
	
				Replied by andypugh on topic Gantry System reversing direction of Motor on y2			
			Can’t find step_scale in Hal only in the ini file.
The HAL reads it from the INI, so change it in the INI.
		The following user(s) said Thank You: Creative25 	
			Please Log in or Create an account to join the conversation.
- Creative25
- Offline
- Premium Member
- 
				  
		Less
		More
		
			
	
		- Posts: 150
- Thank you received: 11
			
	
						15 Mar 2021 17:59				#202378
		by Creative25
	
	
		
			
	
			
			 		
													
	
				Replied by Creative25 on topic Gantry System reversing direction of Motor on y2			
			
				So basically I change the number that is there into a minus number
For example from 67 to -67 ?
					For example from 67 to -67 ?
Please Log in or Create an account to join the conversation.
- andypugh
- 
				  
- Offline
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 19677
- Thank you received: 4554
			
	
						15 Mar 2021 18:04				#202380
		by andypugh
	
	
		
			
	
	
			 		
													
	
				Replied by andypugh on topic Gantry System reversing direction of Motor on y2			
			
				Exactly.			
					
		The following user(s) said Thank You: Creative25 	
			Please Log in or Create an account to join the conversation.
- Creative25
- Offline
- Premium Member
- 
				  
		Less
		More
		
			
	
		- Posts: 150
- Thank you received: 11
			
	
						15 Mar 2021 18:48				#202386
		by Creative25
	
	
		
			
	
			
			 		
													
	
				Replied by Creative25 on topic Gantry System reversing direction of Motor on y2			
			
				It works.			
					Please Log in or Create an account to join the conversation.
		Moderators: cmorley	
- Configuring LinuxCNC
- Configuration Tools
- PnCConf Wizard
- Gantry System reversing direction of Motor on y2
		Time to create page: 0.099 seconds	
