Help with A2 Series VFD control with 7i96
- Redneck92
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 41
- Thank you received: 7
			
	
						01 Nov 2021 11:50				#224868
		by Redneck92
	
	
		
			
	
	
			
			 		
													
	
				Help with A2 Series VFD control with 7i96 was created by Redneck92			
			
				Hey guys, 
I´m back with yet another problem I been facing.
First of all I ordered a Huanyang VFD but I seem to have gotten a clone. So, thats what I´m stuck with now.
I read here that it shoud be possible to control that VFD with my 7I96 instead of my now useless USB to RS485 adapter.
I also read that the 7i96 can give out PWM signals wich I could convert to 0 to 10V signals with a converter.
I need to get one of those converters.
What I dont understand is, where on the 7i96 do i get the PWM signals?
Do I need to assign them in the Pncconf wizard?
What exactly do I need to assign an how do I wire this stuff?
I added the connection sheet of my VFD down in the attachments.
Would be awesome if someone could help me with this.
Greetings, Mike
 			
					I´m back with yet another problem I been facing.
First of all I ordered a Huanyang VFD but I seem to have gotten a clone. So, thats what I´m stuck with now.
I read here that it shoud be possible to control that VFD with my 7I96 instead of my now useless USB to RS485 adapter.
I also read that the 7i96 can give out PWM signals wich I could convert to 0 to 10V signals with a converter.
I need to get one of those converters.
What I dont understand is, where on the 7i96 do i get the PWM signals?
Do I need to assign them in the Pncconf wizard?
What exactly do I need to assign an how do I wire this stuff?
I added the connection sheet of my VFD down in the attachments.
Would be awesome if someone could help me with this.
Greetings, Mike
Please Log in or Create an account to join the conversation.
- bevins
- 
				  
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 1940
- Thank you received: 338
			
	
						01 Nov 2021 13:47				#224881
		by bevins
	
	
		
			
	
			
			 		
													
	
				Replied by bevins on topic Help with A2 Series VFD control with 7i96			
			
					Please Log in or Create an account to join the conversation.
- Redneck92
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 41
- Thank you received: 7
			
	
						01 Nov 2021 13:55				#224882
		by Redneck92
	
	
		
			
	
			
			 		
													
	
				Replied by Redneck92 on topic Help with A2 Series VFD control with 7i96			
			
				As I understand from this, I take one of the unused Stepgens for the pwm control for the spindle?
What firmware do I need to run on the 7i96 then?
I run a 7i85s aswell. I read somewhere that it has the abillity to output pwm signals aswell?
					What firmware do I need to run on the 7i96 then?
I run a 7i85s aswell. I read somewhere that it has the abillity to output pwm signals aswell?
Please Log in or Create an account to join the conversation.
- PCW
- 
				  
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 17372
- Thank you received: 5064
			
	
						01 Nov 2021 14:30				#224885
		by PCW
	
	
		
			
	
			
			 		
													
	
				Replied by PCW on topic Help with A2 Series VFD control with 7i96			
			
				I don't think there is standard firmware for this (7I96+7I85S+PWM).
but I can make a bitfile. Where do you prefer the PWM output to
be connected?
					but I can make a bitfile. Where do you prefer the PWM output to
be connected?
Please Log in or Create an account to join the conversation.
- Redneck92
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 41
- Thank you received: 7
			
	
						01 Nov 2021 17:38				#224897
		by Redneck92
	
	
		
			
	
			
			 		
													
	
				Replied by Redneck92 on topic Help with A2 Series VFD control with 7i96			
			
				Does my current wiring setup change when I flash a new bitfile to my mesa combo?
My connections are currently as follows:
7i96:
TB1 Ste0, Step1, Step2 are for the X Y and Z axis
7i85S:
TB3 Enc0, Enc1, Enc2 are for the encoders fromthe X Y and Z axis.
Wiring wise, it would be nice to have the PWM signal on the 7i85s
TB1 Diff. Out 4 , 5
But any other place would do aswell as long as I know where it is ^^
That would be awesome if you could make a bitfile for me.
Thank you very much in advance.
					My connections are currently as follows:
