Configs show up now, but now there's a new problem:

ntu@ryzen ~ $ linuxcnc
LINUXCNC - 2.9.0~pre0
Machine configuration directory is '/home/ntu/linuxcnc/configs/sim.axis'
Machine configuration file is 'axis.ini'
can't find package Linuxcnc
    while executing
"package require Linuxcnc "
    (file "/usr/share/linuxcnc/hallib/check_config.tcl" line 187)
check_config validation failed
LinuxCNC terminated with an error.  You can find more information in the log:
    /home/ntu/linuxcnc_debug.txt
and
    /home/ntu/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal

ntu@ryzen ~ $ cat linuxcnc*.txt
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
INIFILE=/home/ntu/linuxcnc/configs/sim.axis/axis.ini
VERSION=1.1

ntu@ryzen ~ $ doas dmesg | tail -n 50
doas (ntu@ryzen) password:
[   12.919007] [drm]   Encoders:
[   12.919007] [drm]     DFP1: INTERNAL_UNIPHY2
[   12.919008] [drm] Connector 1:
[   12.919009] [drm]   HDMI-A-1
[   12.919009] [drm]   HPD3
[   12.919009] [drm]   DDC: 0x1954 0x1954 0x1955 0x1955 0x1956 0x1956 0x1957 
0x1957
[   12.919010] [drm]   Encoders:
[   12.919011] [drm]     DFP2: INTERNAL_UNIPHY2
[   12.919011] [drm] Connector 2:
[   12.919012] [drm]   DVI-D-1
[   12.919012] [drm]   HPD1
[   12.919012] [drm]   DDC: 0x1958 0x1958 0x1959 0x1959 0x195a 0x195a 0x195b 
0x195b
[   12.919014] [drm]   Encoders:
[   12.919014] [drm]     DFP3: INTERNAL_UNIPHY1
[   12.919014] [drm] Connector 3:
[   12.919015] [drm]   DVI-D-2
[   12.919015] [drm]   HPD6
[   12.919016] [drm]   DDC: 0x1960 0x1960 0x1961 0x1961 0x1962 0x1962 0x1963 
0x1963
[   12.919017] [drm]   Encoders:
[   12.919017] [drm]     DFP4: INTERNAL_UNIPHY
[   12.952812] [drm] Found UVD firmware Version: 1.64 Family ID: 9
[   13.036639] [drm] Found VCE firmware Version: 50.10 Binary ID: 2
[   13.037147] [drm] PCIE gen 3 link speeds already enabled
[   13.144615] [drm] UVD initialized successfully.
[   13.265656] [drm] VCE initialized successfully.
[   13.266285] amdgpu 0000:1e:00.0: amdgpu: SE 4, SH per SE 1, CU per SH 11, 
active_cu_number 40
[   13.269456] [drm] Initialized amdgpu 3.46.0 20150101 for 0000:1e:00.0 on 
minor 0
[   13.329332] EXT4-fs (sda4): re-mounted. Quota mode: disabled.
[   13.368157] fbcon: amdgpudrmfb (fb0) is primary device
[   13.527652] Console: switching to colour frame buffer device 240x67
[   13.641937] amdgpu 0000:1e:00.0: [drm] fb0: amdgpudrmfb frame buffer device
[   13.972989] EXT4-fs (sda3): mounted filesystem with ordered data mode. Quota 
mode: disabled.
[   16.344279] Generic FE-GE Realtek PHY r8169-0-1800:00: attached PHY driver 
(mii_bus:phy_addr=r8169-0-1800:00, irq=MAC)
[   16.511525] r8169 0000:18:00.0 enp24s0: Link is Down
[   17.410748] elogind-daemon[1647]: New seat seat0.
[   17.414355] elogind-daemon[1647]: Watching system buttons on 
/dev/input/event1 (Power Button)
[   17.414477] elogind-daemon[1647]: Watching system buttons on 
/dev/input/event0 (Power Button)
[   17.414621] elogind-daemon[1647]: Watching system buttons on 
/dev/input/event2 (Razer Razer Huntsman V2)
[   17.414756] elogind-daemon[1647]: Watching system buttons on 
/dev/input/event3 (Razer Razer Huntsman V2 Keyboard)
[   17.415074] elogind-daemon[1647]: Watching system buttons on 
/dev/input/event8 (ROCCAT ROCCAT Tyon Black Consumer Control)
[   19.588787] r8169 0000:18:00.0 enp24s0: Link is Up - 1Gbps/Full - flow 
control rx/tx
[   25.121116] elogind-daemon[1647]: New session c1 of user root.
[   34.414130] elogind-daemon[1647]: Removed session c1.
[   34.472972] elogind-daemon[1647]: New session c2 of user ntu.
[   47.135966] elogind-daemon[1647]: New session c3 of user root.
[  393.109299] fuse: init (API version 7.36)
[ 3040.998846] elogind-daemon[1647]: Removed session c2.
[ 3041.799691] elogind-daemon[1647]: New session c4 of user root.
[ 3047.501076] elogind-daemon[1647]: Removed session c4.
[ 3047.525401] elogind-daemon[1647]: New session c5 of user ntu.

