Mesa 7i76e setup help!

More
27 Nov 2016 15:20 #83366 by vmihalca
Replied by vmihalca on topic Mesa 7i76e setup help!
I have run the command that you suggested, but I can't interpret the result of show pin command
I'm attaching the console output if you have time to take a quick look.
When I tried to run the second command with sserial_port_1 it says that I'm referring to a second interface that does not exist.
I can't see any mpg pins displayed.

File Attachment:

File Name: first_cmd.txt
File Size:24 KB
Attachments:

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

More
27 Nov 2016 16:34 #83367 by vmihalca
Replied by vmihalca on topic Mesa 7i76e setup help!
After I figure out the pins I will try to follow this example, it seems to be what I need
linuxcnc.org/docs/ja/html/examples/mpg.html

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

More
28 Nov 2016 16:03 #83396 by andypugh
Replied by andypugh on topic Mesa 7i76e setup help!

I have run the command that you suggested, but I can't interpret the result of show pin command


0.0 (which corresponds to what PCW said)

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

More
29 Nov 2016 22:04 #83460 by vmihalca
Replied by vmihalca on topic Mesa 7i76e setup help!
For the pendant, I have connected the Z and X wires to 22 and 23 pins.
So basicaly is +12v --> switch --> pin22. When the switch is closed, pin 22 or 23 are reported as true in hal meter.
Now, for the mpg encoder, the inputs are 16 and 17.
If I put a switch just like for axis selection, the value of hm2_7i76e.0.7i76.0.0.input-16 pin goes TRUE when the switch is closed, which is correct! So again I have +12-->switch-->pin16.
The thing is that the mpg needs to be powered at 5V, so I'm using a 78M05 circuit, to transform the field input to 5v.
Now with the circuit connected, I can power the encoder with 5v. But now between GND and A+ or B+ i can measure 3.65v or aprox 0V. The thing is that with 3.65v the pin does not goes to TRUE. In the documentation it says that the threshold is 2.5v so I assume anything greater than that can be considered as TRUE.
I'm quite newbie with electronics, so If I'm doing something wrong, please let me know! :)

In a previous post (PCW I guess) was saying that once I set the mode to 2, I should check with show pin if mpg shows up.
In the listed pins I have not seen any pin containing "mpg". Is this ok?

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

More
29 Nov 2016 22:16 #83462 by PCW
Replied by PCW on topic Mesa 7i76e setup help!
This is expected, the digital input bits still have the ~ 1/2 VFIELD threshold, _but_ the MPG quadrature
encoder pins have a 2.5V threshold

The pins will be like:

hm2_7I76e.0.7i76.0.0.enc0.count

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

More
29 Nov 2016 22:51 #83463 by rodw
Replied by rodw on topic Mesa 7i76e setup help!

The port and channel are 0 for the 7I76/7I76E Field I/O section so

sserial_port_0=2xxx

should be correct


I think this earlier post means you need
halcmd: loadrt hm2_eth board_ip="10.10.10.10" config="sserial_port_0=00020000"

But I have not got as far as playing with encoders on my 7i76e yet.

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

More
29 Nov 2016 23:03 - 30 Nov 2016 01:00 #83464 by PCW
Replied by PCW on topic Mesa 7i76e setup help!
Actually, no, the first digit must be 2, so serial_port_0=2xxx is correct

This is because the sserial channel options are entered on the driver command line
with one character per channel in left to right order, and the 7I76 part of a 7I76e
is normally at port0, channel 0
so for example:

sserial_port_0=56x1xxxx

would set

port 0 channel 0 to mode 5
port 0 channel 1 to mode 6
disable port 0 channel 2
port 0 channel 3 to mode 1
and disable port 0 channels 4..7
Last edit: 30 Nov 2016 01:00 by PCW.

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

More
29 Nov 2016 23:15 #83465 by rodw
Replied by rodw on topic Mesa 7i76e setup help!

Actually, no, the first digit must be 2, so serial_port_0=2xxx is correct


So it should be
halcmd: loadrt hm2_eth board_ip="10.10.10.10" config="sserial_port_0=2xxx"
Is that right?

Are those mode settings documented anywhere?

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

More
30 Nov 2016 02:21 - 30 Nov 2016 02:39 #83471 by PCW
Replied by PCW on topic Mesa 7i76e setup help!
The individual card modes are documented in the appropriate card manual.

The syntax of the hm2 driver configuration is documented in the hostmot2 manual (man hostmot2)

halcmd: loadrt hm2_eth board_ip="10.10.10.10" config="sserial_port_0=2xxx"


Will work for the 7I76e if you want the MPG encoders enabled

as will sserial_port_0=20xx ( set the 7I76e's 7I76 ( channel 0 ) to mode 2 and the 7I76E's sserial expansion port (channel 1) to mode 0 )
Last edit: 30 Nov 2016 02:39 by PCW.

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

More
02 Dec 2016 11:39 #83568 by vmihalca
Replied by vmihalca on topic Mesa 7i76e setup help!
Thanks to your advices, I have managed to wire the encoder in the picture below and see the dro changing when turning the mpg.
As you can see in the picture, the pendant has an enable button on the left side. When i select the axis or increment, the circuit is closed only if I push that button.
I don't have any previous experience with cnc machines or pendants so don't know how that enable button should behave.
Is it a feature to be able to jog the machine axes only when enable button is pressed?
If not, i could change the wiring and use that button for smth else, however the wiring diagram&wire colors don't match the device itself :)
China $60 piece of equipment! :)
Attachments:

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

Time to create page: 0.410 seconds
Powered by Kunena Forum