7i96:
TB1 Ste0, Step1, Step2 are for the X Y and Z axis
7i85S:
TB3 Enc0, Enc1, Enc2 are for the encoders fromthe X Y and Z axis.
Wiring wise, it would be nice to have the PWM signal on the 7i85s
TB1 Diff. Out 4 , 5
But any other place would do aswell as long as I know where it is ^^
That would be awesome if you could make a bitfile for me.
Thank you very much in advance.
Please Log in or Create an account to join the conversation.
- PCW
- 
				  
- Away
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 17372
- Thank you received: 5064
			
	
						01 Nov 2021 18:32				#224901
		by PCW
	
	
		
			
	
	
		
	
			 		
													
	
				Replied by PCW on topic Help with A2 Series VFD control with 7i96			
			
				This adds 1 PWM gen instead of the last stepgen on the 7I85S
I had to drop one more stepgen on the 7I85S for space reasons
 
Thia should not change any existing connections
 			
					I had to drop one more stepgen on the 7I85S for space reasons
Thia should not change any existing connections
Attachments:
		The following user(s) said Thank You: Redneck92 	
			Please Log in or Create an account to join the conversation.
- Redneck92
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 41
- Thank you received: 7
			
	
						01 Nov 2021 22:05				#224922
		by Redneck92
	
	
		
			
	
			
			 		
													
	
				Replied by Redneck92 on topic Help with A2 Series VFD control with 7i96			
			
				Thank you very much.
I just ordered a pwm to analog converter, should be here in a day or two, then I'll give it a try.
Is there a way to donate you some money for a case of beer? 
			
					I just ordered a pwm to analog converter, should be here in a day or two, then I'll give it a try.
Is there a way to donate you some money for a case of beer?
 
			Please Log in or Create an account to join the conversation.
- Redneck92
- Offline
- Senior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 41
- Thank you received: 7
			
	
						14 Nov 2021 15:39				#226478
		by Redneck92
	
	
		
			
	
			
			 		
													
	
				Replied by Redneck92 on topic Help with A2 Series VFD control with 7i96			
			
				So I got my analog to pwm board yesterday, I flashed your firmware on my card, Everything is still working like before.
I wrote some stuff in my hal and ini files.
I set num_pwmgens=1
But where in my 7i84s do I connect the wires that go to my pwm to analog board?
You said that you put the pwm generator on the last stepgen.
I assume that this is would be on the connector TB1 Diff 6,7 ?
Connector Pin 9 to 16, do I need to use the QA QB or ID pins?
In my hal I had setup the spindle as follows:
loadrt hm2_eth board_ip="10.10.10.10" config=" num_encoders=4 num_pwmgens=1 num_stepgens=4 sserial_port_0=0xxxxx"
loadrt pid names=pid.x,pid.y,pid.z,pid.s
#*******************
# SPINDLE
#*******************
setp pid.s.Pgain [SPINDLE_0]P
setp pid.s.Igain [SPINDLE_0]I
setp pid.s.Dgain [SPINDLE_0]D
setp pid.s.bias [SPINDLE_0]BIAS
setp pid.s.FF0 [SPINDLE_0]FF0
setp pid.s.FF1 [SPINDLE_0]FF1
setp pid.s.FF2 [SPINDLE_0]FF2
setp pid.s.deadband [SPINDLE_0]DEADBAND
setp pid.s.maxoutput [SPINDLE_0]MAX_OUTPUT
setp pid.s.error-previous-target true
setp hm2_7i96.0.pwmgen.00.scale [SPINDLE_0]MAX_OUTPUT
net spindle-index-enable <=> pid.s.index-enable
net spindle-enable => pid.s.enable
net spindle-vel-cmd-rpm => pid.s.command
net spindle-vel-fb-rpm => pid.s.feedback
net spindle-output <= pid.s.output
# ---setup spindle control signals---
net spindle-vel-cmd-rps <= spindle.0.speed-out-rps
net spindle-vel-cmd-rps-abs <= spindle.0.speed-out-rps-abs
net spindle-vel-cmd-rpm <= spindle.0.speed-out
net spindle-vel-cmd-rpm-abs => hm2_7i96.0.pwmgen.00.value
net spindle-enable => hm2_7i96.0.ssr.00.out-01
net spindle-enable => hm2_7i96.0.pwmgen.00.enable
net spindle-cw <= spindle.0.forward
net spindle-cw => hm2_7i96.0.ssr.00.out-02
net spindle-ccw <= spindle.0.reverse
net spindle-ccw => hm2_7i96.0.ssr.00.out-03
net spindle-brake <= spindle.0.brake
net spindle-revs => spindle.0.revs
net spindle-at-speed => spindle.0.at-speed
net spindle-vel-fb-rps => spindle.0.speed-in
net spindle-index-enable <=> spindle.0.index-enable
# ---Setup spindle at speed signals---
sets spindle-at-speed true
Did I forget something?
I checked every port on my 7i85 with a multimeter and I can not find where Axis turns on or of the spindle / pwm signal.
Would be great if you could help me here again.
Thank you and have a nice sunday.
Greetings Mike
					I wrote some stuff in my hal and ini files.
