Error after inclusion of FP4_gearboc.comp emcMot
- chili023
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 47
- Thank you received: 7
23 Mar 2022 16:03 #238111
by chili023
Error after inclusion of FP4_gearboc.comp emcMot was created by chili023
Hi I am running Linux CNC on A Deckel FP4 and I am changing the gearbox.comp of @RotarySMP to be run with my FP4 Gearbox.
I changed all the files accordingly and want to start debugging the code in Linux CNC. However after compiling and installing the FP4_gearboc.comp. Linux CNC is very slow and doesn't load the INI file correct. It finally comes up but doesn't react to commands.
I attached the terminal output. It seams to be unable to load emcMot.
self.widgets.window1.show() USRMOT: ERROR: command timeout emcMot
This seams strang due to the fact that it is loaded before FP4_gearboc.comp
loadrt [KINS]KINEMATICS
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS
loadrt hostmot2
loadrt hm2_eth board_ip="192.168.1.121" config=" num_encoders=6 num_pwmgens=6 num_stepgens=0 sserial_port_0=00xxxxxx"
loadrt FP4_gearbox
addf FP4-gearbox servo-thread
Any hint will be appreciated. Thank you
Andreas
I changed all the files accordingly and want to start debugging the code in Linux CNC. However after compiling and installing the FP4_gearboc.comp. Linux CNC is very slow and doesn't load the INI file correct. It finally comes up but doesn't react to commands.
I attached the terminal output. It seams to be unable to load emcMot.
self.widgets.window1.show() USRMOT: ERROR: command timeout emcMot
This seams strang due to the fact that it is loaded before FP4_gearboc.comp
loadrt [KINS]KINEMATICS
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS
loadrt hostmot2
loadrt hm2_eth board_ip="192.168.1.121" config=" num_encoders=6 num_pwmgens=6 num_stepgens=0 sserial_port_0=00xxxxxx"
loadrt FP4_gearbox
addf FP4-gearbox servo-thread
Any hint will be appreciated. Thank you
Andreas
Debug mode on
+ getopts dvlhkr opt
+ shift 1
+ case "" in
+ '[' -z ']'
+ tty -s
+ trap ErrorCheck EXIT
+ '[' '!' -z '' ']'
+ EXTRA_ARGS=
+ RUN_IN_PLACE=no
+ echo RUN_IN_PLACE=no
+ LINUXCNCVERSION=2.8.2-11-g6a3d0a434
+ export LINUXCNCVERSION
+ INIVAR=inivar
+ HALCMD='halcmd '
+ PICKCONFIG='/usr/bin/wish8.6 /usr/lib/tcltk/linuxcnc/bin/pickconfig.tcl'
+ LINUXCNC_EMCSH=/usr/bin/wish8.6
+ echo LINUXCNC_DIR=
+ echo LINUXCNC_BIN_DIR=/usr/bin
+ echo LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
+ echo LINUXCNC_SCRIPT_DIR=
+ echo LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
+ echo LINUXCNC_CONFIG_DIR=
+ echo LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
+ echo INIVAR=inivar
+ echo HALCMD=halcmd
+ echo 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.8.2-11-g6a3d0a434'
LINUXCNC - 2.8.2-11-g6a3d0a434
+ '[' '!' -z '' ']'
+ '[' '!' -n '' ']'
++ /usr/bin/wish8.6 /usr/lib/tcltk/linuxcnc/bin/pickconfig.tcl
+ INIFILE=/home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini
+ '[' /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini.demo = /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini ']'
+ '[' '!' -n /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini ']'
++ handle_includes /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini
++ hdr='# handle_includes():'
++ inifile=/home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini
+++ dirname /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini
++ cd /home/work/linuxcnc/configs/Deckel_FP4
++ /bin/grep '^#INCLUDE' /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini
++ status=1
++ '[' 1 -ne 0 ']'
++ echo /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini
++ return 0
+ INIFILE=/home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini
+ INI_NAME=Deckel_FP4.ini
+ INI_DIR=/home/work/linuxcnc/configs/Deckel_FP4
+ CONFIG_DIR=/home/work/linuxcnc/configs/Deckel_FP4
+ export CONFIG_DIR
+ export PATH=/home/work/linuxcnc/configs/Deckel_FP4/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ PATH=/home/work/linuxcnc/configs/Deckel_FP4/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ '[' -z ']'
+ echo 'Machine configuration directory is '\''/home/work/linuxcnc/configs/Deckel_FP4'\'''
Machine configuration directory is '/home/work/linuxcnc/configs/Deckel_FP4'
+ echo 'Machine configuration file is '\''Deckel_FP4.ini'\'''
Machine configuration file is 'Deckel_FP4.ini'
+ '[' '!' -f /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini ']'
+ echo INIFILE=/home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini
+ retval=
+ GetFromIni VERSION EMC
+ name=VERSION
++ inivar -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini -var VERSION -sec EMC
+ retval=1.1
+ '[' '!' -n VERSION ']'
+ echo VERSION=1.1
+ '[' 1.1 '!=' 1.1 ']'
+ /usr/bin/tclsh8.6 /usr/share/linuxcnc/hallib/check_config.tcl /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini
+ exitval=0
+ case "$exitval" in
+ GetFromIni PARAMETER_FILE RS274NGC
+ name=PARAMETER_FILE
++ inivar -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini -var PARAMETER_FILE -sec RS274NGC
+ retval=linuxcnc.var
+ '[' '!' -n PARAMETER_FILE ']'
+ echo PARAMETER_FILE=linuxcnc.var
+ RS274NGC_PARAMFILE=linuxcnc.var
+ GetFromIniEx MOT MOT EMCMOT EMCMOT motmod
+ original_var='[MOT]MOT'
+ '[' 5 -ge 2 ']'
++ inivar -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini -var MOT -sec MOT
+ retval=
+ shift 2
+ '[' 3 -ge 2 ']'
++ inivar -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini -var EMCMOT -sec EMCMOT
+ retval=motmod
+ return
+ EMCMOT=motmod.so
+ GetFromIniEx IO IO EMCIO EMCIO io
+ original_var='[IO]IO'
+ '[' 5 -ge 2 ']'
++ inivar -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini -var IO -sec IO
+ retval=
+ shift 2
+ '[' 3 -ge 2 ']'
++ inivar -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini -var EMCIO -sec EMCIO
+ retval=io
+ return
+ EMCIO=io
+ GetFromIni TASK TASK
+ name=TASK
++ inivar -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini -var TASK -sec TASK
+ retval=milltask
+ '[' '!' -n TASK ']'
+ echo TASK=milltask
+ EMCTASK=milltask
+ '[' milltask = emctask ']'
+ EMCSERVER=linuxcncsvr
+ GetFromIniQuiet HALUI HAL
+ name=HALUI
++ inivar -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini -var HALUI -sec HAL
+ retval=halui
+ '[' '!' -n HALUI ']'
+ echo HALUI=halui
+ HALUI=halui
+ GetFromIni DISPLAY DISPLAY
+ name=DISPLAY
++ inivar -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini -var DISPLAY -sec DISPLAY
+ retval=gmoccapy
+ '[' '!' -n DISPLAY ']'
+ echo DISPLAY=gmoccapy
++ set -- gmoccapy
++ echo gmoccapy
+ EMCDISPLAY=gmoccapy
++ set -- gmoccapy
++ shift
++ echo
+ EMCDISPLAYARGS=
+ case $EMCDISPLAY in
+ GetFromIniEx NML_FILE LINUXCNC NML_FILE EMC /usr/share/linuxcnc/linuxcnc.nml
+ original_var='[LINUXCNC]NML_FILE'
+ '[' 5 -ge 2 ']'
++ inivar -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini -var NML_FILE -sec LINUXCNC
+ retval=
+ shift 2
+ '[' 3 -ge 2 ']'
++ inivar -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini -var NML_FILE -sec EMC
+ retval=
+ shift 2
+ '[' 1 -ge 2 ']'
+ '[' 1 -eq 0 ']'
+ retval=/usr/share/linuxcnc/linuxcnc.nml
+ NMLFILE=/usr/share/linuxcnc/linuxcnc.nml
+ export NMLFILE
+ GetFromIni COORDINATES TRAJ
+ name=COORDINATES
++ inivar -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini -var COORDINATES -sec TRAJ
+ retval=XYZ
+ '[' '!' -n COORDINATES ']'
+ echo COORDINATES=XYZ
+ TRAJ_COORDINATES=XYZ
+ export TRAJ_COORDINATES
+ GetFromIni KINEMATICS KINS
+ name=KINEMATICS
++ inivar -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini -var KINEMATICS -sec KINS
+ retval='trivkins coordinates=XYZ'
+ '[' '!' -n KINEMATICS ']'
+ echo 'KINEMATICS=trivkins coordinates=XYZ'
+ KINS_KINEMATICS='trivkins coordinates=XYZ'
+ 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/work/linuxcnc/configs/Deckel_FP4
+ touch /tmp/linuxcnc.lock
++ inivar -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini -var INTRO_GRAPHIC -sec DISPLAY
+ img=linuxcnc.gif
++ inivar -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini -var INTRO_TIME -sec DISPLAY
+ imgtime=5
+ '[' 5 = '' ']'
+ '[' linuxcnc.gif '!=' '' ']'
+ '[' -e linuxcnc.gif ']'
+ '[' -e /home/work/linuxcnc/configs/Deckel_FP4/linuxcnc.gif ']'
+ '[' -e /usr/share/linuxcnc/linuxcnc.gif ']'
+ img=/usr/share/linuxcnc/linuxcnc.gif
+ '[' /usr/share/linuxcnc/linuxcnc.gif '!=' '' ']'
+ '[' -x /usr/lib/tcltk/linuxcnc/bin/popimage ']'
+ /usr/lib/tcltk/linuxcnc/bin/popimage /usr/share/linuxcnc/linuxcnc.gif 5
+ echo 'Starting LinuxCNC server program: linuxcncsvr'
+ program_available linuxcncsvr
+ type -path linuxcncsvr
+ export INI_FILE_NAME=/home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini
+ INI_FILE_NAME=/home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini
+ linuxcncsvr -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini
+ echo 'Loading Real Time OS, RTAPI, and HAL_LIB modules'
+ /etc/init.d/realtime start
+ export HAL_RTMOD_DIR=/usr/lib/linuxcnc/modules
+ HAL_RTMOD_DIR=/usr/lib/linuxcnc/modules
+ '[' io '!=' '' ']'
+ echo 'Starting LinuxCNC IO program: io'
+ program_available io
+ type -path io
+ halcmd loadusr -Wn iocontrol io -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini
emc/iotask/ioControl.cc 702: can't load tool table.
+ '[' -n halui ']'
+ echo 'Starting HAL User Interface program: halui'
+ program_available halui
+ type -path halui
+ halcmd loadusr -Wn halui halui -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini
++ inivar -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini -var TWOPASS -sec HAL -num 1
+ TWOPASS=
+ '[' -n '' ']'
+ NUM=1
++ inivar -tildeexpand -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini -var HALFILE -sec HAL -num 1
+ CFGFILE=Deckel_FP4.hal
+ '[' -n Deckel_FP4.hal ']'
+ IFS='\ '
+ read CFGFILE CFGFILE_ARGS
+ foundmsg=
+ saveIFS='
'
+ IFS=:
+ explicit_file_in_hallib=Deckel_FP4.hal
+ '[' -z Deckel_FP4.hal ']'
+ '[' Deckel_FP4.hal '!=' Deckel_FP4.hal ']'
+ '[' D = / ']'
+ for pathdir in $HALLIB_PATH
+ foundfile=./Deckel_FP4.hal
+ '[' -r ./Deckel_FP4.hal ']'
+ '[' . = . ']'
+ foundmsg='Found file(REL): ./Deckel_FP4.hal'
+ break
+ '[' -d ./Deckel_FP4.hal ']'
+ IFS='
'
+ '[' -z 'Found file(REL): ./Deckel_FP4.hal' ']'
+ echo 'Found file(REL): ./Deckel_FP4.hal'
Found file(REL): ./Deckel_FP4.hal
+ CFGFILE=./Deckel_FP4.hal
+ case $CFGFILE in
+ halcmd -i /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini -f ./Deckel_FP4.hal
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: 192.168.1.121: INFO: Hardware address (MAC): 00:60:1b:17:00:95
hm2_eth: discovered 7I97
hm2/hm2_7i97.0: Low Level init 0.15
hm2/hm2_7i97.0: Smart Serial Firmware Version 43
Board hm2_7i97.0.7i66.0.0 Hardware Mode 0 = standard
Board hm2_7i97.0.7i66.0.0 Software Mode 0 = output_fieldvoltage
hm2/hm2_7i97.0: 51 I/O Pins used:
hm2/hm2_7i97.0: IO Pin 000 (TB3-04): PWMGen #0, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i97.0: IO Pin 001 (TB3-08): PWMGen #1, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i97.0: IO Pin 002 (TB3-12): PWMGen #2, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i97.0: IO Pin 003 (TB3-16): PWMGen #3, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i97.0: IO Pin 004 (TB3-20): PWMGen #4, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i97.0: IO Pin 005 (AN_ENA4): PWMGen #4, pin Not-Enable (Output)
hm2/hm2_7i97.0: IO Pin 006 (TB3-24): PWMGen #5, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i97.0: IO Pin 007 (AN_ENA5): PWMGen #5, pin Not-Enable (Output)
hm2/hm2_7i97.0: IO Pin 008 (AN-ENA0..3): PWMGen #0, pin Not-Enable (Output)
hm2/hm2_7i97.0: IO Pin 009 (TB1-01/TB1-09): Muxed Encoder #0, pin Muxed A (Input)
hm2/hm2_7i97.0: IO Pin 010 (TB1-04/TB1-12): Muxed Encoder #0, pin Muxed B (Input)
hm2/hm2_7i97.0: IO Pin 011 (TB1-07/TB1-15): Muxed Encoder #0, pin Muxed Index (Input)
hm2/hm2_7i97.0: IO Pin 012 (TB1-17/TB2-01): Muxed Encoder #1, pin Muxed A (Input)
hm2/hm2_7i97.0: IO Pin 013 (TB1-20/TB2-04): Muxed Encoder #1, pin Muxed B (Input)
hm2/hm2_7i97.0: IO Pin 014 (TB1-23/TB2-07): Muxed Encoder #1, pin Muxed Index (Input)
hm2/hm2_7i97.0: IO Pin 015 (TB2-09/TB2-17): Muxed Encoder #2, pin Muxed A (Input)
hm2/hm2_7i97.0: IO Pin 016 (TB2-12/TB2-20): Muxed Encoder #2, pin Muxed B (Input)
hm2/hm2_7i97.0: IO Pin 017 (TB2-15/TB2-23): Muxed Encoder #2, pin Muxed Index (Input)
hm2/hm2_7i97.0: IO Pin 018 (Internal EncMux): Muxed Encoder Select #0, pin Mux Select 0 (Output)
hm2/hm2_7i97.0: IO Pin 019 (TB5-13/TB5-14): SSR #0, pin Out-00 (Output)
hm2/hm2_7i97.0: IO Pin 020 (TB5-15/TB5-16): SSR #0, pin Out-01 (Output)
hm2/hm2_7i97.0: IO Pin 021 (TB5-17/TB5-18): SSR #0, pin Out-02 (Output)
hm2/hm2_7i97.0: IO Pin 022 (TB5-19/TB5-20): SSR #0, pin Out-03 (Output)
hm2/hm2_7i97.0: IO Pin 023 (TB5-21/TB5-22): SSR #0, pin Out-04 (Output)
hm2/hm2_7i97.0: IO Pin 024 (TB5-23/TB5-24): SSR #0, pin Out-05 (Output)
hm2/hm2_7i97.0: IO Pin 025 (Internal InMux0): SSR #0, pin AC Ref (internal) (Output)
hm2/hm2_7i97.0: IO Pin 026 (Internal InMux1): InMux Input Mux #0, pin addr0 (Output)
hm2/hm2_7i97.0: IO Pin 027 (Internal InMux2): InMux Input Mux #0, pin addr1 (Output)
hm2/hm2_7i97.0: IO Pin 028 (Internal InMux3): InMux Input Mux #0, pin addr2 (Output)
hm2/hm2_7i97.0: IO Pin 029 (Internal InMuxData): InMux Input Mux #0, pin addr3 (Output)
hm2/hm2_7i97.0: IO Pin 030 (TB4-15/TB4-16): InMux Input Mux #0, pin muxdata (Input)
hm2/hm2_7i97.0: IO Pin 031 (TB4-17/TB4-18): Smart Serial Interface #0, pin rx0 (Input)
hm2/hm2_7i97.0: IO Pin 032 (TB4-17/TB4-18): Smart Serial Interface #0, pin tx0 (Output)
hm2/hm2_7i97.0: IO Pin 033 (P1-01): Smart Serial Interface #0, pin txen0 (Output)
hm2/hm2_7i97.0: IO Pin 034 (P1-02): IOPort
hm2/hm2_7i97.0: IO Pin 035 (P1-03): IOPort
hm2/hm2_7i97.0: IO Pin 036 (P1-04): IOPort
hm2/hm2_7i97.0: IO Pin 037 (P1-05): IOPort
hm2/hm2_7i97.0: IO Pin 038 (P1-06): IOPort
hm2/hm2_7i97.0: IO Pin 039 (P1-07): IOPort
hm2/hm2_7i97.0: IO Pin 040 (P1-08): IOPort
hm2/hm2_7i97.0: IO Pin 041 (P1-09): IOPort
hm2/hm2_7i97.0: IO Pin 042 (P1-11): IOPort
hm2/hm2_7i97.0: IO Pin 043 (P1-13): IOPort
hm2/hm2_7i97.0: IO Pin 044 (P1-15): IOPort
hm2/hm2_7i97.0: IO Pin 045 (P1-17): IOPort
hm2/hm2_7i97.0: IO Pin 046 (P1-19): IOPort
hm2/hm2_7i97.0: IO Pin 047 (P1-21): IOPort
hm2/hm2_7i97.0: IO Pin 048 (P1-23): IOPort
hm2/hm2_7i97.0: IO Pin 049 (P1-25): IOPort
hm2/hm2_7i97.0: registered
+ NUM=2
++ inivar -tildeexpand -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.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/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini -f ./custom.hal
+ NUM=3
++ inivar -tildeexpand -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini -var HALFILE -sec HAL -num 3
+ CFGFILE=
+ '[' -n '' ']'
+ echo 'Starting TASK program: milltask'
+ program_available milltask
+ type -path milltask
+ NUM=1
++ inivar -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini -var HALCMD -sec HAL -num 1
+ halcmd loadusr -Wn inihal milltask -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini
+ HALCOMMAND=
+ '[' -n '' ']'
+ halcmd start
+ run_applications
+ NUM=1
++ inivar -tildeexpand -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini -var APP -sec APPLICATIONS -num 1
rtapi_app: caught signal 11 - dumping core
+ APPFILE=
+ '[' -z '' ']'
+ return
+ echo 'Starting DISPLAY program: gmoccapy'
+ result=0
+ case $EMCDISPLAY in
+ program_available gmoccapy
+ type -path gmoccapy
+ gmoccapy -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini
(0, ' = ', '/usr/bin/gmoccapy')
(1, ' = ', '-ini')
(2, ' = ', '/home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini')
Entry = trivkins
Entry = coordinates=XYZ
found the following coordinates xyz
**** GMOCCAPY GETINIINFO ****
Number of joints = 3
3 COORDINATES found = xyz
joint 0 = axis x
joint 1 = axis y
joint 2 = axis z
{0: 'x', 1: 'y', 2: 'z'}
**** GMOCCAPY GETINIINFO ****
[KINS] KINESTYPE is trivkins
**** GMOCCAPY GETINIINFO ****
No MAX_RAPID_OVERRIDE entry found in [DISPLAY] of INI file
Default settings 100 % applied!
**** GMOCCAPY GETINIINFO ****
Preference file path: /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.pref
**** GMOCCAPY GETINIINFO ****
No DEFAULT_SPINDLE_SPEED entry found in [DISPLAY] of INI file
**** GMOCCAPY INFO ****
**** no valid probe config in INI File ****
**** disabled tool measurement ****
**** GMOCCAPY INFO ****
**** Entering make_DRO
axis_list = ['x', 'y', 'z']
**** GMOCCAPY INFO ****
**** Entering make ref axis button
('Filepath = ', '/usr/share/gmoccapy/images/ref_all.png')
('Filepath = ', '/usr/share/gmoccapy/images/ref_x.png')
('Filepath = ', '/usr/share/gmoccapy/images/ref_y.png')
('Filepath = ', '/usr/share/gmoccapy/images/ref_z.png')
('Filepath = ', '/usr/share/gmoccapy/images/unhome.png')
**** GMOCCAPY INFO ****
**** Entering make touch button
**** GMOCCAPY INFO ****
**** Entering make jog increments
**** GMOCCAPY INFO ****
**** Entering make jog button
**** GMOCCAPY INFO ****
**** Entering make macro button
found 0 Macros
**** GMOCCAPY INFO ****
**** arrange DRO
3
**** GMOCCAPY INFO ****
**** Place in table
**** GMOCCAPY INFO ****
**** get DRO order
**** GMOCCAPY INFO ****
**** arrange JOG button
less than 6 axis
/usr/bin/gmoccapy:311: GtkWarning: Invalid icon size 48
self.widgets.window1.show()
USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
Waiting for component 'inihal' to become ready...........USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
...................USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
....................USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
....................USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
..................**** GMOCCAPY INFO ****
**** Invalid embedded tab configuration ****
**** No tabs will be added! ****
Toolfile does not exist
.**** GMOCCAPY INFO ****
**** no audio available! ****
**** PYGST libray not installed? ****
**** is python-gstX.XX installed? ****
**** GMOCCAPY INFO ****
**** Entering init gremlin ****
Kinematics type changed
.USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
....................USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
....................USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
...................USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
....................USRMOT: ERROR: command timeout
emcMotionInit: emcTrajInit failed
..........emc/task/emctaskmain.cc 3057: can't initialize motion
..........('_set_enable_tooltips = ', True)
**** GMOCCAPY INFO ****
**** No virtual keyboard installed, we checked for <onboard> and <matchbox-keyboard>.
USRMOT: ERROR: command timeout
HAL: ERROR: exit called before init
<commandline>:0: waitpid failed milltask inihal
<commandline>:0: milltask exited without becoming ready
/usr/bin/linuxcnc: line 896: 9628 Killed $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS
+ result=137
+ 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
+ /bin/pidof -x linuxcncpanel
+ for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen
+ /bin/pidof -x iosh
+ for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen
+ /bin/pidof -x linuxcncsh
+ for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen
+ /bin/pidof -x linuxcncrsh
+ for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen
+ /bin/pidof -x linuxcnctop
+ for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen
+ /bin/pidof -x mdi
+ for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen
+ /bin/pidof -x debuglevel
+ for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen
+ /bin/pidof -x gmoccapy
+ for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen
+ /bin/pidof -x gscreen
+ program_available axis-remote
+ type -path axis-remote
+ '[' '!' -z :0.0 ']'
+ axis-remote --ping
+ '[' '' = other ']'
++ inivar -ini /home/work/linuxcnc/configs/Deckel_FP4/Deckel_FP4.ini -var SHUTDOWN -sec HAL
+ SHUTDOWN=shutdown.hal
+ '[' -n shutdown.hal ']'
+ echo 'Running HAL shutdown script'
Running HAL shutdown script
+ halcmd -f shutdown.hal
Could not open command file 'shutdown.hal'
+ for KILL_TASK in linuxcncsvr milltask
+ /bin/pidof -x linuxcncsvr
9581
+ KillTaskWithTimeout
+ '[' '!' -n '' ']'
++ /bin/pidof -x linuxcncsvr
+ KILL_PIDS=9581
+ '[' '!' -n 9581 ']'
+ local NPROCS
+ for KILL_PID in $KILL_PIDS
+ /bin/ps -o comm= 9581
+ /bin/grep -q '<defunct>'
+ /bin/kill 9581
+ WAIT=20
+ '[' 20 -gt 1 ']'
++ /bin/ps -o comm= 9581
++ /bin/grep -v '<defunct>'
++ wc -l
+ 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 milltask
+ /bin/pidof -x milltask
+ echo 'Stopping realtime threads'
Stopping realtime threads
+ halcmd stop
+ echo 'Unloading hal components'
Unloading hal components
+ halcmd unload all
Waited 3 seconds for master. giving up.
Note: Using POSIX realtime
pid: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
Note: Using POSIX realtime
FP4_gearbox: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
Note: Using POSIX realtime
hm2_eth: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
Note: Using POSIX realtime
hostmot2: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
Note: Using POSIX realtime
motmod: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
Note: Using POSIX realtime
trivkins: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
<commandline>:0: unloadrt failed
++ seq 10
+ for i in `seq 10`
++ halcmd list comp
++ wc -w
+ '[' 1 = 1 ']'
+ break
+ echo 'Removing HAL_LIB, RTAPI, and Real Time OS modules'
+ /etc/init.d/realtime stop
Note: Using POSIX realtime
+ echo '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
+ ipcrm -M 1004
+ read b x t x x x x x x m x
+ case $b$t in
+ ipcrm -M 1005
+ 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
+ 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 137
+ ErrorCheck
+ result=137
+ '[' '!' -z :0.0 ']'
+ echo 'catch {send -async popimage destroy .}; destroy .'
+ /usr/bin/wish8.6
+ '[' 137 -ne 0 ']'
+ tty -s
+ '[' -f /dev/fd/2 ']'
+ echo '(debug information was sent to stderr)'
+ '[' -f /tmp/linuxcnc.print.NkUPP5 ']'
+ cp /tmp/linuxcnc.print.NkUPP5 /home/work/linuxcnc_print.txt
+ echo 'LinuxCNC terminated with an error. You can find more information in the log:
/home/work/linuxcnc_debug.txt
and
/home/work/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/work/linuxcnc_debug.txt
and
/home/work/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
+ rm -f /dev/fd/2 /tmp/linuxcnc.print.NkUPP5
+ exit 137
Attachments:
Please Log in or Create an account to join the conversation.
- chili023
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 47
- Thank you received: 7
23 Mar 2022 17:28 #238119
by chili023
Replied by chili023 on topic Error after inclusion of FP4_gearboc.comp emcMot
I found the problem.
The array FP4_gears[] that defines the gears had a error in it. There were two entries that correspondent to 2500 rpm. This probably messed up the sorting and occupied memory.
I will continue to debug and post the results here.
Thanks A.
The array FP4_gears[] that defines the gears had a error in it. There were two entries that correspondent to 2500 rpm. This probably messed up the sorting and occupied memory.
I will continue to debug and post the results here.
Thanks A.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- gernoff
- Offline
- Senior Member
Less
More
- Posts: 51
- Thank you received: 2
28 Mar 2022 20:04 - 28 Mar 2022 20:33 #238545
by gernoff
Replied by gernoff on topic Error after inclusion of FP4_gearboc.comp emcMot
I am interested to see how the FP4 gearbox / gearchanges are made. Do you have any pictured of the motors and feedback micro-switches? Would like to work with you to get gearbox.comp to work with the 6 speed setup of an FP5NC.
Last edit: 28 Mar 2022 20:33 by gernoff.
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
Less
More
- Posts: 10766
- Thank you received: 3543
29 Mar 2022 02:38 #238568
by rodw
Replied by rodw on topic Error after inclusion of FP4_gearboc.comp emcMot
There also appeared to be a missing dependency for Gmocappy from your logs
Please Log in or Create an account to join the conversation.
- chili023
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 47
- Thank you received: 7
29 Mar 2022 07:54 #238577
by chili023
Replied by chili023 on topic Error after inclusion of FP4_gearboc.comp emcMot
@gernoff
Hi. Yes no problem. I have the program ready so far.
Now I have to add some routines and commands but the framework is up and running.
The Motors are the same as the MAHO ones 24V self inhibiting motors that are switched by 4 relais. Input motor / Middle Motor / Output motor / Reverse.
Also the microswitches work of pins on the gear shaft.
The files from RotarySMP were gold but required some major changes.
Everything is a bit more primitive with the FP series. No "center left" cam no "slow speed" motor.
I am willing to help you but I think we better start again with the framework of RotarySMP.
Maybe it is worth starting a new topic?
Shoot me a message
A.
Hi. Yes no problem. I have the program ready so far.
Now I have to add some routines and commands but the framework is up and running.
The Motors are the same as the MAHO ones 24V self inhibiting motors that are switched by 4 relais. Input motor / Middle Motor / Output motor / Reverse.
Also the microswitches work of pins on the gear shaft.
The files from RotarySMP were gold but required some major changes.
Everything is a bit more primitive with the FP series. No "center left" cam no "slow speed" motor.
I am willing to help you but I think we better start again with the framework of RotarySMP.
Maybe it is worth starting a new topic?
Shoot me a message
A.
The following user(s) said Thank You: gernoff
Please Log in or Create an account to join the conversation.
- gernoff
- Offline
- Senior Member
Less
More
- Posts: 51
- Thank you received: 2
30 Mar 2022 15:23 #238742
by gernoff
Replied by gernoff on topic Error after inclusion of FP4_gearboc.comp emcMot
Thanks for the response. Will really appreciated the help. I will move the questions I have over to this thread:
forum.linuxcnc.org/12-milling/35316-retrofitting-a-deckel-fp5nc
Talk to you soon.
forum.linuxcnc.org/12-milling/35316-retrofitting-a-deckel-fp5nc
Talk to you soon.
Please Log in or Create an account to join the conversation.
- Walkahz
- Offline
- Junior Member
Less
More
- Posts: 36
- Thank you received: 7
15 May 2024 11:22 #300674
by Walkahz
Replied by Walkahz on topic Error after inclusion of FP4_gearboc.comp emcMot
Hi
Sorry for the thread dig
I am currently converting my FP4 AT and your gearbox comp looks like it will fit the bill.
is your current working version in the zip file above?
Hopefully it will work on my machine with some minor mods!
Sorry for the thread dig
I am currently converting my FP4 AT and your gearbox comp looks like it will fit the bill.
is your current working version in the zip file above?
Hopefully it will work on my machine with some minor mods!
Please Log in or Create an account to join the conversation.
Time to create page: 0.081 seconds