Line of code failing:

ntu@ryzen ~ $ sed -n 187p /usr/share/linuxcnc/hallib/check_config.tcl
package require Linuxcnc ;# parse_ini

.ini file:

ntu@ryzen ~ $ cat linuxcnc/configs/sim.axis/axis.ini
# EMC controller parameters for a simulated machine.

# General note: Comments can either be preceded with a # or ; - either is
# acceptable, although # is in keeping with most linux config files.

# General section -------------------------------------------------------------
[EMC]

# Version of this INI file
VERSION = 1.1

# Name of machine, for use with display, etc.
MACHINE = LinuxCNC-HAL-SIM-AXIS

# Debug level, 0 means no messages. See src/emc/nml_int/emcglb.h for others
#DEBUG = 0x7FFFFFFF
DEBUG = 0

# Sections for display options ------------------------------------------------
[DISPLAY]

# Name of display program, e.g., axis
DISPLAY = axis

# Cycle time, in seconds, that display will sleep between polls
CYCLE_TIME = 0.100

# Path to help file
HELP_FILE = doc/help.txt

# Initial display setting for position, RELATIVE or MACHINE
POSITION_OFFSET = RELATIVE

# Initial display setting for position, COMMANDED or ACTUAL
POSITION_FEEDBACK = ACTUAL

# Highest value that will be allowed for feed override, 1.0 = 100%
MAX_FEED_OVERRIDE = 1.2
MAX_SPINDLE_OVERRIDE = 1.0

MAX_LINEAR_VELOCITY = 5
DEFAULT_LINEAR_VELOCITY = .25
DEFAULT_SPINDLE_SPEED = 200
# Prefix to be used
PROGRAM_PREFIX = /home/ntu/linuxcnc/nc_files

# Introductory graphic
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5

#EDITOR = gedit
TOOL_EDITOR = tooledit

INCREMENTS = 1 in, 0.1 in, 10 mil, 1 mil, 1mm, .1mm, 1/8000 in

