Mesa 7i76e setup help!

More
24 Feb 2018 20:20 #106446 by PCW
Replied by PCW on topic Mesa 7i76e setup help!
in you ini file, changing:
CONFIG="num_encoders=1 num_stepgens=3"
to:
CONFIG="num_encoders=1 num_stepgens=3 sserial_port_0=20xx"
should do it

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

More
24 Feb 2018 20:20 #106447 by grossman83
Replied by grossman83 on topic Mesa 7i76e setup help!
I've fixed my own problem by trying a bit harder than I originally had. Sorry for the trouble. I simply added this to my .ini file:
instead of it saying:
[HOSTMOT2]
DRIVER=hm2_eth board_ip="192.168.1.121"
#DRIVER=hm2_eth board_ip="10.10.10.10"

BOARD=7i92
CONFIG="num_encoders=1 num_stepgens=3"

I changed the last line to:
CONFIG="num_encoders=1 num_stepgens=3 sserial_port_0=2"

and I can confirm that it's in software mode 2 because I see the two extra "encoders" as well as the field voltage when I run:
halcmd show pin
They show up in my case as: hm2_7i92.0.7i76.0.0.fieldvoltage and hm2_7i96.0.7i76.enc0.count and enc1.count

Sorry for the hassle
-Marc

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

More
24 Feb 2018 20:22 #106448 by rodw
Replied by rodw on topic Mesa 7i76e setup help!
with my 7i76e its done here
loadrt hm2_eth board_ip="10.10.10.10" config="firmware=/home/plasma/linuxcnc/configs/Plasma3.10.01/7i76e_7i76x1_PktD.bit num_encoders=1 num_pwmgens=0 num_stepgens=5 sserial_port_0=2xxxx"

with
sserial_port_0=2xxxx

Yours will be similar, just be aware you are setting a bitmapped field so read the docs for the component you use.

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

More
24 Feb 2018 20:22 #106449 by grossman83
Replied by grossman83 on topic Mesa 7i76e setup help!
Just noticed PCW replied right when I had. Many thanks, but one remaining question. If there is a software mode 2 and you get it by selecting sserial_port_0=2 as I have, but you say to put 20xx (instead of 2) what are the x's for? Are there other modes that I don't know about? What are they placeholders for?

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

More
24 Feb 2018 20:32 #106454 by rodw
Replied by rodw on topic Mesa 7i76e setup help!
Thats really a PCW question but in the meantime as I said read the docs and it explains it...
linuxcnc.org/docs/html/man/man9/hostmot2.9.html

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

More
24 Feb 2018 21:47 - 24 Feb 2018 21:48 #106461 by Todd Zuercher
In the docs at that link it says that the "x" disables those smart serial channels so their pins can be used for GPIO.
Last edit: 24 Feb 2018 21:48 by Todd Zuercher.

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

More
26 Feb 2018 00:20 #106519 by grossman83
Replied by grossman83 on topic Mesa 7i76e setup help!
I'm sorry to be such a bother, but I've still got a few remaining questions. I know you said read the docs, and I have, but there seems to be only a cursory explanation of what I'm asking about. Here's the relevant line:

""To set the modes for port 0 use, for example sserial_port_0=0120xxxx
A ’0’in the string sets the corresponding port to mode 0, 1 to mode 1, and so on up to mode 9. An "x" in any position disables that channel and makes the corresponding FPGA pins available as GPIO.""

My issue is this I cannot for the life of me find anything useful in either the 7i76 documentation or the 7i92 documentation about which pins are getting used or freed up for GPIO. The only thing that comes close is this line """Software process data modes 1 and 2 allow reading the analog voltage on inputs 0 through 3, in addition to the 32 digital bit inputs.""" I wish there were another software process data mode where I didn't get all the analog input, but did get the encoder data for the MPG wheels.

Anyhow, I've got the MPG wheel "working", but I'm running into a lot of joint following errors. I can see why, but I don't know how to fix the problem. Let's say I've got my step size set at 0.010" because I need to move a large distance and I quickly spin the wheel. Naturally the machine can't keep up because it can't accelerate infinitely fast and I get a following error. How do I disable following errors when using MPG, or what do other people do to solve this problem? I've currently got my FERROR at 0.002" and my MIN_FERROR at 0.001". Do people filter the input so that the machine doesn't get what is effectively step input commands (step being the mathematical term such as "step response" not steps as in stepper motors).

I'm also getting errors with the suggested command of: sserial_port_0=02xxxx, but things work great with sserial_port_0=2xxxxxxx. Not sure why that's the case with my setup which is a 7i76 plugged into P2 of a 7i92.

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

More
26 Feb 2018 00:37 #106520 by rodw
Replied by rodw on topic Mesa 7i76e setup help!
MPG speed is controlled by a setting in the ini file under the DISPLAY section so you could slow it down there.
DEFAULT_LINEAR_VELOCITY = 120

When I've had following errors, I've been able to get them to go away by increasing these numbers in the ini file
# The values below should be 25% larger than MAX_VELOCITY and MAX_ACCELERATION
# If using BACKLASH compensation STEPGEN_MAXACCEL should be 100% larger.
STEPGEN_MAXVEL = 700
STEPGEN_MAXACCEL = 2000

Try 150% instead

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

More
26 Feb 2018 00:51 - 26 Feb 2018 01:03 #106521 by PCW
Replied by PCW on topic Mesa 7i76e setup help!

I'm also getting errors with the suggested command of: sserial_port_0=02xxxx, but things work great with sserial_port_0=2xxxxxxx.


That's because sserial_port_0=02xxxx is asking the driver to set the mode of the second sserial channel to "2"
but there is no second sserial channel connected

With most 7I76 firmware the first sserial port is the field I/O section and the second is the RS-422 expansion port on the 7I76

You can determine the sserial port connections (and which GPIO pin they are using) by looking at the .pin file that corresponds
with your firmware (or using the mesaflash --readhmid command line option to the read current loaded firmware pinout)

You should not in general get following errors regardless of what you do with the jog wheel. if you do it suggests
a hal file setup issue of some kind

That said, people often feed the jog wheel output through the ilowpass component so big jog increments are not so jarring
Last edit: 26 Feb 2018 01:03 by PCW.

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

More
26 Feb 2018 08:55 - 26 Feb 2018 08:56 #106530 by andypugh
Replied by andypugh on topic Mesa 7i76e setup help!

My issue is this I cannot for the life of me find anything useful in either the 7i76 documentation or the 7i92 documentation about which pins are getting used or freed up for GPIO..


With a 7i76E it might not be any pins that are even available externally. It does not affect any pins on the smart-serial cards, just the pair of communications pins on the FPGA card.

With the 7i92 it would be a couple of pins on the DB25 connector, and so wouldn't be much help.

With the cards that have a 50-pin header it might be useful to free up some GPIO pins, but even then the GPIO would generally appear on the RJ45 connector of a 7i44 or similar.

You can figure out which port your smart-serial card is on by the pin names:

hm2_7i92.0.7i76.0.0.... would indicate that the 7i76 smart-serial devices are on port zero channel 0. (where we count from zero).
If you plugged a 7i73 into the expansion port it would appear as hm2_7i92.0.7i73.0.1..... and would be controlled by the second digit in the config string.
Last edit: 26 Feb 2018 08:56 by andypugh.

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

Time to create page: 0.095 seconds
Powered by Kunena Forum