Getiing a 5i25 with g540 going
- blacksmith
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
26 Oct 2015 03:29 #64263
by blacksmith
I have just seen your last post and not dug into it yet. Pncconf is a little intimidating since the 5i25_g540x2 was a virtual blank slate with a blizzard of configuration choices.
I saw a reference to creating an XML for pncconf using mesaflash and thought I would see it it was generating anything odd or different. I was surprised to compare the /lib/firmware/hm2/5i25/5i25_g540x2.xml to my mesaflash XML - very different. See the sample below, more differences than similarities.
I wonder if the /lib/firmware/hm2/ examples/templates are corrupt? This would hose a lot of folks.
Replied by blacksmith on topic Getiing a 5i25 with g540 going
have you tried using pncconf to construct a config ?
I have just seen your last post and not dug into it yet. Pncconf is a little intimidating since the 5i25_g540x2 was a virtual blank slate with a blizzard of configuration choices.
I saw a reference to creating an XML for pncconf using mesaflash and thought I would see it it was generating anything odd or different. I was surprised to compare the /lib/firmware/hm2/5i25/5i25_g540x2.xml to my mesaflash XML - very different. See the sample below, more differences than similarities.
I wonder if the /lib/firmware/hm2/ examples/templates are corrupt? This would hose a lot of folks.
Please Log in or Create an account to join the conversation.
- blacksmith
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
26 Oct 2015 03:51 #64266
by blacksmith
Thanks. I suspect I am doing something incorrectly:
v@debian:~/config/cncbasher-example/cncbasher/g540$ ls -l
total 28
-rw-r--r-- 1 v v 5522 Oct 25 05:56 5i25-g540.ini
-rwxr--r-- 1 v v 9108 Jan 23 2013 g540x2.xml
-rw-r--r-- 1 v v 7742 Oct 25 06:04 hm2-g540-stepper.hal
v@debian:~/config/cncbasher-example/cncbasher/g540$ linuxcnc ./5i25-g540.ini
LINUXCNC - 2.7.1
Machine configuration directory is '/home/v/config/cncbasher-example/cncbasher/g540/.'
Machine configuration file is '5i25-g540.ini'
Starting LinuxCNC...
.
Found file(REL): ./hm2-g540-stepper.hal
emc/iotask/ioControl.cc 768: can't load tool table.
HAL: ERROR: function 'hm2_5i25.0.pet_watchdog' not found
./hm2-g540-stepper.hal:52: addf failed
Shutting down and cleaning up LinuxCNC...
LinuxCNC terminated with an error. You can find more information in the log:
/home/v/linuxcnc_debug.txt
and
/home/v/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
#
## I commented out "addf hm2_[HOSTMOT2](BOARD).0.pet_watchdog servo-thread"
#
v@debian:~/config/cncbasher-example/cncbasher/g540$ linuxcnc ./5i25-g540.ini
LINUXCNC - 2.7.1
Machine configuration directory is '/home/v/config/cncbasher-example/cncbasher/g540/.'
Machine configuration file is '5i25-g540.ini'
Starting LinuxCNC...
.
emc/iotask/ioControl.cc 768: can't load tool table.
Found file(REL): ./hm2-g540-stepper.hal
./hm2-g540-stepper.hal:220: parameter or pin 'hm2_5i25.0.stepgen.04.control_type' not found
Shutting down and cleaning up LinuxCNC...
LinuxCNC terminated with an error. You can find more information in the log:
/home/v/linuxcnc_debug.txt
and
/home/v/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
v@debian:~/config/cncbasher-example/cncbasher/g540$
Replied by blacksmith on topic Getiing a 5i25 with g540 going
Modified config to 4 xaxis
remember this is just the start point , their are no limits , home , spindle etc
pncconfig is the starting point to making a working configuration
axes are not slaved at this time , so you have 4 independant stepgens & the chargepump (stepgen 4)
Thanks. I suspect I am doing something incorrectly:
v@debian:~/config/cncbasher-example/cncbasher/g540$ ls -l
total 28
-rw-r--r-- 1 v v 5522 Oct 25 05:56 5i25-g540.ini
-rwxr--r-- 1 v v 9108 Jan 23 2013 g540x2.xml
-rw-r--r-- 1 v v 7742 Oct 25 06:04 hm2-g540-stepper.hal
v@debian:~/config/cncbasher-example/cncbasher/g540$ linuxcnc ./5i25-g540.ini
LINUXCNC - 2.7.1
Machine configuration directory is '/home/v/config/cncbasher-example/cncbasher/g540/.'
Machine configuration file is '5i25-g540.ini'
Starting LinuxCNC...
.
Found file(REL): ./hm2-g540-stepper.hal
emc/iotask/ioControl.cc 768: can't load tool table.
HAL: ERROR: function 'hm2_5i25.0.pet_watchdog' not found
./hm2-g540-stepper.hal:52: addf failed
Shutting down and cleaning up LinuxCNC...
LinuxCNC terminated with an error. You can find more information in the log:
/home/v/linuxcnc_debug.txt
and
/home/v/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
#
## I commented out "addf hm2_[HOSTMOT2](BOARD).0.pet_watchdog servo-thread"
#
v@debian:~/config/cncbasher-example/cncbasher/g540$ linuxcnc ./5i25-g540.ini
LINUXCNC - 2.7.1
Machine configuration directory is '/home/v/config/cncbasher-example/cncbasher/g540/.'
Machine configuration file is '5i25-g540.ini'
Starting LinuxCNC...
.
emc/iotask/ioControl.cc 768: can't load tool table.
Found file(REL): ./hm2-g540-stepper.hal
./hm2-g540-stepper.hal:220: parameter or pin 'hm2_5i25.0.stepgen.04.control_type' not found
Shutting down and cleaning up LinuxCNC...
LinuxCNC terminated with an error. You can find more information in the log:
/home/v/linuxcnc_debug.txt
and
/home/v/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
v@debian:~/config/cncbasher-example/cncbasher/g540$
Please Log in or Create an account to join the conversation.
26 Oct 2015 04:54 #64267
by PCW
Replied by PCW on topic Getiing a 5i25 with g540 going
The pin name is not correct, it should be
hm2_5i25.0.stepgen.04.control-type
Please Log in or Create an account to join the conversation.
- blacksmith
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
26 Oct 2015 06:46 #64268
by blacksmith
New error. Is this the same thing, or a variation on the same?
Replied by blacksmith on topic Getiing a 5i25 with g540 going
The pin name is not correct, it should be
hm2_5i25.0.stepgen.04.control-type
New error. Is this the same thing, or a variation on the same?
parameter or pin 'hm2_5i25.0.stepgen.03.step-type' not found
Please Log in or Create an account to join the conversation.
26 Oct 2015 07:05 #64269
by PCW
Replied by PCW on topic Getiing a 5i25 with g540 going
Yep step-type should be step_type
(How those inconsistent names got built in I do not know but its too late to change them now)
The hostmot2 manual page is the reference of the correct pin/parameter names
(How those inconsistent names got built in I do not know but its too late to change them now)
The hostmot2 manual page is the reference of the correct pin/parameter names
Please Log in or Create an account to join the conversation.
- blacksmith
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
26 Oct 2015 08:04 #64271
by blacksmith
Ok editied the _ to a -Ok I am beginning to see this is a train wreck. One code tweak after another.
My mistake, I bought this Mesa card naively assuming it would come with supported software and work. Is there a card I can purchase that will work out of the box without me reinventing the wheel?
I know you guys volunteer and do your best but sending me back to the manual page to devine the answer is terribly frustrating. I like linuxcnc and I just want to use the CNC that I just spent thousands on.
Replied by blacksmith on topic Getiing a 5i25 with g540 going
Yep step-type should be step_type
(How those inconsistent names got built in I do not know but its too late to change them now)
The hostmot2 manual page is the reference of the correct pin/parameter names
Starting LinuxCNC...
.
emc/iotask/ioControl.cc 768: can't load tool table.
Found file(REL): ./hm2-g540-stepper.hal
./hm2-g540-stepper.hal:220: parameter or pin 'hm2_5i25.0.stepgen.04.control_type' not found
...
Found file(REL): ./hm2-g540-stepper.hal
./hm2-g540-stepper.hal:226: Pin 'emcmot.00.enable' does not exist
My mistake, I bought this Mesa card naively assuming it would come with supported software and work. Is there a card I can purchase that will work out of the box without me reinventing the wheel?
I know you guys volunteer and do your best but sending me back to the manual page to devine the answer is terribly frustrating. I like linuxcnc and I just want to use the CNC that I just spent thousands on.
Please Log in or Create an account to join the conversation.
26 Oct 2015 16:23 #64280
by cncbasher
Replied by cncbasher on topic Getiing a 5i25 with g540 going
Firstly I think you have the wrong idea of the support you have available, which is really second to none, in comparison.
Linuxcnc can be complex for the beginner, but we will never leave you cold and dry. We try to explain so in future you are able to learn the processes needed, which are not difficult once you have grasped a few points, you have to remember non of us know what your machine is, it's connections, or your ability.
Linuxcnc is very capable,from small diy hobby machines to massive machines weighing in tonnes.
OK back to your problem, we will need to know what connections you wish to make, do you have a diagram, tell us what machine all this is connecting to etc.
And what ballscrews your using, and how your spindle is running etc,yes it,s a long list, remember we can't see it.
Problems in the configs are easily solved, we just need them to be accurately relayed back. This in turn is also an way of you learning how to put it all together next time.
If you wish email me with details and we can put together what you need.
And above all enjoy linuxcnc.
Linuxcnc can be complex for the beginner, but we will never leave you cold and dry. We try to explain so in future you are able to learn the processes needed, which are not difficult once you have grasped a few points, you have to remember non of us know what your machine is, it's connections, or your ability.
Linuxcnc is very capable,from small diy hobby machines to massive machines weighing in tonnes.
OK back to your problem, we will need to know what connections you wish to make, do you have a diagram, tell us what machine all this is connecting to etc.
And what ballscrews your using, and how your spindle is running etc,yes it,s a long list, remember we can't see it.
Problems in the configs are easily solved, we just need them to be accurately relayed back. This in turn is also an way of you learning how to put it all together next time.
If you wish email me with details and we can put together what you need.
And above all enjoy linuxcnc.
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.077 seconds