- Posts: 25
- Thank you received: 0
PnCConf Error with 7i80DB
- CanadianNC
- Topic Author
- Offline
- Junior Member
-
Less
More
10 years 5 months ago #74207
by CanadianNC
Replied by CanadianNC on topic PnCConf Error with 7i80DB
I've managed to generate the hal and ini files for a 5i25 and 2x7i77 and I've done my best to convert them for use with the 7i80DB but now I'm running into the problem where LinuxCNC won't start because of all kinds of errors. I've solved some of them but I'm having trouble with one in particular now.
The Debug file information is:
./UVac_CNC.hal:9: parameter or pin 'hm2_7i80DB.0.watchdog.timeout_ns' not found
7994
PID TTY STAT TIME COMMAND
Obviously there's a problem with the watchdog timer, I just have no idea what that problem is.
Does anyone have hal and ini files for the 7i80db that I could take a look at? I'm doing my best to convert the 5i25 but I can't find much information on the newer cards like the 7i80.
The Debug file information is:
./UVac_CNC.hal:9: parameter or pin 'hm2_7i80DB.0.watchdog.timeout_ns' not found
7994
PID TTY STAT TIME COMMAND
Obviously there's a problem with the watchdog timer, I just have no idea what that problem is.
Does anyone have hal and ini files for the 7i80db that I could take a look at? I'm doing my best to convert the 5i25 but I can't find much information on the newer cards like the 7i80.
Please Log in or Create an account to join the conversation.
10 years 5 months ago #74215
by andypugh
Which version of LinuxCNC? (Not that that should matter, I have looked and the parameter exists in 2.6 and 2.7 version.
However, it only exists if the Mesa card firmware has a watchdog function, and perhaps the current 7i80DB firmware doesn't have one.
Try commenting out that line for the time being.
You seem to have worked out where to look for the config errors, so it really is just a case of repeatedly trying to start the config and addressing the typos and mistakes one by one. If it makes you feel any better it took me 8 iterations on a hal file I wrote last night
To be absolutely sure you could insert a couple of linse in the HAL file above the troublesome line
and then the error listing you get will contain a list of all the valid pin names at the point of the problem.
(is it possible that the watchdog line is actually being interprested before the 7i80 has loaded?)
Replied by andypugh on topic PnCConf Error with 7i80DB
CanadianNC wrote: Obviously there's a problem with the watchdog timer, I just have no idea what that problem is.
Which version of LinuxCNC? (Not that that should matter, I have looked and the parameter exists in 2.6 and 2.7 version.
However, it only exists if the Mesa card firmware has a watchdog function, and perhaps the current 7i80DB firmware doesn't have one.
Try commenting out that line for the time being.
You seem to have worked out where to look for the config errors, so it really is just a case of repeatedly trying to start the config and addressing the typos and mistakes one by one. If it makes you feel any better it took me 8 iterations on a hal file I wrote last night
To be absolutely sure you could insert a couple of linse in the HAL file above the troublesome line
Code:
show pin hm2*
show param hm2*
(is it possible that the watchdog line is actually being interprested before the 7i80 has loaded?)
Please Log in or Create an account to join the conversation.
- CanadianNC
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 25
- Thank you received: 0
10 years 5 months ago #74216
by CanadianNC
Replied by CanadianNC on topic PnCConf Error with 7i80DB
I'm running the latest 2.7 with Preempt-RT and uspace. At least I think I am, the uname -a returns the correct thing for preempt-rt but I'm not sure how to check on uspace...
I commented it out and now the error has just moved to the next line:
Error:
function 'hm2_7i80DB.0.read' not found
I then put that the watchdog line back in and added those lines you mentioned and I get the headings for pins and parameters in the error file but there's nothing in the lists so I'm guessing it hasn't assigned pins or parameters yet.
Is changing the HAL file from 5i25 to 7i80 as simple as replacing all instances of 5i25 with 7i80DB and making sure that the hm2_eth is used instead of hm2-pci?
I commented it out and now the error has just moved to the next line:
Code:
addf hm2_7i80DB.0.read servo-thread
function 'hm2_7i80DB.0.read' not found
I then put that the watchdog line back in and added those lines you mentioned and I get the headings for pins and parameters in the error file but there's nothing in the lists so I'm guessing it hasn't assigned pins or parameters yet.
Is changing the HAL file from 5i25 to 7i80 as simple as replacing all instances of 5i25 with 7i80DB and making sure that the hm2_eth is used instead of hm2-pci?
Please Log in or Create an account to join the conversation.
10 years 5 months ago #74217
by andypugh
Replied by andypugh on topic PnCConf Error with 7i80DB
It does seem like it is not finding the 7i80 at all.
Other than changing hm2_pci to hm2_eth you probably need to supply an IP address for the card.
(It is trivial to enumerate all PCI slots, and impossible to enumerate all IP address
linuxcnc.org/docs/2.7/html/man/man9/hm2_eth.9.html
Seems to contain some useful instructions.
Other than changing hm2_pci to hm2_eth you probably need to supply an IP address for the card.
(It is trivial to enumerate all PCI slots, and impossible to enumerate all IP address
linuxcnc.org/docs/2.7/html/man/man9/hm2_eth.9.html
Seems to contain some useful instructions.
The following user(s) said Thank You: CanadianNC
Please Log in or Create an account to join the conversation.
- CanadianNC
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 25
- Thank you received: 0
10 years 5 months ago #74221
by CanadianNC
Replied by CanadianNC on topic PnCConf Error with 7i80DB
You are correct, I redid the HAL file yesterday and completely forgot to put in the IP address of the board. Doh!
Thanks!
Thanks!
Please Log in or Create an account to join the conversation.
- CanadianNC
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 25
- Thank you received: 0
10 years 5 months ago #74251
by CanadianNC
Replied by CanadianNC on topic PnCConf Error with 7i80DB
Almost there. Turns out that the board shouldn't be called 7i80DB, just 7i80 whenever it's called in the HAL file. hm2_7i80.0.7i77.0.0.output etc etc.. That's takes care of most of the errors but there's another one that I can't figure out.
parameter or pin 'scale.spindle.gain' not found
It's used in the following line:
Ideas?
parameter or pin 'scale.spindle.gain' not found
It's used in the following line:
Code:
setp scale.spindle.gain 60
Ideas?
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.058 seconds