- Posts: 17
- Thank you received: 0
Configuring endstops in series - Error troubleshooting
4 years 7 months ago #237056
by MacLaddy
Configuring endstops in series - Error troubleshooting was created by MacLaddy
Hey folks,
I've been working my way through a new installation for an XYYZ PNC machine with a single parallel port. I have four inductive sensors for homing and endstops. One each for the X and Z axis, and one for each motor on the Y-Axis.
I'm not sure if these sensors are NO or NC. I have wired them in series where they remain at 24V until triggered, and then go to 0V. They are wired with X and Y1 together and Z & Y2. I have used Pin 10 for one set and 11 for the other.
Here's the issue. When I start LinuxCNC, I receive the following error. I'm not sure what it means. I've been able to work my way through several previous errors and the HAL/INI file, but this one has stumped me.
I appreciate any help offered. I just started with LinuxCNC, so please be gentle. I've also attached my HAL and INI file.
Afterthought: I realize many of the travel distances and velocities are out of whack (8 inches or so). I'll fix those once I can get the program to boot.
C from starting.
More information may be available when running from a terminal.
..1579
1606
.HAL: ERROR: exit called before init
<commandline>:0: waitpid failed milltask inihal
<commandline>:0: milltask exited without becoming ready
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
[/code]
I've been working my way through a new installation for an XYYZ PNC machine with a single parallel port. I have four inductive sensors for homing and endstops. One each for the X and Z axis, and one for each motor on the Y-Axis.
I'm not sure if these sensors are NO or NC. I have wired them in series where they remain at 24V until triggered, and then go to 0V. They are wired with X and Y1 together and Z & Y2. I have used Pin 10 for one set and 11 for the other.
Here's the issue. When I start LinuxCNC, I receive the following error. I'm not sure what it means. I've been able to work my way through several previous errors and the HAL/INI file, but this one has stumped me.
I appreciate any help offered. I just started with LinuxCNC, so please be gentle. I've also attached my HAL and INI file.
Afterthought: I realize many of the travel distances and velocities are out of whack (8 inches or so). I'll fix those once I can get the program to boot.
Code:
Error report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:
cory
Print file information:
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/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.8.2-11-g6a3d0a434
Machine configuration directory is '/home/cory/linuxcnc/configs/cutter'
Machine configuration file is 'cutter.ini'
INIFILE=/home/cory/linuxcnc/configs/cutter/cutter.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=
DISPLAY=axis
COORDINATES=XYYZ
KINEMATICS=trivkins coordinates=XYYZ
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Found file(REL): ./cutter.hal
Found file(REL): ./custom.hal
Starting TASK program: milltask
Starting DISPLAY program: axis
emcMotionInit: emcJointInit(3) failed
emcMotionInit: emcJointInit(3) failed
emcMotionInit: emcJointInit(3) failed
emcMotionInit: emcJointInit(3) failed
emcMotionInit: emcJointInit(3) failed
emcMotionInit: emcJointInit(3) failed
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
Shutting down and cleaning up LinuxCNC...
config string '0 out'
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
Note: Using POSIX realtime
INIFILE: ERR_CONVERSION, section=JOINT_3, tag=HOME_LATCH_VEL, num=1, lineNo=154
note: MAXV max: 3.000 units/sec 180.000 units/min
note: LJOG max: 3.000 units/sec 180.000 units/min
note: LJOG default: 0.300 units/sec 18.000 units/min
INIFILE: ERR_CONVERSION, section=JOINT_3, tag=HOME_LATCH_VEL, num=1, lineNo=154cory
Waiting for component 'inihal' to become ready...INIFILE: ERR_CONVERSION, section=JOINT_3, tag=HOME_LATCH_VEL, num=1, lineNo=154
..........INIFILE: ERR_CONVERSION, section=JOINT_3, tag=HOME_LATCH_VEL, num=1, lineNo=154
..........INIFILE: ERR_CONVERSION, section=JOINT_3, tag=HOME_LATCH_VEL, num=1, lineNo=154
...........INIFILE: ERR_CONVERSION, section=JOINT_3, tag=HOME_LATCH_VEL, num=1, lineNo=154
..A configuration error is preventing LinuxCN
More information may be available when running from a terminal.
..1579
1606
.HAL: ERROR: exit called before init
<commandline>:0: waitpid failed milltask inihal
<commandline>:0: milltask exited without becoming ready
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
[/code]
Attachment not found
Attachment not found
Please Log in to join the conversation.
4 years 7 months ago #237058
by PCW
Replied by PCW on topic Configuring endstops in series - Error troubleshooting
Just a a WAG but maybe the error:
emcMotionInit: emcJointInit(3)) failed
is because of the broken number in joint 3:
HOME_LATCH_VEL = 0.03 0000
emcMotionInit: emcJointInit(3)) failed
is because of the broken number in joint 3:
HOME_LATCH_VEL = 0.03 0000
Please Log in to join the conversation.
4 years 7 months ago #237064
by MacLaddy
Replied by MacLaddy on topic Configuring endstops in series - Error troubleshooting
It worked! Excellent WAG. I never would have noticed that white space, thank you. Now I just need to see if the homing sequence actually works.Just a a WAG but maybe the error:
emcMotionInit: emcJointInit(3)) failed
is because of the broken number in joint 3:
HOME_LATCH_VEL = 0.03 0000
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22012
- Thank you received: 4
4 years 7 months ago #237065
by tommylight
Replied by tommylight on topic Configuring endstops in series - Error troubleshooting
INIFILE: ERR_CONVERSION, section=JOINT_3, tag=HOME_LATCH_VEL, num=1, lineNo=154
It is pinpointed exactly where the issue is, namely:
There can be no spaces there.
This reminds me, the second time i used LinuxCNC or EMC2 back then, wasted about an hour chasing why a new config is not starting, turned out a space in a config folder name was not allowed back then.
Just squash them one by one as they come.
P.S.
Almost forgot, welcome.
It is pinpointed exactly where the issue is, namely:
Code:
HOME_LATCH_VEL = 0.03 0000
This reminds me, the second time i used LinuxCNC or EMC2 back then, wasted about an hour chasing why a new config is not starting, turned out a space in a config folder name was not allowed back then.
Just squash them one by one as they come.
P.S.
Almost forgot, welcome.
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22012
- Thank you received: 4
4 years 7 months ago #237066
by tommylight
Replied by tommylight on topic Configuring endstops in series - Error troubleshooting
What the heyyyyy...
Oh well, i was watching Nero3D on youtube while answering.
Oh well, i was watching Nero3D on youtube while answering.
Please Log in to join the conversation.
4 years 7 months ago #237075
by MacLaddy
Replied by MacLaddy on topic Configuring endstops in series - Error troubleshooting
Thanks for the welcome. I have no doubt I'll be here a lot. Also never heard of Nero3D. Looks like a great channel. Appreciate the tip.
(I destroyed that quoted reply. Guess I need to also learn how to use this website)
Please Log in to join the conversation.
4 years 7 months ago #237144
by MacLaddy
Replied by MacLaddy on topic Configuring endstops in series - Error troubleshooting
I provided incorrect information in the original post. Pins 10 and 11 remain at 0V until triggered, then go to 24V. I mention this because although LinuxCNC now boots for me, when I start the homing sequence it does not see it when I trigger the endstop. The z-motor just keeps spinning. I've tested the pin with a volt meter and I can see it goes high when I trigger it.
I have tried both :
net home-x-y1 <= parport.0.pin-10-in-not
net home-z-y2 <= parport.0.pin-11-in-not
and
net home-x-y1 <= parport.0.pin-10-in
net home-z-y2 <= parport.0.pin-11-in
Neither of these work. Is there another setting for this?
Thanks again.
I have tried both :
net home-x-y1 <= parport.0.pin-10-in-not
net home-z-y2 <= parport.0.pin-11-in-not
and
net home-x-y1 <= parport.0.pin-10-in
net home-z-y2 <= parport.0.pin-11-in
Neither of these work. Is there another setting for this?
Thanks again.
Attachment not found
Please Log in to join the conversation.
4 years 7 months ago #237147
by PCW
Replied by PCW on topic Configuring endstops in series - Error troubleshooting
do
parport.0.pin-10-in
parport.0.pin-11-in
Change when you manually trip the switches?
If you are running Axis you can view these with halshow (Machine --> Show HAL configuration --> Watch )
parport.0.pin-10-in
parport.0.pin-11-in
Change when you manually trip the switches?
If you are running Axis you can view these with halshow (Machine --> Show HAL configuration --> Watch )
Please Log in to join the conversation.
4 years 7 months ago #237149
by MacLaddy
Replied by MacLaddy on topic Configuring endstops in series - Error troubleshooting
do
parport.0.pin-10-in
parport.0.pin-11-in
Change when you manually trip the switches?
If you are running Axis you can view these with halshow (Machine --> Show HAL configuration --> Watch )
I changed them back to pin-10-in. I don't understand what you mean by "change when you manually trip the switches?" The motors are off the machine right now. I'm doing benchtop tests, so I start homing inside LCNC and manually trigger the Z-Stop since it is first in the sequence.
Thank you for the tip on viewing halshow. When doing this for PIN10, it shows parport.0.pin-10-in as red and parport.0.pin-10-in-not as yellow. They flip when triggered. PIN11 does the same. I'm pretty sure it is wired correctly, as either X or Y1 can trigger the change (but not at the same time). But it still doesn't register when homing.
Please Log in to join the conversation.
4 years 7 months ago #237150
by PCW
Replied by PCW on topic Configuring endstops in series - Error troubleshooting
The shared home signal names don't match so there
is no connection from your hardware to LinuxCNC:
net home-x-y1 <= parport.0.pin-10-in-not
net home-z-y2 <= parport.0.pin-11-in-not
...
net home-x => joint.0.home-sw-in
net home-y1 => joint.1.home-sw-in
net home-y2 => joint.2.home-sw-in
net home-z => joint.3.home-sw-in
should be something like:
net home-x-y1 => joint.0.home-sw-in
net home-x-y1 => joint.1.home-sw-in
net home-z-y2 => joint.2.home-sw-in
net home-z-y2 => joint.3.home-sw-in
is no connection from your hardware to LinuxCNC:
net home-x-y1 <= parport.0.pin-10-in-not
net home-z-y2 <= parport.0.pin-11-in-not
...
net home-x => joint.0.home-sw-in
net home-y1 => joint.1.home-sw-in
net home-y2 => joint.2.home-sw-in
net home-z => joint.3.home-sw-in
should be something like:
net home-x-y1 => joint.0.home-sw-in
net home-x-y1 => joint.1.home-sw-in
net home-z-y2 => joint.2.home-sw-in
net home-z-y2 => joint.3.home-sw-in
Please Log in to join the conversation.
Time to create page: 0.116 seconds
