- Posts: 346
- Thank you received: 0
Mesa 7i76e setup help!
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.
Attachment not found
Please Log in to join the conversation.
linuxcnc.org/docs/ja/html/examples/mpg.html
Please Log in to join the conversation.
vmihalca wrote: 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 to join the conversation.
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 to join the conversation.
encoder pins have a 2.5V threshold
The pins will be like:
hm2_7I76e.0.7i76.0.0.enc0.count
Please Log in to join the conversation.
PCW wrote: 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
But I have not got as far as playing with encoders on my 7i76e yet.
Please Log in to join the conversation.
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
Please Log in to join the conversation.
PCW wrote: Actually, no, the first digit must be 2, so serial_port_0=2xxx is correct
So it should be
Are those mode settings documented anywhere?
Please Log in to join the conversation.
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 )
Please Log in to join the conversation.
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!
Please Log in to join the conversation.
