7i96 Configuration Tool
- tommylight
- 
				  
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 20847
- Thank you received: 7107
			
	
						15 Nov 2019 03:48				#150401
		by tommylight
	
	
		
			
	
			
			 		
													
	
				Replied by tommylight on topic 7i96 Configuration Tool			
			
				I did remember that i had to do that once a while back and "yes" did not work, but 1 did.
Glad i remembered correctly.
					Glad i remembered correctly.
Please Log in or Create an account to join the conversation.
- jools
- 
				  
- Offline
- Elite Member
- 
				  
		Less
		More
		
			
	
		- Posts: 161
- Thank you received: 15
			
	
						19 Nov 2019 13:58		 -  19 Nov 2019 14:24		#150644
		by jools
	
	
		
			
	
	
			 		
													
	
				Replied by jools on topic 7i96 Configuration Tool			
			
				There seems to be a bug in my system.
I flashed using the tool and the 4 stepgen and 1 PWM. On opening LCNC there were no manual spindle button controls.
I added some HAL as documented in the spindle section of the DOC's and the buttons showed up but clicking on them does nothing to the voltage at the PWM plus and minus pins on the 7i96 which stays at -5v.
Jools
Just tried a brand new configuration to see if I'm going nuts and it threw an error on start up saying
pin 'motion.spindle-forward' does not exist.
					I flashed using the tool and the 4 stepgen and 1 PWM. On opening LCNC there were no manual spindle button controls.
I added some HAL as documented in the spindle section of the DOC's and the buttons showed up but clicking on them does nothing to the voltage at the PWM plus and minus pins on the 7i96 which stays at -5v.
Jools
Just tried a brand new configuration to see if I'm going nuts and it threw an error on start up saying
pin 'motion.spindle-forward' does not exist.
		Last edit: 19 Nov 2019 14:24  by jools.			
			Please Log in or Create an account to join the conversation.
- Leon82
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 592
- Thank you received: 79
			
	
						21 Nov 2019 23:28		 -  22 Nov 2019 02:21		#150868
		by Leon82
	
	
		
			
	
	
			 		
													
	
				Replied by Leon82 on topic 7i96 Configuration Tool			
			
				I have communicated with my card using the other pinned thread about setting the connection.
It has the 5 step gen from what I can see from the read button.
Is it as simple as selecting 4 steps gen with pwm and clicking flash?
ETA It appears so
					It has the 5 step gen from what I can see from the read button.
Is it as simple as selecting 4 steps gen with pwm and clicking flash?
ETA It appears so
		Last edit: 22 Nov 2019 02:21  by Leon82.			
			Please Log in or Create an account to join the conversation.
- jools
- 
				  
- Offline
- Elite Member
- 
				  
		Less
		More
		
			
	
		- Posts: 161
- Thank you received: 15
			
	
						22 Nov 2019 12:20				#150902
		by jools
	
	
		
			
				
Leon
Read this thread to get it working properly. forum.linuxcnc.org/38-general-linuxcnc-q...et-pwm-output-solved
Jools
					
	
	
			 		
													
	
				Replied by jools on topic 7i96 Configuration Tool			
			I have communicated with my card using the other pinned thread about setting the connection.
It has the 5 step gen from what I can see from the read button.
Is it as simple as selecting 4 steps gen with pwm and clicking flash?
ETA It appears so
Leon
Read this thread to get it working properly. forum.linuxcnc.org/38-general-linuxcnc-q...et-pwm-output-solved
Jools
		The following user(s) said Thank You: Leon82 	
			Please Log in or Create an account to join the conversation.
- Leon82
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 592
- Thank you received: 79
			
	
						22 Nov 2019 12:46		 -  22 Nov 2019 12:47		#150906
		by Leon82
	
	
		
			
				
Yes I have it bookmarked.did you post the pwm Hal section?
					
	
	
			 		
													
	
				Replied by Leon82 on topic 7i96 Configuration Tool			
			
I have communicated with my card using the other pinned thread about setting the connection.
It has the 5 step gen from what I can see from the read button.
Is it as simple as selecting 4 steps gen with pwm and clicking flash?
ETA It appears so
Leon
Read this thread to get it working properly. forum.linuxcnc.org/38-general-linuxcnc-q...et-pwm-output-solved
Jools
Yes I have it bookmarked.did you post the pwm Hal section?
		Last edit: 22 Nov 2019 12:47  by Leon82.			
			Please Log in or Create an account to join the conversation.
- jools
- 
				  
- Offline
- Elite Member
- 
				  
		Less
		More
		
			
	
		- Posts: 161