[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Grayscale Depth Image
PROGRAM_EXTENSION = .py Python Script

png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python

# Task controller section -----------------------------------------------------
[TASK]

# Name of task controller program, e.g., milltask
TASK = milltask

# Cycle time, in seconds, that task controller will sleep between polls
CYCLE_TIME = 0.001

# Part program interpreter section --------------------------------------------
[RS274NGC]

# File containing interpreter variables
PARAMETER_FILE = sim.var

# Motion control section ------------------------------------------------------
[EMCMOT]

EMCMOT = motmod

# Timeout for comm to emcmot, in seconds
COMM_TIMEOUT = 1.0

# BASE_PERIOD is unused in this configuration but specified in core_sim.hal
BASE_PERIOD = 0
# Servo task period, in nano-seconds
SERVO_PERIOD = 1000000

# section for main IO controller parameters -----------------------------------
[EMCIO]

# Name of IO controller program, e.g., io
EMCIO = io

# cycle time, in seconds
CYCLE_TIME = 0.100

# tool table file
TOOL_TABLE = sim.tbl
TOOL_CHANGE_POSITION = 0 0 0
TOOL_CHANGE_QUILL_UP = 1

# Hardware Abstraction Layer section 
--------------------------------------------------
[HAL]

# The run script first uses halcmd to execute any HALFILE
# files, and then to execute any individual HALCMD commands.
#

# list of hal config files to run through halcmd
# files are executed in the order in which they appear
HALFILE = core_sim.hal
HALFILE = sim_spindle_encoder.hal
HALFILE = axis_manualtoolchange.hal
HALFILE = simulated_home.hal
HALFILE = check_xyz_constraints.hal

# list of halcmd commands to execute
# commands are executed in the order in which they appear
#HALCMD = save neta

# Single file that is executed after the GUI has started.  Only supported by
# AXIS at this time (only AXIS creates a HAL component of its own)
#POSTGUI_HALFILE = test_postgui.hal

HALUI = halui

# Trajectory planner section --------------------------------------------------
[TRAJ]
COORDINATES = X Y Z
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
MAX_LINEAR_VELOCITY = 4
DEFAULT_LINEAR_ACCELERATION = 100
MAX_LINEAR_ACCELERATION = 100
POSITION_FILE = position.txt

[KINS]
KINEMATICS = trivkins
JOINTS = 3

# Axes sections ---------------
[AXIS_X]
MAX_VELOCITY = 4
MAX_ACCELERATION = 100.0
MIN_LIMIT = -10.0
MAX_LIMIT = 10.0

[AXIS_Y]
MAX_VELOCITY = 4
MAX_ACCELERATION = 100.0
MIN_LIMIT = -10.0
MAX_LIMIT = 10.0

[AXIS_Z]
MAX_VELOCITY = 4
MAX_ACCELERATION = 100.0
MIN_LIMIT = -8.0
MAX_LIMIT = 0.12

# Joints sections -------------
[JOINT_0]
TYPE = LINEAR
HOME = 0.000
MAX_VELOCITY = 5
MAX_ACCELERATION = 50.0
BACKLASH = 0.000
INPUT_SCALE = 4000
OUTPUT_SCALE = 1.000
FERROR = 0.050
MIN_FERROR = 0.010
MIN_LIMIT = -10.0
MAX_LIMIT = 10.0
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = 20.0
HOME_LATCH_VEL = 20.0
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = NO
HOME_SEQUENCE = 1
HOME_IS_SHARED = 1

[JOINT_1]
TYPE = LINEAR
HOME = 0.000
MAX_VELOCITY = 5
MAX_ACCELERATION = 50.0
BACKLASH = 0.000
INPUT_SCALE = 4000
OUTPUT_SCALE = 1.000
FERROR = 0.050
MIN_FERROR = 0.010
MIN_LIMIT = -10.0
MAX_LIMIT = 10.0
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = 20.0
HOME_LATCH_VEL = 20.0
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = NO
HOME_SEQUENCE = 1

[JOINT_2]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 5
MAX_ACCELERATION = 50.0
BACKLASH = 0.000
INPUT_SCALE = 4000
OUTPUT_SCALE = 1.000
MIN_LIMIT = -8.0

# Normally the Z max should be 0.000!
# The only reason it's greater than 0 here is so that the splash screen
# gcode will run.
MAX_LIMIT = 0.12

FERROR = 0.050
MIN_FERROR = 0.010
HOME_OFFSET = 1.0
HOME_SEARCH_VEL = 20.0
HOME_LATCH_VEL = 20.0
HOME_USE_INDEX = NO
HOME_IGNORE_LIMITS = NO
HOME_SEQUENCE = 0
HOME_IS_SHARED = 1


Any ideas? Super close right now!

Alec


_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to