Machine only moves 1/12 the distance in G1 code line
- Les91
 - Offline
 - New Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 6
 - Thank you received: 0
 
			
	
						07 Dec 2016 19:40				#83750
		by Les91
	
	
		
			
	
	
			
			 		
													
	
				Machine only moves 1/12 the distance in G1 code line was created by Les91			
			
				When runnig the cnc config wizard, I checked each axis and they moved the specified amount. When I run the attached G code file, the machine moves only 0.39 inches for the 2 - 5 inch moves. Do I have to config the G code interpreter? Can you help.
Thanks
					Thanks
Please Log in or Create an account to join the conversation.
- Todd Zuercher
 - 
				
											 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 4686
 - Thank you received: 1433
 
			
	
						07 Dec 2016 20:06				#83752
		by Todd Zuercher
	
	
		
			
	
			
			 		
													
	
				Replied by Todd Zuercher on topic Machine only moves 1/12 the distance in G1 code line			
			
				That is easy, your first line of your G-code file has G21 (mm-mode) in it.  Change it to G20 (inch mode).
			
					(Test Link CNC)
G21 G90 G61 G40 F3 (change the G21 to G20 here!)
G0 X5 Y5
G91
G1 X5 F10
G1 Y5 F3
G1 X-5
G1 Y-5
G90
G0 X0 Y0
M2Please Log in or Create an account to join the conversation.
- andypugh
 - 
				
											 - Offline
 - Moderator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 19678
 - Thank you received: 4559
 
			
	
						07 Dec 2016 22:59				#83758
		by andypugh
	
	
		
			
	
			
			 		
													
	
				Replied by andypugh on topic Machine only moves 1/12 the distance in G1 code line			
			
				There might well still be a factor of 2 error. If there is then it is likely to be due to the driver microstep setting not matching what LinuxCNC was told.
You can fix it in Stepconf, edit the INI file or alter the settings on the drive, as you feel fit.
But only one of those, not all three
			
					You can fix it in Stepconf, edit the INI file or alter the settings on the drive, as you feel fit.
But only one of those, not all three
Please Log in or Create an account to join the conversation.
- Todd Zuercher
 - 
				
											 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 4686
 - Thank you received: 1433
 
			
	
						08 Dec 2016 02:28				#83767
		by Todd Zuercher
	
	
		
			
	
			
			 		
													
	
				Replied by Todd Zuercher on topic Machine only moves 1/12 the distance in G1 code line			
			
				Good catch Andy.  Lazy me, I didn't bother to do the math.			
					Please Log in or Create an account to join the conversation.
		Time to create page: 0.132 seconds