Encoder on mesa 7i76

More
11 Apr 2022 17:47 #239944 by Taichi
Encoder on mesa 7i76 was created by Taichi
Hello. I try to config 6i25+7i77+7i76.
In pncconfig i set Quad Enc A and Quad Enc B --> Multi axis handwheel.
In my config hal file i see Multiaxis handwheel connect to hm2_5i25.0.encoder.00.count but this pin from 7i77 not from 7i76.
In halshow i can't find any quad enc a or b pins, only encoders from 00 to 05 on 7i77.
I realy need to connect handwheel to 7i76, this board will be placed near PC, 7i77 i want placed near servo drivers, far from PC.
Thx.

Please Log in or Create an account to join the conversation.

More
11 Apr 2022 22:54 #239993 by andypugh
Replied by andypugh on topic Encoder on mesa 7i76
github.com/LinuxCNC/hostmot2-firmware/bl...PIN_7I77_7I76_34.vhd

Is the file that defines the pinout for that firmware.

Which indicates that the encoder on the 7i76 should be muxed encoder 03.

But you will only see that if you enable all encoders (or, more accurately, if you don't limit the number of encoders)

What does the "loadrt hm2_pci...." line in your HAL file say?

Please Log in or Create an account to join the conversation.

More
11 Apr 2022 23:06 #239995 by PCW
Replied by PCW on topic Encoder on mesa 7i76
What Andy said + Do you have 5i25_7i77_7i76.bit firmware installed?
Also you might consider using the MPG encoders on the 7I76 as these
support the 1x mode used with standard 100 PPR MPGs to get 1 count
per detent.

Please Log in or Create an account to join the conversation.

More
12 Apr 2022 06:50 - 12 Apr 2022 06:51 #240018 by Taichi
Replied by Taichi on topic Encoder on mesa 7i76
Thx for helping. 
In hal file i changed numbers encoders =7 
Then i find in halshow new encoder on position .06. and counting position of my handwheel.
Firmware - 5i25_7i77_7i76
Use Chinese MPG with 100 PPR. In halshow one tick of MPG = 4!?!? It mast be 1 .....


​​​
Last edit: 12 Apr 2022 06:51 by Taichi.

Please Log in or Create an account to join the conversation.

More
12 Apr 2022 07:41 #240020 by rodw
Replied by rodw on topic Encoder on mesa 7i76
AS Peter said, use the MPG encoders on the 7i76 instead of a 7i77 encoder input

Please Log in or Create an account to join the conversation.

More
12 Apr 2022 08:03 #240025 by Taichi
Replied by Taichi on topic Encoder on mesa 7i76
MPG connect to 7i76 and in halshow this encoder on .06. position. First 6 encoders from 7i77 (from .00 to .05) and 7th encoder from 7i76 (.06.)

Please Log in or Create an account to join the conversation.

More
12 Apr 2022 09:18 #240027 by rodw
Replied by rodw on topic Encoder on mesa 7i76
No we mean these which are soecifically designed for hand wheels
 
Attachments:

Please Log in or Create an account to join the conversation.

More
12 Apr 2022 23:57 #240096 by andypugh
Replied by andypugh on topic Encoder on mesa 7i76

Use Chinese MPG with 100 PPR. In halshow one tick of MPG = 4!?!? It mast be 1 .....

Either use an MPG encoder or try this in the HAL file:
setp hm2_5i25.0.encoder.06.counter-mode 1
 

Please Log in or Create an account to join the conversation.

More
13 Apr 2022 19:48 #240178 by Taichi
Replied by Taichi on topic Encoder on mesa 7i76
counter-mode 1 as i need, encoder count correctly but with reverse. I changed phase a -> b and b -> a on pins. Now encoder work correctly. Thx andypugh.
I wanna ask, MPG with axis selector and scale selector normal work with gmocappy?
So hard understand hal logic through language barrier. Thx for helping.

Please Log in or Create an account to join the conversation.

More
19 Apr 2022 13:51 #240655 by andypugh
Replied by andypugh on topic Encoder on mesa 7i76

So hard understand hal logic through language barrier. Thx for helping.

What language do you prefer? There are some partial translations of the linuxCNC documentation. 

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.217 seconds
Powered by Kunena Forum