Mesa 5i25+7i77 plug-n-go configuration

More
15 Oct 2012 23:53 #25356 by andypugh
gandalf69 wrote:

So what software/steps do I need to use/learn to achieve this goal?.


If you know what IO pins and features on the 7i77 need to do what, then it is just a case of setting it up in PNCConf.

Sorting the pins out is a case of reading the 7i77 manual to work out which function / IO is on each terminal block pin and correlating that with the way that the machine works. (i.e. all external to LinuxCNC)

You can start PNCConf from the CNC Menu. The manual is here:
www.linuxcnc.org/docs/html/config/pncconf.html

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

More
16 Oct 2012 00:01 #25357 by cmorley
Not quite that easy for the 5i25 board with PNCconf.
Do to missing XML descriptions in the hostmot2 firmware repo.
work around here:
www.linuxcnc.org/index.php/english/compo...ew&catid=39&id=21670
also make sure you have the latest bug fix 2.5.1

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

More
16 Oct 2012 11:01 #25367 by gandalf69
Before I go charging in and screwing it up, what is 'the latest bug fix 2.5.1.?
I have the official release 2.5.1

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

More
16 Oct 2012 12:15 - 16 Oct 2012 23:56 #25369 by gandalf69
cmorley, thank you,
I followed your link and installed the files.
I picked the 5i25 at I/O Control Ports/Boards.
There is no parallel port listed.
The 5i25 is listed under Parport Address Search as
01:08.0 DPIO module: Device 2718:5125
Subsystem: Device 2718:5125
Flags: fast devsel, IRQ 11
Memory at fbdf0000 (32-bit, non-prefetchable) [size=64K]

I changed the file/folder permissions to the same as the 5i20 firmware. Not sure whether it made any difference.

Skipping a few pages to Mesa0 Config-Board, selected 7i77x2, accept changes, a bunch of I/Os and SSerial tabs appear.
At 'Sanity Check', there is no 7i77 to choose though the 7i33 is checked automatically.
I need to study these tabs for a while.
Last edit: 16 Oct 2012 23:56 by gandalf69.

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

More
17 Oct 2012 00:25 - 17 Oct 2012 00:27 #25389 by cmorley
ok no need to have a parallel port listed.
No need to search for the 5i25 in the address search.

If you found the 7i77 firmware in the combo box all is well.
there is no sanity check for the 7i77 - just uncheck the default 7i33.
Last edit: 17 Oct 2012 00:27 by cmorley.

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

More
17 Oct 2012 00:25 - 17 Oct 2012 00:26 #25391 by cmorley
oh and the released 2.5.1 is what i was talking of. -all good
Last edit: 17 Oct 2012 00:26 by cmorley.

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

More
02 Mar 2013 01:01 #30726 by microsprintbuilder
Servos are enabled but don't move I have the following from the terminal:

steve@Steve-lathe-cnc:~$ linuxCNC
linuxCNC: command not found
steve@Steve-lathe-cnc:~$ linuxcnc
LINUXCNC - 2.5.1
Machine configuration directory is '/home/steve/linuxcnc/configs/HARDINGE-HXL'
Machine configuration file is 'HARDINGE-HXL.ini'
Starting LinuxCNC...
INFO CLASSICLADDER- No ladder GUI requested-Realtime runs till HAL closes.
joint 2 following error
emc/task/taskintf.cc 614: Error on axis 2, command number 116
joint 0 following error
emc/task/taskintf.cc 614: Error on axis 0, command number 143

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

More
02 Mar 2013 01:23 - 02 Mar 2013 01:25 #30727 by PCW
Following errors are to be expected before the servos are tuned

But before tuning, the following preliminaries need to be working:

1. Do the encoders read correctly in the Axis GUI? (correct scale and direction)
2. Can you enable and disable the drives via LinuxCNC
3. Can you drive the motors in the expected direction by applying a small input voltage (pncconfs open loop test can help here)
4. At this point you can begin to tune. For tuning you will need to increase the FERROR and MIN_FERROR parameters for the axis you are tuning so you dont just get instant following errors
about 1 inch or 25 MM is a good number for these. Also its probably best to start with linear axis in the middle of travel so you have time to hit ESTOP if something goes wrong

John Thornton has a nice velocity mode servo tuning guide here:

gnipsel.com/linuxcnc/tuning/servo.html
Last edit: 02 Mar 2013 01:25 by PCW.

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

More
02 Mar 2013 02:37 #30735 by microsprintbuilder
I downloaded the latest from the buildbot and now I'm able to move the servos in pnccon. It is really nice to see something move. but when finish I get the following errors and can save and exit.

PNCconf encountered an error. The following information may be useful in troubleshooting:

Traceback (most recent call last):
File "/usr/bin/pncconf", line 8428, in on_complete_finish
self.data.save()
File "/usr/bin/pncconf", line 3514, in save
self.write_halfile(base)
File "/usr/bin/pncconf", line 2875, in write_halfile
self.connect_axis(file, 0, 'x')
File "/usr/bin/pncconf", line 1842, in connect_axis
pwminvertlist = self.pwmgen_invert_pins(self.pwmgen_sig(let))
File "/usr/bin/pncconf", line 1810, in pwmgen_invert_pins
pin = int(pinnumber[10:])
ValueError: invalid literal for int() with base 10: 'al0_1pin49'

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

More
02 Mar 2013 13:56 #30751 by cmorley
Very sorry.

I pushed the fix

Chris M

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

Moderators: cmorley
Time to create page: 0.243 seconds
Powered by Kunena Forum