I set num_pwmgens=1
But where in my 7i84s do I connect the wires that go to my pwm to analog board?
You said that you put the pwm generator on the last stepgen.
I assume that this is would be on the connector TB1 Diff 6,7 ?
Connector Pin 9 to 16, do I need to use the QA QB or ID pins?
In my hal I had setup the spindle as follows:
loadrt hm2_eth board_ip="10.10.10.10" config=" num_encoders=4 num_pwmgens=1 num_stepgens=4 sserial_port_0=0xxxxx"
loadrt pid names=pid.x,pid.y,pid.z,pid.s
#*******************
# SPINDLE
#*******************
setp pid.s.Pgain [SPINDLE_0]P
setp pid.s.Igain [SPINDLE_0]I
setp pid.s.Dgain [SPINDLE_0]D
setp pid.s.bias [SPINDLE_0]BIAS
setp pid.s.FF0 [SPINDLE_0]FF0
setp pid.s.FF1 [SPINDLE_0]FF1
setp pid.s.FF2 [SPINDLE_0]FF2
setp pid.s.deadband [SPINDLE_0]DEADBAND
setp pid.s.maxoutput [SPINDLE_0]MAX_OUTPUT
setp pid.s.error-previous-target true
setp hm2_7i96.0.pwmgen.00.scale [SPINDLE_0]MAX_OUTPUT
net spindle-index-enable <=> pid.s.index-enable
net spindle-enable => pid.s.enable
net spindle-vel-cmd-rpm => pid.s.command
net spindle-vel-fb-rpm => pid.s.feedback
net spindle-output <= pid.s.output
# ---setup spindle control signals---
net spindle-vel-cmd-rps <= spindle.0.speed-out-rps
net spindle-vel-cmd-rps-abs <= spindle.0.speed-out-rps-abs
net spindle-vel-cmd-rpm <= spindle.0.speed-out
net spindle-vel-cmd-rpm-abs => hm2_7i96.0.pwmgen.00.value
net spindle-enable => hm2_7i96.0.ssr.00.out-01
net spindle-enable => hm2_7i96.0.pwmgen.00.enable
net spindle-cw <= spindle.0.forward
net spindle-cw => hm2_7i96.0.ssr.00.out-02
net spindle-ccw <= spindle.0.reverse
net spindle-ccw => hm2_7i96.0.ssr.00.out-03
net spindle-brake <= spindle.0.brake
net spindle-revs => spindle.0.revs
net spindle-at-speed => spindle.0.at-speed
net spindle-vel-fb-rps => spindle.0.speed-in
net spindle-index-enable <=> spindle.0.index-enable
# ---Setup spindle at speed signals---
sets spindle-at-speed true
Did I forget something?
I checked every port on my 7i85 with a multimeter and I can not find where Axis turns on or of the spindle / pwm signal.
Would be great if you could help me here again.
Thank you and have a nice sunday.
Greetings Mike
Please Log in or Create an account to join the conversation.
		Time to create page: 0.258 seconds	
 
													