Mesa 7i76e setup help!

More
20 Nov 2016 11:13 #83029 by vmihalca
Replied by vmihalca on topic Mesa 7i76e setup help!
I know, before I was using mesa board, the ini files was showing 1440, and the rpm was correct.
Now,with mesa, if in the file the value is 1440, the displayed rpm is 4 times lower.

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

More
20 Nov 2016 12:34 #83035 by andypugh
Replied by andypugh on topic Mesa 7i76e setup help!
Do you have a setting of "counter_mode = 1" somewhere in the HAL file?

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

More
20 Nov 2016 15:20 - 20 Nov 2016 16:42 #83040 by PCW
Replied by PCW on topic Mesa 7i76e setup help!
Yep

hm2_7i76e.0.encoder.00.counter-mode 1


So that will count 360 counts/turn with a 360 PPR encoder
(and will not count in both directions properly)

Note PnCConf will do this if you select "Single Input Encoder"
Meaning a "A" only encoder
Last edit: 20 Nov 2016 16:42 by PCW.

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

More
23 Nov 2016 23:13 #83199 by vmihalca
Replied by vmihalca on topic Mesa 7i76e setup help!
Yes, you were right, I had that "Single input encoder" checked, now its fine! :)

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

More
23 Nov 2016 23:18 #83200 by PCW
Replied by PCW on topic Mesa 7i76e setup help!
Yeah its easy to mis-understand that as meaning single ended

It probably should say "A channel only encoder - for threading only"
or something like that

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

More
23 Nov 2016 23:29 #83202 by vmihalca
Replied by vmihalca on topic Mesa 7i76e setup help!
I am trying to wire my mpg pendant, and I was looking on how to wire the axis selection and step scale 1, 10, 100
For axis selection I could not find in the input field types any selection for Z or X axes
Also I don't know where to associate the inputs from the pendant for step scale.
Any suggestions ?

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

More
25 Nov 2016 16:03 #83285 by PCW
Replied by PCW on topic Mesa 7i76e setup help!
Unfortunately pncconf doesnt know how to use the 7I76Es MPG encoders
so you will probably have to hand edit the hal file to add the required components/connections

Have you Seen JTs tutorial on MPG setup?

gnipsel.com/linuxcnc/hardware/mpg.html

Also you will want to use the 7I76e's built in MPG counter on the field I/O pins
as the source of the jog count value

hm2_7i76e.0.7i76.0.0.enc0.count
The following user(s) said Thank You: rodw

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

More
27 Nov 2016 12:14 #83362 by vmihalca
Replied by vmihalca on topic Mesa 7i76e setup help!
I'm in the process of figuring out how to wire the MPG to my mesa 7i75e.
How do I make sure that Software process data mode is 2.
In the 7i76e manual it says that:
MODE 2
I/O only mode (32 bits of input data, 16 bit of output data)
I/O plus analog input mode (32 bits of input data, 16 bits of output data, 4 analog input channels)
I/O plus analog input and field voltage and MPG mode (32 bits of input data, 16 bits of output data, 4 analog input channels, field voltage analog in, and 2 MPG encoders on inputs 16..19). Default encoder count mode is 1X to match normal 100 PPR MPGs. Encoder input threshold is fixed at 2.5V for compatibility with 5V encoder outputs.

Looking over the hal & ini files I have not seen anywhere this data mode setting.

MPG encoder is differential, I have hooked up the encoder, A+ and B+ to pins 16,17; A-, B- are left unconnected.
I power the encoder wheel at 5v and when I spin the wheel I can measure 3.56v between A or B channel and GND. Since the threshold is 2.5v I suppose this value should be fine.

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

More
27 Nov 2016 13:01 #83363 by andypugh
Replied by andypugh on topic Mesa 7i76e setup help!

Looking over the hal & ini files I have not seen anywhere this data mode setting. .


It is set by an entry in the "loadrt hm2_eth" line of the HAL, specifically something like "sserial_port_0=02xxx"

linuxcnc.org/docs/2.7/html/man/man9/host...ml#config%20modparam

Here is one way to find the right settings. Open a terminal and type:

halrun
loadrt hosmot2
loadrt hm2_eth board_ip=xxx (ie, whatever your normal "loadrt hm2_eth" looks like. (after INI substitution, if used))

show pin

"show pin" will list all the HAL pins, and some of them will have two indexes to them, something like 0.2 or 1.3
The first number is the port number, the second the channel.
So, if the sub-device that you want to set to mode 2 is on 1.3 you can try this:

unloadrt hm2_eth (to start again)
loadrt hm2_eth board_ip=xxx config="sserial_port_1=00020000"

now try show-pin again and see if the MPG pins have appeared.

I dont have a 7i76E so can't tell you the exact configuration string you need.

I _really_ ought to modify this to be compatible with the "use_serial_numbers" option of hostmot2, as setting the process data mode by port and channel fails if the cables are swapped about.

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

More
27 Nov 2016 15:16 #83365 by PCW
Replied by PCW 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

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

Time to create page: 0.212 seconds
Powered by Kunena Forum