Mesa 5i25 and 7176 getting started

More
19 May 2015 04:51 #58838 by andypugh
Replied by andypugh on topic Mesa 5i25 and 7176 getting started

So I just change this line? then what happens?


Then four of the screw terminals swap jobs and become the A/B inputs for the MPGs. And new HAL pins appears that count up and down as you move the MPGs.

It is mentioned on page 18 of www.mesanet.com/pdf/parallel/7i76man.pdf

hm2_5i25.0.7i76.0.0.enc0.count
hm2_5i25.0.7i76.0.0.enc1.count

Should change value as you move your mpg. (Machine->Show HAL Config in the Axis GUI)

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

More
19 May 2015 05:41 #58839 by amhfabs
Replied by amhfabs on topic Mesa 5i25 and 7176 getting started

It is mentioned on page 18 of www.mesanet.com/pdf/parallel/7i76man.pdf


Hmm, very briefly, not much detail to go on for a newbie :ohmy:

hm2_5i25.0.7i76.0.0.enc0.count
hm2_5i25.0.7i76.0.0.enc1.count

Should change value as you move your mpg. (Machine->Show HAL Config in the Axis GUI)


Ok, well I've just used Hal configuration for the first time... lol, Its pretty cool, I can see my inputs for limits etc that I'm testing :cheer:

However, the enc0 or enc1 don't seem to alter? I've got gnd and +5v from pins 1 and 6 on TB3, then I'm wiring my A B signals into pins 1 and 2 (inputs 16, 17) or 3 and 4 (inputs 18, 19) on TB5, but don't get a count from the hm2_5i25.0.7i76.0.0.en0.count or hm2_5i25.0.7i76.0.0.enc1.count pins. Like I say I'm getting my other inputs working though, so something is going right... haha!

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

More
19 May 2015 21:31 #58859 by andypugh
Replied by andypugh on topic Mesa 5i25 and 7176 getting started

However, the enc0 or enc1 don't seem to alter? I've got gnd and +5v from pins 1 and 6 on TB3, then I'm wiring my A B signals into pins 1 and 2 (inputs 16, 17) or 3 and 4 (inputs 18, 19) on TB5, but don't get a count from the hm2_5i25.0.7i76.0.0.en0.count or hm2_5i25.0.7i76.0.0.enc1.count pins. Like I say I'm getting my other inputs working though, so something is going right... haha!


Can you see the encoder input pins changing state? The inputs should still be available even though they now double-up as encoder quadrature.

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

More
20 May 2015 00:30 #58866 by amhfabs
Replied by amhfabs on topic Mesa 5i25 and 7176 getting started

Can you see the encoder input pins changing state? The inputs should still be available even though they now double-up as encoder quadrature.


No they don't change state... I've brought my volt meter back home so I can check whats going on. Will update shortly

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

More
20 May 2015 02:17 #58867 by amhfabs
Replied by amhfabs on topic Mesa 5i25 and 7176 getting started
Ok, I've checked all connections and voltages, from pins 1 and 6 on TB3 I get 4.85V, which I presume is enough for my MPG?

In HAL Configuration I've loaded up hm2_5i25.0.7i76.0.0.enc0.count under the watch tab and the value doesn't alter from 0.... I have seen it briefly change to 1, but there is no consistency to that, its only changed a handful of times for a split second, no pattern of rotation will alter it. I have used the MPG on another board with mach3 previously and it worked ok then. I can't check this tonight, but I will check asap!

Any ideas?

Also, what should be the exact code be to change the 7i76 mode from 0 to 2? I've used sserial_port_0=2000xxxx, but I can't see exactly why the pattern of (0's) and (x's) changes from mode 0: sserial_port_0=00xxx ??? why the extra 0's and x's?

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

More
20 May 2015 02:30 #58868 by andypugh
Replied by andypugh on topic Mesa 5i25 and 7176 getting started

Ok, I've checked all connections and voltages, from pins 1 and 6 on TB3 I get 4.85V, which I presume is enough for my MPG?

What voltages do you see on the MPG A and B phases? And what is your field-IO voltage? I think that the MPG inputs need to swing to the same voltage as any other field IO.

