Is this a bug?

More
03 Jan 2012 15:34 - 03 Jan 2012 15:36 #16257 by fgauder
Is this a bug? was created by fgauder
I'm trying to start up a Hurco MD3 4 axis mill conversion. It's using EMC2 2.5 pre -release with Mesa 5i20, 7i48, and 2 7i37 boards and has been configured using PnCConf. Yesterday, after configuring it, EMC2 opened and all seemed to be OK to begin start up. E-stop and limit switches all worked and all encoders registered the proper direction and distance when the axes were moved manually.

Day ended, did an update on computer, came in today to power up servos. EMC2 will not start. I've gone back through PnCConf and removed all the extras and looked in all the files to see if I could manually correct for the error I get. No luck. I've attached the "EMC2 Errors" message and would appreciate it if someone could set me straight. Thanks.

File Attachment:

File Name: EMC2_Errors.txt
File Size:8 KB
Attachments:
Last edit: 03 Jan 2012 15:36 by fgauder.

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

More
03 Jan 2012 15:52 #16259 by PCW
Replied by PCW on topic Re:Is this a bug?
Hurco_MD3.hal:209: Signal '%s-vel-fb' can not add OUT pin 'hm2_5i20.0.encoder.01.velocity', it already has OUT pin 'hm2_5i20.0.encoder.00.velocity'
2549

Looks like a real error in the HAL file can you post your HAL file?

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

More
03 Jan 2012 16:04 #16260 by cncbasher
Replied by cncbasher on topic Re:Is this a bug?
Hurco_MD3.hal:209: Signal '%s-vel-fb' can not add OUT pin 'hm2_5i20.0.encoder.01.velocity', it already has OUT pin 'hm2_5i20.0.encoder.00.velocity'

delete line 209 or manualy edit etc ,
it's trying to add a pin to one already existing
i believe this is due to changes in pncconf and probably a bug for Chris to rectifiy , if indeed he has not already done so
also it looks as your firmware bit file may require an update

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

More
03 Jan 2012 16:15 #16261 by fgauder
Replied by fgauder on topic Re:Is this a bug?
Here's the .hal file. Is there a way to number the lines? How do I update the firmware?

File Attachment:

File Name: Hurco_MD3.hal
File Size:14 KB
Attachments:

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

More
03 Jan 2012 16:19 - 03 Jan 2012 16:27 #16262 by cncbasher
Replied by cncbasher on topic Re:Is this a bug?
net y-pos-fb <= hm2_5i20.0.encoder.01.position

delete this line below
net %s-vel-fb <= hm2_5i20.0.encoder.01.velocity

net y-pos-fb => axis.1.motor-pos-fb

if you open the hal file in Gedit the cursor line is shown in the bottom right corner
or in gedit under Edit , preferences tab , tick the box 'Display Line Numbers'

are you using velocity encoder feedback if so
replace the %s-vel-fb above with y-vel-fb

also the same with x and z axis
this takes the same pattern so change to x-vel-fb and z-vel-fb as approprate
Last edit: 03 Jan 2012 16:27 by cncbasher.

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

More
03 Jan 2012 16:23 - 03 Jan 2012 16:26 #16263 by PCW
Replied by PCW on topic Re:Is this a bug?
Looks like a macro substitution did not take place (the %s) so
all encoder velocities get assigned to the same variable
This requires more serious editing or Chriss's help

Beware that these changes will change your tuning (lower the D factor)
until the firmware is updated
Last edit: 03 Jan 2012 16:26 by PCW. Reason: ommission

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

More
03 Jan 2012 16:56 #16264 by fgauder
Replied by fgauder on topic Re:Is this a bug?
Peter and cncbasher,

Thanks for the responses. I had configured a much simpler 3 axis version and when I deleted the "net %s-vel-fb <=" line from each axis, EMC2 opened.

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

More
03 Jan 2012 19:36 #16267 by PCW
Replied by PCW on topic Re:Is this a bug?
Note that simply deleting these lines is not really correct, you now have no D
term in your PID loop
What really should happen is that the %s should be replaced with x, y, or z (which one is pretty clear from 00 = x , 01 = y, 02 =z or just context)

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

More
03 Jan 2012 21:45 #16272 by fgauder
Replied by fgauder on topic Re:Is this a bug?
Thanks Peter! I put the line back in and edited it as you suggested, and it still works. It's usually what you don't know that you don't know that gets you.

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

More
04 Jan 2012 01:39 #16280 by cmorley
Replied by cmorley on topic Re:Is this a bug?
Fgauder

Sorry for the bug getting you. I have pushed the fix.

You asked about line numbers when displaying HAL files.
If you are using Ubuntu you are probably viewing the HAL file with gedit...
Look under heading 'edit' then 'preferences'.
You should see a checkbox.

Cheers

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

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