7i77 and single ended MPG-Wheel encod er - read-out problem
- Baderbahn
- Offline
- Junior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 28
- Thank you received: 1
			
	
						23 Oct 2021 15:36		 -  23 Oct 2021 15:38		#223998
		by Baderbahn
	
	
		
			
	
	
			 		
													
	
				Replied by Baderbahn on topic 7i77 and single ended MPG-Wheel encod er - read-out problem			
			
				we're getting closer 
So, I need to change the onboard pullups from 2k to 330Ohm ? :O
Edit: saw your edit, right now. That's what I thought and wanted to express with the sinking- inputs "P.S" in my prior post.
But then, we are at the HAl-Connection point, which I asked yesterday 
			
					
So, I need to change the onboard pullups from 2k to 330Ohm ? :O
Edit: saw your edit, right now. That's what I thought and wanted to express with the sinking- inputs "P.S" in my prior post.
But then, we are at the HAl-Connection point, which I asked yesterday
 
			
		Last edit: 23 Oct 2021 15:38  by Baderbahn.			
			Please Log in or Create an account to join the conversation.
- PCW
- 
				  
- Online
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 17372
- Thank you received: 5064
			
	
						23 Oct 2021 15:47				#223999
		by PCW
	
	
		
			
	
			
			 		
													
	
				Replied by PCW on topic 7i77 and single ended MPG-Wheel encod er - read-out problem			
			
				To use the 7I77 encoder input you would need to
add external 330 ohm pull downs to A and B
You could use the 7I77s MPG inputs directly.
					add external 330 ohm pull downs to A and B
You could use the 7I77s MPG inputs directly.
Please Log in or Create an account to join the conversation.
- Baderbahn
- Offline
- Junior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 28
- Thank you received: 1
			
	
						23 Oct 2021 15:56				#224000
		by Baderbahn
	
	
		
			
	
			
			 		
													
	
				Replied by Baderbahn on topic 7i77 and single ended MPG-Wheel encod er - read-out problem			
			
				Yeah, that's clear now to me.
I'm just not completely sure, how to set up the HAL for this.
Actually, I have:
The count and axis selection is (more or less), as PNCconf proposes it.
As I saw in an other thread, I have to add a mux4 and send the signals into it. That's exactly, where I'm not sure, how to do it 
			
					I'm just not completely sure, how to set up the HAL for this.
Actually, I have:
net axis-selected-count  <= hm2_5i15.0.encoder.03.countThe count and axis selection is (more or less), as PNCconf proposes it.
As I saw in an other thread, I have to add a mux4 and send the signals into it. That's exactly, where I'm not sure, how to do it
 
			Please Log in or Create an account to join the conversation.
- PCW
- 
				  
- Online
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 17372
- Thank you received: 5064
			
	
						23 Oct 2021 16:08				#224001
		by PCW
	
	
		
			
	
	
			 		
													
	
				Replied by PCW on topic 7i77 and single ended MPG-Wheel encod er - read-out problem			
			
				if you want to use the MPG counter, it would be something like:
hm2_5i25.0.7i77.0.0.enc0.count
					hm2_5i25.0.7i77.0.0.enc0.count
		The following user(s) said Thank You: Baderbahn 	
			Please Log in or Create an account to join the conversation.
- Baderbahn
- Offline
- Junior Member
- 
				  
		Less
		More
		
			
	
		- Posts: 28
- Thank you received: 1
			
	
						23 Oct 2021 16:15		 -  23 Oct 2021 16:49		#224003
		by Baderbahn
	
	
		
			
	
	
			 		
													
	
				Replied by Baderbahn on topic 7i77 and single ended MPG-Wheel encod er - read-out problem			
			
				Ah, so I don't need a mux4- element ?
Just net the hm2_5i25.0.7i77.0.0.enc0.count ?
Edit:
I tried the following:
Set 7i77 to Mode 3 byand connect the signal
but get an error "pin doesn't exist"
so I'll try to figure out by searching halshow, which pin it is
Edit 2:
Note to myself: I'm stupid. It should be [...] 300xxx[...] istead of [...]003xxx[...}
I am able to read the count now! thank you very much, PCW !
					Just net the hm2_5i25.0.7i77.0.0.enc0.count ?
Edit:
I tried the following:
Set 7i77 to Mode 3 by
sserial_port_0=003xxxnet axis-selected-count    <=    hm2_5i25.0.7i77.0.0.enc0.countbut get an error "pin doesn't exist"
so I'll try to figure out by searching halshow, which pin it is

Edit 2:
Note to myself: I'm stupid. It should be [...] 300xxx[...] istead of [...]003xxx[...}
I am able to read the count now! thank you very much, PCW !
		Last edit: 23 Oct 2021 16:49  by Baderbahn.			
			Please Log in or Create an account to join the conversation.
- PCW
- 
				  
- Online
- Moderator
- 
				  
		Less
		More
		
			
	
		- Posts: 17372
- Thank you received: 5064
			
	
						23 Oct 2021 19:59				#224028
		by PCW
	
	
		
			
	
			
			 		
													
	
				Replied by PCW on topic 7i77 and single ended MPG-Wheel encod er - read-out problem			
			
				The mux4 is used to select the jog increments			
					Please Log in or Create an account to join the conversation.
- bevins
- 
				  
- Offline
- Platinum Member
- 
				  
		Less
		More
		
			
	
		- Posts: 1940
- Thank you received: 338
			
	
						23 Oct 2021 20:42		 -  23 Oct 2021 20:45		#224031
		by bevins
	
	
		
			
	
	
	
			 		
													
	
				Replied by bevins on topic 7i77 and single ended MPG-Wheel encod er - read-out problem			
			
				Put this in your custom.hal. It should get you a working mpg using enc0. You are using 7i77 you you will need to change to suit your mesa setup.
 			
					
		Last edit: 23 Oct 2021 20:45  by bevins.			
			Please Log in or Create an account to join the conversation.
		Moderators: PCW, jmelson	
		Time to create page: 0.133 seconds	