Also, what should be the exact code be to change the 7i76 mode from 0 to 2? I've used sserial_port_0=2000xxxx, but I can't see exactly why the pattern of (0's) and (x's) changes from mode 0: sserial_port_0=00xxx ??? why the extra 0's and x's?


You should have a number or an x for each sserial channel on the port. I suspect that the example was for a different setup. I don't recall whether the 5i25 / 7i76 config has 4 channels on one port or 2 ports of 2 channels. I suspect the latter, and what you really want is 2x or 20.

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

More
20 May 2015 02:44 - 20 May 2015 02:46 #58869 by PCW
Replied by PCW on topic Mesa 5i25 and 7176 getting started
The critical things needed are:

1. The MPG A,B pins are connected to inputs 16 and 17 (or 18 and 19) these are the 4 bottom pins of TB5
2. The MPG outputs ~5V signals, that is check that both A and B pins read high (>3.5V) and low (<1V)
relative to field ground at different MPG positions when connected to the 7I76 inputs
3. The MPG common (ground pin) is connected to Field I/O common

Note, you normally cannot read the states of the MPG inputs (via a xxx.xxx.7i76.0.0.input-nn pin)
that are driven by a 5V MPG, the input bits still have a VField/2 threshold
the MPG inputs with the 2.5V thresholds are only used for counting.

The definition of the sserial config string is in the hostmot2 manual page:

man hostmot2
Last edit: 20 May 2015 02:46 by PCW.

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

More
20 May 2015 03:29 #58872 by amhfabs
Replied by amhfabs on topic Mesa 5i25 and 7176 getting started

1. The MPG A,B pins are connected to inputs 16 and 17 (or 18 and 19) these are the 4 bottom pins of TB5
2. The MPG outputs ~5V signals, that is check that both A and B pins read high (>3.5V) and low (<1V)
relative to field ground at different MPG positions when connected to the 7I76 inputs
3. The MPG common (ground pin) is connected to Field I/O common


ok, I have my mpg on inputs 16 and 17 (pins 1 and 2 on TB5).
The MPG voltage in only around 0.5v when moving the handwheel? I'm getting my mpg 5v fromTB3 pin 6 and gnd from TB3 pin 1. My field voltage is 24v so can't connect to that.
When you say the MPG common or Gnd do you mean A- B- to field Gnd or the actual MPG gnd to field Gnd? In the latter case I get 0v at pins A and B??

I'm totally confused :unsure:

Note, you normally cannot read the states of the MPG inputs (via a xxx.xxx.7i76.0.0.input-nn pin)
that are driven by a 5V MPG, the input bits still have a VField/2 threshold
the MPG inputs with the 2.5V thresholds are only used for counting.


So even if my MPG is working correctly, I won't be able to monitor it in Hal config?

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

More
20 May 2015 04:07 - 20 May 2015 04:08 #58873 by PCW
Replied by PCW on topic Mesa 5i25 and 7176 getting started

ok, I have my mpg on inputs 16 and 17 (pins 1 and 2 on TB5).
The MPG voltage in only around 0.5v when moving the handwheel? I'm getting my mpg 5v fromTB3 pin 6 and gnd from TB3 pin 1. My field voltage is 24v so can't connect to that.
When you say the MPG common or Gnd do you mean A- B- to field Gnd or the actual MPG gnd to field Gnd? In the latter case I get 0v at pins A and B??


MPG GND to field ground

If you get 0V on A/B when MPG GND connect to field ground
that probably means your MPG outputs are open collector and
will need external pullup resistors (say 2K) to 5V to function

So even if my MPG is working correctly, I won't be able to monitor it in Hal config?


You can monitor the count, but you cannot monitor the A/B states via the xxx.xxx.7i76.0.0.input-nn pins
Last edit: 20 May 2015 04:08 by PCW.

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

More
20 May 2015 04:29 #58874 by amhfabs
Replied by amhfabs on topic Mesa 5i25 and 7176 getting started

will need external pullup resistors (say 2K) to 5V to function


So where do the pullup resistors go exactly? :huh:

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

Moderators: PCWjmelson
Time to create page: 0.074 seconds
Powered by Kunena Forum