- Thank you received: 15
			
	
						22 Nov 2019 14:05				#150923
		by jools
	
	
		
			
	
	
			 		
													
	
				Replied by jools on topic 7i96 Configuration Tool			
			
				will do now but there seems to be further issues, though again this may be my lack of knowledge. I'll ask PCW and John but it involves the servo overspinning, I think it's a feedback thing from the encoder.			
					
		The following user(s) said Thank You: Leon82 	
			Please Log in or Create an account to join the conversation.
- jools
- 
				  
- Offline
- Elite Member
- 
				  
		Less
		More
		
			
	
		- Posts: 161
- Thank you received: 15
			
	
						22 Nov 2019 15:49				#150933
		by jools
	
	
		
			
	
			
			 		
													
	
				Replied by jools on topic 7i96 Configuration Tool			
			
				Just to document the issue I'm having after enabling PWM.
The servo spindle that is controlled by the PWM revs up to it's hard limit even at low voltages due to the motor not being under load. So when inputting a low spindle speed of say 1000 rpm it would spin up to the hard limit of 2500. When it starts cutting and the motor goes under load it would then drop it's speed level accordingly.
Is there a way this can be monitored with feedback commands or something similar so that so the spindle speed is limited by linux cnc?
					The servo spindle that is controlled by the PWM revs up to it's hard limit even at low voltages due to the motor not being under load. So when inputting a low spindle speed of say 1000 rpm it would spin up to the hard limit of 2500. When it starts cutting and the motor goes under load it would then drop it's speed level accordingly.
Is there a way this can be monitored with feedback commands or something similar so that so the spindle speed is limited by linux cnc?
Please Log in or Create an account to join the conversation.
- andypugh
- 
				  
- Offline
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 19677
- Thank you received: 4554
			
	
						22 Nov 2019 16:03				#150935
		by andypugh
	
	
		
			
	
	
			 		
													
	
				Replied by andypugh on topic 7i96 Configuration Tool			
			
				Yes, this is a perfect application for a PID controller.
There is an example here: wiki.linuxcnc.org/cgi-bin/wiki.pl?Closed...pindle_Speed_Control
But it isn't a very good one.... It adds the PID output on to the spindle speed command. I presume this is because it is old and dates to a time before the PID component included feed-forward terms.
Basically:
spindle-speed-command => PID command
spindle-speed-feedback => PID feedback
PID-output => PWM value
(ie, the PID is inserted between the spindle command out and the PID command in)
Start with P, I, D all zero and adjust FF0 to give the right speed under no-load. Then adjust I (mainly) and some P to get good stiff speed control.
Be aware of units. Use a revs-per-second spindle speed command, as encoder velocity is in revs-per-second.
					There is an example here: wiki.linuxcnc.org/cgi-bin/wiki.pl?Closed...pindle_Speed_Control
But it isn't a very good one.... It adds the PID output on to the spindle speed command. I presume this is because it is old and dates to a time before the PID component included feed-forward terms.
Basically:
spindle-speed-command => PID command
spindle-speed-feedback => PID feedback
PID-output => PWM value
(ie, the PID is inserted between the spindle command out and the PID command in)
Start with P, I, D all zero and adjust FF0 to give the right speed under no-load. Then adjust I (mainly) and some P to get good stiff speed control.
Be aware of units. Use a revs-per-second spindle speed command, as encoder velocity is in revs-per-second.
		The following user(s) said Thank You: jools, Leon82 	
			Please Log in or Create an account to join the conversation.
- PCW
- 
				  
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 17372
- Thank you received: 5064
			
	
						22 Nov 2019 16:11		 -  22 Nov 2019 16:13		#150937
		by PCW
	
	
		
			
	
	
			 		
													
	
				Replied by PCW on topic 7i96 Configuration Tool			
			
				Hey, didn't you add the velocity-rpm pin to the software and HM2 encoder?
That simplifies the PID setup
					That simplifies the PID setup
		Last edit: 22 Nov 2019 16:13  by PCW.			
			Please Log in or Create an account to join the conversation.
- andypugh
- 
				  
- Offline
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 19677
- Thank you received: 4554
			
	
						22 Nov 2019 16:26				#150942
		by andypugh
	
	
		
			
				
True, I did. But it isn't there on all LinuxCNC versions. .
					
	
			
			 		
													
	
				Replied by andypugh on topic 7i96 Configuration Tool			
			Hey, didn't you add the velocity-rpm pin to the software and HM2 encoder?
That simplifies the PID setup
True, I did. But it isn't there on all LinuxCNC versions. .
Please Log in or Create an account to join the conversation.
		Moderators: PCW, jmelson	
		Time to create page: 0.212 seconds	
