7I76ED XYZ 0-10V Spindle
- chili023
- 
				 Topic Author Topic Author
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 47
- Thank you received: 7
			
	
						20 Feb 2022 19:20		 -  20 Feb 2022 19:30		#235412
		by chili023
	
	
		
			
	
	
			 		
													
	
				7I76ED XYZ 0-10V Spindle was created by chili023			
			
				Hello everybody,I have a XYZ Mill with 4 Stepper and a 0-10V VFD.
I used pncconf to get my initial setup and all steppers work.
I used the desired spindle outputs and was able to get a voltage signal withas a hal command.However the spindel output does not react to the commands from the gui.
I then tried to edit my custom.hal:This tied hm2_7i76e.0.7i76.0.0.spinout to the exact value of spindle-output.The output wants to have 0-100 values, so I wanted to scale by editing my custom.hal withand added to the maschine.iniApparently this was not of success.Do I need to use a loadrt scale for the output?			
					I used pncconf to get my initial setup and all steppers work.
I used the desired spindle outputs and was able to get a voltage signal with
setp hm2_7i76e.0.7i76.0.0.spinout 10 or 100.I then tried to edit my custom.hal:
net spindle-enable hm2_7i76e.0.7i76.0.0.spinena 
net spindle-output hm2_7i76e.0.7i76.0.0.spinoutsetp hm2_7i76e.0.7i76.0.0.spinout-minlim [SPINDLE_0]OUTPUT_MIN_LIMIT 
setp hm2_7i76e.0.7i76.0.0.spinout-maxlim [SPINDLE_0]OUTPUT_MAX_LIMIT 
setp hm2_7i76e.0.7i76.0.0.spinout-scalemax [SPINDLE_0]OUTPUT_SCALE[SPINDLE_0]
P = 0
I = 0
D = 0
FF0 = 1
FF1 = 0
FF2 = 0
BIAS = 0
DEADBAND = 0
MAX_OUTPUT = 20000
OUTPUT_SCALE = 25000
OUTPUT_MAX_LIMIT = 100
OUTPUT_MIN_LIMIT = 5
		Last edit: 20 Feb 2022 19:30  by chili023.			
			Please Log in or Create an account to join the conversation.
- PCW
- 
				  
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 17371
- Thank you received: 5064
			
	
						20 Feb 2022 20:15				#235426
		by PCW
	
	
		
			
	
			
			 		
													
	
				Replied by PCW on topic 7I76ED XYZ 0-10V Spindle			
			
				With an output scale of 25000 and a output max limit of
100, the maximum output voltage would be 40 mV
Typically you would set the output max limit to the same
value of the output scale
					100, the maximum output voltage would be 40 mV
Typically you would set the output max limit to the same
value of the output scale
Please Log in or Create an account to join the conversation.
- chili023
- 
				 Topic Author Topic Author
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 47
- Thank you received: 7
			
	
						21 Feb 2022 07:18				#235444
		by chili023
	
	
		
			
	
			
			 		
													
	
				Replied by chili023 on topic 7I76ED XYZ 0-10V Spindle			
			
				Ok.
But why is spinout still going to 20000?
And the maximum value of spinout is 100.
So what do I miss?
					But why is spinout still going to 20000?
And the maximum value of spinout is 100.
So what do I miss?
Please Log in or Create an account to join the conversation.
- PCW
- 
				  
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 17371
- Thank you received: 5064
			
	
						21 Feb 2022 15:00				#235466
		by PCW
	
	
		
			
	
			
			 		
													
	
				Replied by PCW on topic 7I76ED XYZ 0-10V Spindle			
			
				The output max limit limits the analog output to V*max_limit/output_scale
where V is the applied voltage to the analog output circuit (usually 10V)
That is, if you set max-scale to the RPM at 10V (25000 in your case)
setting the max limit to 100 would limit the maximum RPM to 100
					where V is the applied voltage to the analog output circuit (usually 10V)
That is, if you set max-scale to the RPM at 10V (25000 in your case)
setting the max limit to 100 would limit the maximum RPM to 100
Please Log in or Create an account to join the conversation.
		Time to create page: 0.082 seconds	
