andy@file03:~$ linuxcnc -d -v Debug mode on + getopts dvlhkrH:t:m: opt + case "$opt" in + tty -s + PRINT_FILE=/dev/fd/1 + echo 'Verbose mode on' Verbose mode on + getopts dvlhkrH:t:m: opt + shift 2 + case "" in + '[' -z ']' + tty -s + trap ErrorCheck EXIT + '[' '!' -z '' ']' + EXTRA_ARGS= + RUN_IN_PLACE=yes + echo RUN_IN_PLACE=yes RUN_IN_PLACE=yes + LINUXCNCVERSION=2.10.0~pre0 + export LINUXCNCVERSION + INIVAR=inivar + HALCMD='halcmd ' + PICKCONFIG='/usr/bin/wish8.6 /home/andy/linuxcnc_rip/tcl/bin/pickconfig.tcl' + LINUXCNC_EMCSH=/usr/bin/wish8.6 + echo LINUXCNC_DIR= LINUXCNC_DIR= + echo LINUXCNC_BIN_DIR=/home/andy/linuxcnc_rip/bin LINUXCNC_BIN_DIR=/home/andy/linuxcnc_rip/bin + echo LINUXCNC_TCL_DIR=/home/andy/linuxcnc_rip/tcl LINUXCNC_TCL_DIR=/home/andy/linuxcnc_rip/tcl + echo LINUXCNC_SCRIPT_DIR= LINUXCNC_SCRIPT_DIR= + echo LINUXCNC_RTLIB_DIR=/home/andy/linuxcnc_rip/rtlib LINUXCNC_RTLIB_DIR=/home/andy/linuxcnc_rip/rtlib + echo LINUXCNC_CONFIG_DIR= LINUXCNC_CONFIG_DIR= + echo LINUXCNC_LANG_DIR=/home/andy/linuxcnc_rip/src/objects LINUXCNC_LANG_DIR=/home/andy/linuxcnc_rip/src/objects + echo INIVAR=inivar INIVAR=inivar + echo HALCMD=halcmd HALCMD=halcmd + echo LINUXCNC_EMCSH=/usr/bin/wish8.6 LINUXCNC_EMCSH=/usr/bin/wish8.6 + export LINUXCNC_TCL_DIR + export LINUXCNC_EMCSH + export LINUXCNC_HELP_DIR + export LINUXCNC_LANG_DIR + export REALTIME + export HALCMD + export LINUXCNC_NCFILES_DIR + '[' -z ']' + echo 'LINUXCNC - 2.10.0~pre0' LINUXCNC - 2.10.0~pre0 + '[' '!' -z '' ']' + '[' '!' -n '' ']' ++ /usr/bin/wish8.6 /home/andy/linuxcnc_rip/tcl/bin/pickconfig.tcl + INIFILE=/home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini + '[' /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini.demo = /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini ']' + '[' '!' -n /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini ']' ++ handle_includes /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini ++ hdr='# handle_includes():' ++ inifile=/home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini +++ dirname /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini ++ cd /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine ++ /usr/bin/grep '^#INCLUDE' /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini ++ status=1 ++ '[' 1 -ne 0 ']' ++ echo /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini ++ return 0 + INIFILE=/home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini + INI_NAME=ANDY_LinuxCNC_machine.ini + INI_DIR=/home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine + CONFIG_DIR=/home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine + export CONFIG_DIR + export PATH=/home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/bin:/home/andy/linuxcnc_rip/scripts:/home/andy/linuxcnc_rip/bin:/home/andy/linuxcnc_rip/bin:/home/andy/linuxcnc_rip/scripts:/home/andy/linuxcnc_rip/tcl:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/andy/.local/bin + PATH=/home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/bin:/home/andy/linuxcnc_rip/scripts:/home/andy/linuxcnc_rip/bin:/home/andy/linuxcnc_rip/bin:/home/andy/linuxcnc_rip/scripts:/home/andy/linuxcnc_rip/tcl:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/andy/.local/bin + '[' -z ']' + echo 'Machine configuration directory is '\''/home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine'\''' Machine configuration directory is '/home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine' + echo 'Machine configuration file is '\''ANDY_LinuxCNC_machine.ini'\''' Machine configuration file is 'ANDY_LinuxCNC_machine.ini' + '[' '!' -f /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini ']' + echo INIFILE=/home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini INIFILE=/home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini + retval= + GetFromIni VERSION EMC + name=VERSION ++ inivar -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -var VERSION -sec EMC + retval=1.1 + '[' '!' -n VERSION ']' + echo VERSION=1.1 VERSION=1.1 + '[' 1.1 '!=' 1.1 ']' ++ inivar -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -var MODE -sec PLASMAC + '[' ']' + /usr/bin/tclsh8.6 /home/andy/linuxcnc_rip/lib/hallib/check_config.tcl /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini + exitval=0 + case "$exitval" in + GetFromIni PARAMETER_FILE RS274NGC + name=PARAMETER_FILE ++ inivar -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -var PARAMETER_FILE -sec RS274NGC + retval=linuxcnc.var + '[' '!' -n PARAMETER_FILE ']' + echo PARAMETER_FILE=linuxcnc.var PARAMETER_FILE=linuxcnc.var + RS274NGC_PARAMFILE=linuxcnc.var + GetFromIniEx MOT MOT EMCMOT EMCMOT motmod + original_var='[MOT]MOT' + '[' 5 -ge 2 ']' ++ inivar -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -var MOT -sec MOT + retval= + shift 2 + '[' 3 -ge 2 ']' ++ inivar -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -var EMCMOT -sec EMCMOT + retval=motmod + return + EMCMOT=motmod.so + '[' -z '' ']' + GetFromIniQuiet TPMOD TRAJ + name=TPMOD ++ inivar -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -var TPMOD -sec TRAJ + retval= + '[' '!' -n TPMOD ']' + echo TPMOD= TPMOD= + TPMOD=tpmod + '[' -z '' ']' + GetFromIniQuiet HOMEMOD EMCMOT + name=HOMEMOD ++ inivar -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -var HOMEMOD -sec EMCMOT + retval= + '[' '!' -n HOMEMOD ']' + echo HOMEMOD= HOMEMOD= + HOMEMOD=homemod + GetFromIni TASK TASK + name=TASK ++ inivar -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -var TASK -sec TASK + retval=milltask + '[' '!' -n TASK ']' + echo TASK=milltask TASK=milltask + EMCTASK=milltask + '[' milltask = emctask ']' + EMCSERVER=linuxcncsvr + GetFromIniQuiet HALUI HAL + name=HALUI ++ inivar -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -var HALUI -sec HAL + retval=halui + '[' '!' -n HALUI ']' + echo HALUI=halui HALUI=halui + HALUI=halui + GetFromIni DISPLAY DISPLAY + name=DISPLAY ++ inivar -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -var DISPLAY -sec DISPLAY + retval=axis + '[' '!' -n DISPLAY ']' + echo DISPLAY=axis DISPLAY=axis ++ set -- axis ++ echo axis + EMCDISPLAY=axis ++ set -- axis ++ shift ++ echo + EMCDISPLAYARGS= + case $EMCDISPLAY in + GetFromIniEx NML_FILE LINUXCNC NML_FILE EMC /home/andy/linuxcnc_rip/configs/common/linuxcnc.nml + original_var='[LINUXCNC]NML_FILE' + '[' 5 -ge 2 ']' ++ inivar -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -var NML_FILE -sec LINUXCNC + retval= + shift 2 + '[' 3 -ge 2 ']' ++ inivar -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -var NML_FILE -sec EMC + retval= + shift 2 + '[' 1 -ge 2 ']' + '[' 1 -eq 0 ']' + retval=/home/andy/linuxcnc_rip/configs/common/linuxcnc.nml + NMLFILE=/home/andy/linuxcnc_rip/configs/common/linuxcnc.nml + export NMLFILE + GetFromIni COORDINATES TRAJ + name=COORDINATES ++ inivar -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -var COORDINATES -sec TRAJ + retval=XYYZA + '[' '!' -n COORDINATES ']' + echo COORDINATES=XYYZA COORDINATES=XYYZA + TRAJ_COORDINATES=XYYZA + export TRAJ_COORDINATES + GetFromIni KINEMATICS KINS + name=KINEMATICS ++ inivar -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -var KINEMATICS -sec KINS + retval='trivkins coordinates=XYYZA kinstype=BOTH' + '[' '!' -n KINEMATICS ']' + echo 'KINEMATICS=trivkins coordinates=XYYZA kinstype=BOTH' KINEMATICS=trivkins coordinates=XYYZA kinstype=BOTH + KINS_KINEMATICS='trivkins coordinates=XYYZA kinstype=BOTH' + export KINS_KINEMATICS + KILL_TASK= + KILL_TIMEOUT=20 + LOCKFILE=/tmp/linuxcnc.lock + '[' -f /tmp/linuxcnc.lock ']' + echo Starting LinuxCNC... Starting LinuxCNC... + trap 'Cleanup ; exit 0' SIGINT SIGTERM + cd /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine + touch /tmp/linuxcnc.lock ++ inivar -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -var INTRO_GRAPHIC -sec DISPLAY + img=linuxcnc.gif ++ inivar -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -var INTRO_TIME -sec DISPLAY + imgtime=5 + '[' 5 = '' ']' + '[' linuxcnc.gif '!=' '' ']' + '[' -e linuxcnc.gif ']' + '[' -e /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/linuxcnc.gif ']' + '[' -e /home/andy/linuxcnc_rip/linuxcnc.gif ']' + img=/home/andy/linuxcnc_rip/linuxcnc.gif + '[' /home/andy/linuxcnc_rip/linuxcnc.gif '!=' '' ']' + '[' -x /home/andy/linuxcnc_rip/tcl/bin/popimage ']' + echo 'Starting LinuxCNC server program: linuxcncsvr' Starting LinuxCNC server program: linuxcncsvr + program_available linuxcncsvr + type -path linuxcncsvr + export INI_FILE_NAME=/home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini + INI_FILE_NAME=/home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini + linuxcncsvr -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini + /home/andy/linuxcnc_rip/tcl/bin/popimage /home/andy/linuxcnc_rip/linuxcnc.gif 5 + echo 'Loading Real Time OS, RTAPI, and HAL_LIB modules' Loading Real Time OS, RTAPI, and HAL_LIB modules + /home/andy/linuxcnc_rip/scripts/realtime start + export HAL_RTMOD_DIR=/home/andy/linuxcnc_rip/rtlib + HAL_RTMOD_DIR=/home/andy/linuxcnc_rip/rtlib ++ basename /home/andy/linuxcnc_rip/scripts/linuxcnc + echo 'linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod' linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod + eval halcmd loadrt tpmod ++ halcmd loadrt tpmod Note: Using POSIX realtime + eval halcmd loadrt homemod ++ halcmd loadrt homemod + echo 'Starting TASK program: milltask' Starting TASK program: milltask + program_available milltask + type -path milltask + halcmd loadusr -Wn inihal milltask -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini + '[' -n halui ']' + echo 'Starting HAL User Interface program: halui' Starting HAL User Interface program: halui + program_available halui + type -path halui + halcmd loadusr -Wn halui halui -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini ++ inivar -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -var TWOPASS -sec HAL -num 1 + TWOPASS= + '[' -n '' ']' + NUM=1 ++ inivar -tildeexpand -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -var HALFILE -sec HAL -num 1 + CFGFILE=ANDY_LinuxCNC_machine.hal + '[' -n ANDY_LinuxCNC_machine.hal ']' + IFS='\ ' + read CFGFILE CFGFILE_ARGS + foundmsg= + saveIFS=' ' + IFS=: + explicit_file_in_hallib=ANDY_LinuxCNC_machine.hal + '[' -z ANDY_LinuxCNC_machine.hal ']' + '[' ANDY_LinuxCNC_machine.hal '!=' ANDY_LinuxCNC_machine.hal ']' + '[' A = / ']' + for pathdir in $HALLIB_PATH + foundfile=./ANDY_LinuxCNC_machine.hal + '[' -r ./ANDY_LinuxCNC_machine.hal ']' + '[' . = . ']' + foundmsg='Found file(REL): ./ANDY_LinuxCNC_machine.hal' + break + '[' -d ./ANDY_LinuxCNC_machine.hal ']' + IFS=' ' + '[' -z 'Found file(REL): ./ANDY_LinuxCNC_machine.hal' ']' + echo 'Found file(REL): ./ANDY_LinuxCNC_machine.hal' Found file(REL): ./ANDY_LinuxCNC_machine.hal + CFGFILE=./ANDY_LinuxCNC_machine.hal + case $CFGFILE in + halcmd -i /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -f ./ANDY_LinuxCNC_machine.hal identityKinematicsSetup: coordinates:XYYZA Joint 0 ==> Axis X Joint 1 ==> Axis Y Joint 2 ==> Axis Y Joint 3 ==> Axis Z Joint 4 ==> Axis A hm2: loading Mesa HostMot2 driver version 0.15 hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2 hm2_eth: 10.10.10.10: INFO: Hardware address (MAC): 00:60:1b:10:4c:c1 hm2_eth: discovered 7I76E-16 hm2/hm2_7i76e.0: Low Level init 0.15 hm2/hm2_7i76e.0: Smart Serial Firmware Version 43 Board hm2_7i76e.0.7i76.0.0 Hardware Mode 0 = standard Board hm2_7i76e.0.7i76.0.0 Software Mode 0 = io_spin Board hm2_7i76e.0.7i76.0.0 Software Mode 1 = io_ana_spin Board hm2_7i76e.0.7i76.0.0 Software Mode 2 = io_enc_ana_spin_fv USRMOT: ERROR: command 30 timeout emcMotionInit: emcTrajInit failed hm2/hm2_7i76e.0: 51 I/O Pins used: hm2/hm2_7i76e.0: IO Pin 000 (P1-01): StepGen #0, pin Direction (Output) hm2/hm2_7i76e.0: IO Pin 001 (P1-14): StepGen #0, pin Step (Output) hm2/hm2_7i76e.0: IO Pin 002 (P1-02): StepGen #1, pin Direction (Output) hm2/hm2_7i76e.0: IO Pin 003 (P1-15): StepGen #1, pin Step (Output) hm2/hm2_7i76e.0: IO Pin 004 (P1-03): StepGen #2, pin Direction (Output) hm2/hm2_7i76e.0: IO Pin 005 (P1-16): StepGen #2, pin Step (Output) hm2/hm2_7i76e.0: IO Pin 006 (P1-04): StepGen #3, pin Direction (Output) hm2/hm2_7i76e.0: IO Pin 007 (P1-17): StepGen #3, pin Step (Output) hm2/hm2_7i76e.0: IO Pin 008 (P1-05): StepGen #4, pin Direction (Output) hm2/hm2_7i76e.0: IO Pin 009 (P1-06): StepGen #4, pin Step (Output) hm2/hm2_7i76e.0: IO Pin 010 (P1-07): Smart Serial Interface #0, pin tx0 (Output) hm2/hm2_7i76e.0: IO Pin 011 (P1-08): Smart Serial Interface #0, pin rx0 (Input) hm2/hm2_7i76e.0: IO Pin 012 (P1-09): IOPort hm2/hm2_7i76e.0: IO Pin 013 (P1-10): IOPort hm2/hm2_7i76e.0: IO Pin 014 (P1-11): Encoder #0, pin Index (Input) hm2/hm2_7i76e.0: IO Pin 015 (P1-12): Encoder #0, pin B (Input) hm2/hm2_7i76e.0: IO Pin 016 (P1-13): Encoder #0, pin A (Input) hm2/hm2_7i76e.0: IO Pin 017 (P2-01): IOPort hm2/hm2_7i76e.0: IO Pin 018 (P2-14): IOPort hm2/hm2_7i76e.0: IO Pin 019 (P2-02): IOPort hm2/hm2_7i76e.0: IO Pin 020 (P2-15): IOPort hm2/hm2_7i76e.0: IO Pin 021 (P2-03): IOPort hm2/hm2_7i76e.0: IO Pin 022 (P2-16): IOPort hm2/hm2_7i76e.0: IO Pin 023 (P2-04): IOPort hm2/hm2_7i76e.0: IO Pin 024 (P2-17): IOPort hm2/hm2_7i76e.0: IO Pin 025 (P2-05): IOPort hm2/hm2_7i76e.0: IO Pin 026 (P2-06): IOPort hm2/hm2_7i76e.0: IO Pin 027 (P2-07): IOPort hm2/hm2_7i76e.0: IO Pin 028 (P2-08): IOPort hm2/hm2_7i76e.0: IO Pin 029 (P2-09): IOPort hm2/hm2_7i76e.0: IO Pin 030 (P2-10): IOPort hm2/hm2_7i76e.0: IO Pin 031 (P2-11): IOPort hm2/hm2_7i76e.0: IO Pin 032 (P2-12): IOPort hm2/hm2_7i76e.0: IO Pin 033 (P2-13): IOPort hm2/hm2_7i76e.0: IO Pin 034 (P3-01): IOPort hm2/hm2_7i76e.0: IO Pin 035 (P3-14): IOPort hm2/hm2_7i76e.0: IO Pin 036 (P3-02): IOPort hm2/hm2_7i76e.0: IO Pin 037 (P3-15): IOPort hm2/hm2_7i76e.0: IO Pin 038 (P3-03): IOPort hm2/hm2_7i76e.0: IO Pin 039 (P3-16): IOPort hm2/hm2_7i76e.0: IO Pin 040 (P3-04): IOPort hm2/hm2_7i76e.0: IO Pin 041 (P3-17): IOPort hm2/hm2_7i76e.0: IO Pin 042 (P3-05): IOPort hm2/hm2_7i76e.0: IO Pin 043 (P3-06): IOPort hm2/hm2_7i76e.0: IO Pin 044 (P3-07): IOPort hm2/hm2_7i76e.0: IO Pin 045 (P3-08): IOPort hm2/hm2_7i76e.0: IO Pin 046 (P3-09): IOPort hm2/hm2_7i76e.0: IO Pin 047 (P3-10): IOPort hm2/hm2_7i76e.0: IO Pin 048 (P3-11): IOPort hm2/hm2_7i76e.0: IO Pin 049 (P3-12): IOPort hm2/hm2_7i76e.0: IO Pin 050 (P3-13): IOPort hm2/hm2_7i76e.0: registered + NUM=2 ++ inivar -tildeexpand -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -var HALFILE -sec HAL -num 2 + CFGFILE=custom.hal + '[' -n custom.hal ']' + IFS='\ ' + read CFGFILE CFGFILE_ARGS + foundmsg= + saveIFS=' ' + IFS=: + explicit_file_in_hallib=custom.hal + '[' -z custom.hal ']' + '[' custom.hal '!=' custom.hal ']' + '[' c = / ']' + for pathdir in $HALLIB_PATH + foundfile=./custom.hal + '[' -r ./custom.hal ']' + '[' . = . ']' + foundmsg='Found file(REL): ./custom.hal' + break + '[' -d ./custom.hal ']' + IFS=' ' + '[' -z 'Found file(REL): ./custom.hal' ']' + echo 'Found file(REL): ./custom.hal' Found file(REL): ./custom.hal + CFGFILE=./custom.hal + case $CFGFILE in + halcmd -i /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -f ./custom.hal + NUM=3 ++ inivar -tildeexpand -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -var HALFILE -sec HAL -num 3 + CFGFILE= + '[' -n '' ']' + NUM=1 ++ inivar -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -var HALCMD -sec HAL -num 1 + HALCOMMAND= + '[' -n '' ']' + halcmd start + run_applications + NUM=1 ++ inivar -tildeexpand -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -var APP -sec APPLICATIONS -num 1 + APPFILE= + '[' -z '' ']' + return + echo 'Starting DISPLAY program: axis' Starting DISPLAY program: axis + result=0 + case $EMCDISPLAY in + program_available axis + type -path axis + axis -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini note: MAXV max: 25.000 units/sec 1500.000 units/min note: LJOG max: 25.000 units/sec 1500.000 units/min note: LJOG default: 6.000 units/sec 360.000 units/min note: AJOG max: 180.000 units/sec 10800.000 units/min note: AJOG default: 12.000 units/sec 720.000 units/min 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> Warning: Forward kinematics must handle duplicate coordinate letters:yy note: jog_order='XYZA' note: jog_invert=set() X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 3 (X_GetWindowAttributes) Resource id in failed request: 0xffffffff Serial number of failed request: 660 Current serial number in output stream: 661 + result=1 + Cleanup + echo 'Shutting down and cleaning up LinuxCNC...' Shutting down and cleaning up LinuxCNC... + for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen + /usr/bin/pidof -x linuxcncpanel + for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen + /usr/bin/pidof -x iosh + for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen + /usr/bin/pidof -x linuxcncsh + for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen + /usr/bin/pidof -x linuxcncrsh + for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen + /usr/bin/pidof -x linuxcnctop + for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen + /usr/bin/pidof -x mdi + for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen + /usr/bin/pidof -x debuglevel + for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen + /usr/bin/pidof -x gmoccapy + for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen + /usr/bin/pidof -x gscreen + program_available axis-remote + type -path axis-remote + '[' '!' -z :1.0 ']' + axis-remote --ping + '[' '' = other ']' ++ inivar -ini /home/andy/linuxcnc/configs/ANDY_LinuxCNC_machine/ANDY_LinuxCNC_machine.ini -var SHUTDOWN -sec HAL + SHUTDOWN=shutdown.hal + '[' -n shutdown.hal ']' + echo 'Running HAL shutdown script' Running HAL shutdown script + halcmd -f shutdown.hal + for KILL_TASK in linuxcncsvr motion-logger milltask + /usr/bin/pidof -x linuxcncsvr 3292 + KillTaskWithTimeout + '[' '!' -n '' ']' ++ /usr/bin/pidof -x linuxcncsvr + KILL_PIDS=3292 + '[' '!' -n 3292 ']' + local NPROCS + for KILL_PID in $KILL_PIDS + /usr/bin/grep -q '^Z' + /usr/bin/ps -o stat= -o comm= 3292 + /usr/bin/kill 3292 + WAIT=20 + '[' 20 -gt 1 ']' ++ wc -l ++ /usr/bin/grep -v '^Z' ++ /usr/bin/ps -o stat= -o comm= 3292 + NPROCS=0 + '[' 0 -gt 0 ']' + WAIT=0 + '[' 0 -gt 1 ']' + '[' 0 -gt 0 ']' + '[' 0 -gt 0 ']' + KILL_PIDS= + KILL_TASK= + for KILL_TASK in linuxcncsvr motion-logger milltask + /usr/bin/pidof -x motion-logger + for KILL_TASK in linuxcncsvr motion-logger milltask + /usr/bin/pidof -x milltask 3302 + KillTaskWithTimeout + '[' '!' -n '' ']' ++ /usr/bin/pidof -x milltask + KILL_PIDS=3302 + '[' '!' -n 3302 ']' + local NPROCS + for KILL_PID in $KILL_PIDS + /usr/bin/grep -q '^Z' + /usr/bin/ps -o stat= -o comm= 3302 + /usr/bin/kill 3302 task: 0 cycles, min=0.000004, max=0.010102, avg=-1.000000, 0 latency excursions (> 10x expected cycle time of 0.010000s) + WAIT=20 + '[' 20 -gt 1 ']' ++ wc -l ++ /usr/bin/grep -v '^Z' ++ /usr/bin/ps -o stat= -o comm= 3302 + NPROCS=0 + '[' 0 -gt 0 ']' + WAIT=0 + '[' 0 -gt 1 ']' + '[' 0 -gt 0 ']' + '[' 0 -gt 0 ']' + KILL_PIDS= + KILL_TASK= + echo 'Stopping realtime threads' Stopping realtime threads + halcmd stop + echo 'Unloading hal components' Unloading hal components + halcmd unload all hm2_eth: in hm2_eth_reset hm2_eth: HostMot2 ethernet driver unloaded hm2: unloading ++ seq 10 + for i in `seq 10` ++ halcmd list comp ++ wc -w + '[' 4 = 1 ']' + sleep .2 + for i in `seq 10` ++ wc -w ++ halcmd list comp + '[' 1 = 1 ']' + break + echo 'Removing HAL_LIB, RTAPI, and Real Time OS modules' Removing HAL_LIB, RTAPI, and Real Time OS modules + /home/andy/linuxcnc_rip/scripts/realtime stop Note: Using POSIX realtime + echo 'Removing NML shared memory segments' Removing NML shared memory segments + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + ipcrm -M 1001 + read b x t x x x x x x m x + case $b$t in + ipcrm -M 1003 + read b x t x x x x x x m x + case $b$t in + ipcrm -M 1002 + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + '[' -f /tmp/linuxcnc.lock ']' + rm /tmp/linuxcnc.lock + exit 1 + ErrorCheck + result=1 + '[' '!' -z :1.0 ']' + /usr/bin/wish8.6 + echo 'catch {send -async popimage destroy .}; destroy .' + '[' 1 -ne 0 ']' + tty -s + '[' -f /dev/fd/2 ']' + echo '(debug information was sent to stderr)' + '[' -f /dev/fd/1 ']' + echo '(print information was sent to stdout)' + echo 'LinuxCNC terminated with an error. You can find more information in the log: /home/andy/linuxcnc_debug.txt and /home/andy/linuxcnc_print.txt as well as in the output of the shell command '\''dmesg'\'' and in the terminal' LinuxCNC terminated with an error. You can find more information in the log: /home/andy/linuxcnc_debug.txt and /home/andy/linuxcnc_print.txt as well as in the output of the shell command 'dmesg' and in the terminal + rm -f /dev/fd/2 /dev/fd/1 + exit 1