Waiting for S.Axes problem
Yes, that gets it in as a bugfix in 2.5, and it will then get merged into the dev branch in a day or so.I went ahead and pushed, seems to be in the v2.5_branch tree, is
this the right place to be putting this?
Please Log in or Create an account to join the conversation.
I'm not sure if he is the first, but he is certainly the first to resolve it. Well done!WOW, I can't believe this is the first person to hit this bug!
These 2 threads are pretty much unresolved and the errors look similar
(well second resolved but print similar)
www.linuxcnc.org/index.php/english/compo...=38&id=20554&limit=6
www.linuxcnc.org/index.php/english/compo...tid=9&id=20485#20535
There is at least one more but I can't find it presently.
The error print
Debug file information:
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Can not find -sec EMC -var NML_FILE -num 1
seems to be coming up since 2.5 and appears to suggest a problem parsing / finding the .ini file
but that looks like that is a purple bloater and the problem was elsewhere.
regards
Please Log in or Create an account to join the conversation.
The symptoms are the same, but the cause is almost certainly different.These 2 threads are pretty much unresolved and the errors look similar
www.linuxcnc.org/index.php/english/compo...=38&id=20554&limit=6
www.linuxcnc.org/index.php/english/compo...tid=9&id=20485#20535
This is only going to hit people using the pico-systems ppmc. The two chaps you linked to are using stepper-mm.ini and sim-axis.ini which look like the sample configs. Neither make likely candidates for conversion to a PPMC system, but users do odd things.
I think that you get the "waiting for s.axes" problem any time that the realtime part of a HAL component crashes the realtime thread.
It might be worth adding a diagnostic to check for that cause.
Please Log in or Create an account to join the conversation.
OK, I hope that VNR can test this, as I don't have an old enough board to test it here. But,jmelson wrote:
Yes, that gets it in as a bugfix in 2.5, and it will then get merged into the dev branch in a day or so.I went ahead and pushed, seems to be in the v2.5_branch tree, is
this the right place to be putting this?
the problem was quite obvious, the velocity pin did not get created, and then the encoder
module tried to write a value to it.
I did test it with a USC and a UPC board, and it works fine in both cases, so it didn't
break anything (I think). If the lines were moved to the right place to satisfy C syntax,
I don't see how this code could go wrong.
Jon
Please Log in or Create an account to join the conversation.
Right, and write a much more informative message. Not exactly sure how you detect a crashedI think that you get the "waiting for s.axes" problem any time that the realtime part of a HAL component crashes the realtime thread.
It might be worth adding a diagnostic to check for that cause.
RT module in a thread, but hopefully there is a simple way to do so.
This particular bug did not cause the driver to crash during initialization, which would
cause LinuxCNC to shut down immediately with a slightly more informative message.
It only caused it to crash on the first servo thread execution.
Jon
Please Log in or Create an account to join the conversation.
I instaled the update and it is working OK with my USC card (by the way is an old card Rev 2.2 2005-9-1 Number 0046)I'm a little afraid to hack into this and make things worse.
Well, after looking at it a bit, the fix seemed so obvious and simple, that
I went ahead and pushed, seems to be in the v2.5_branch tree
Thanks Jon for the patch.
Please Log in or Create an account to join the conversation.
Excellent! Thanks so much for FINDING the cause, and then testing the fix!
I instaled the update and it is working OK with my USC card (by the way is an old card Rev 2.2 2005-9-1 Number 0046)I'm a little afraid to hack into this and make things worse.
Well, after looking at it a bit, the fix seemed so obvious and simple, that
I went ahead and pushed, seems to be in the v2.5_branch tree
Thanks Jon for the patch.
The board rev # is not the same as the firmware rev #. But, a huge change was
made at the rev 3.0 board going to a newer FPGA chip, so older boards
couldn't accept newer firmware.
Jon
Please Log in or Create an account to join the conversation.
so please quide me how to fix it.
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
INIFILE=/home/shailesh/linuxcnc/configs/sim.axis/axis.ini
PARAMETER_FILE=sim.var
TASK=milltask
HALUI=halui
DISPLAY=axis
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Killing task linuxcncsvr, PID=4845
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
- Posts: 19197
- Thank you received: 6434
Please Log in or Create an account to join the conversation.
Do the sample configs run (for example sim/axis/axis_mm )
Please Log in or Create an account to join the conversation.