scorbot-er-3

More
15 Sep 2024 22:49 #310223 by robocidalmaniac
Replied by robocidalmaniac on topic scorbot-er-3
Thank you, this could be helpful

Please Log in or Create an account to join the conversation.

More
24 Sep 2024 17:03 #310721 by robocidalmaniac
Replied by robocidalmaniac on topic scorbot-er-3
I now have a Dell Optiplex 9010 i5, with a DB25 Parallel Port and a RS232 9pin port. I created a LinuxCNC 2.9.2 live DVD boot disk for it, and are still waiting on a SSD drive to arrive for this computer. I plan on using this computer and LinuxCNC to run my Scorbot-ER-3 Robotic Arm. In my previous question I thought the supplier was sending me a Dell optiplex 980, but shipped the 9010 instead. When I try to run the Scorbot-ER-3 example I get different errors then previously, but believe this is due to no hard drive. Is anyone aware of any LinuxCNC issues with the Scorbot-ER-3 machine example in 2.9.2?

Error report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:Print file information:RUN_IN_PLACE=noLINUXCNC_DIR=LINUXCNC_BIN_DIR=/usr/binLINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcncLINUXCNC_SCRIPT_DIR=LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modulesLINUXCNC_CONFIG_DIR=LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgsINIVAR=inivarHALCMD=halcmdLINUXCNC_EMCSH=/usr/bin/wish8.6LINUXCNC - 2.9.2Machine configuration directory is '/home/user/linuxcnc/configs/by_machine.scorbot-er-3'Machine configuration file is 'scorbot-er-3.ini'INIFILE=/home/user/linuxcnc/configs/by_machine.scorbot-er-3/scorbot-er-3.iniVERSION=1.1check_config: Unchecked: [KINS]KINEMATICS=scorbot-kinsPARAMETER_FILE=sim.varTPMOD=HOMEMOD=TASK=milltaskHALUI=haluiDISPLAY=axisCOORDINATES=X Y Z A BKINEMATICS=scorbot-kinsStarting LinuxCNC...Starting LinuxCNC server program: linuxcncsvrLoading Real Time OS, RTAPI, and HAL_LIB modulesStarting LinuxCNC IO program: ioemc/iotask/ioControl.cc 786: can't load tool table.Starting HAL User Interface program: haluilinuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmodFound file(REL): ./scorbot-er-3.halShutting down and cleaning up LinuxCNC...Removing HAL_LIB, RTAPI, and Real Time OS modulesRemoving NML shared memory segmentsDebug file information:Note: Using POSIX realtimeTraceback (most recent call last):  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 322, in open    self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^PermissionError: [Errno 13] Permission denied: '/dev/ttyS0'During handling of the above exception, another exception occurred:Traceback (most recent call last):  File "/usr/bin/scorbot-er-3", line 56, in <module>    serial = serial.serial_for_url(             ^^^^^^^^^^^^^^^^^^^^^^  File "/usr/lib/python3/dist-packages/serial/__init__.py", line 90, in serial_for_url    instance.open()  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 325, in open    raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))serial.serialutil.SerialException: [Errno 13] could not open port /dev/ttyS0: [Errno 13] Permission denied: '/dev/ttyS0'./scorbot-er-3.hal:15: waitpid failed scorbot-er-3 scorbot-er-3./scorbot-er-3.hal:15: scorbot-er-3 exited without becoming ready2067Stopping realtime threadsUnloading hal componentsNote: Using POSIX realtime
Info report created by linuxcnc_info:The file:    /tmp/linuxcnc_info.txtcan be posted to a forum or a web site like:     pastebin.comin order to provide information about the linuxcncsystem and configuration.                Date: Tue Sep 24 12:56:51 PM UTC 2024            UTC Date: Tue Sep 24 12:56:51 PM UTC 2024        this program: /usr/bin/linuxcnc_info              uptime: 12:56:51 up 6 min, 2 users, load average: 0.81, 2.06, 1.18     lsb_release -sa: Debian Debian GNU/Linux 12 (bookworm) 12 bookworm            linuxcnc: /usr/bin/linuxcnc                 pwd: /home/user/linuxcnc/configs/by_machine.scorbot-er-3                USER: user             LOGNAME: user                HOME: /home/user              EDITOR:              VISUAL:            LANGUAGE:                TERM: dumb           COLORTERM:             DISPLAY: :0.0             DESKTOP: lightdm-xsession        display size: 1280x1024 pixels (338x270 millimeters)                PATH: /usr/bin:/home/user/linuxcnc/configs/by_machine.scorbot-er-3/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/gamesuname items:         nodename -n: debian      kernel-name -s: Linux      kernel-vers -v:

Please Log in or Create an account to join the conversation.

More
24 Sep 2024 17:28 #310722 by tommylight
Replied by tommylight on topic scorbot-er-3
Does the machine use any serial port?
There are again several errors trying to access the serial port called from the scorbot-er-3.hal file, but this time it has no access to it (permission denied), so omit that line in hal.
Or if it has a serial and it has to be used, try searching for
arduino serial port permission denied
to add you user to the "dialout" group.

Please Log in or Create an account to join the conversation.

More
04 Oct 2024 19:30 #311307 by robocidalmaniac
Replied by robocidalmaniac on topic scorbot-er-3
I believe I have corrected all of the Parallel Port and Serial port issues now. I noticed in the previous video that was posted, he mentioned he was using LinuxCNC Dewey.
below is the error report I get now, please help:
Error report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:

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.9.2
Machine configuration directory is '/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3'
Machine configuration file is 'scorbot-er-3.ini'
INIFILE=/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3/scorbot-er-3.ini
VERSION=1.1
check_config: Unchecked: [KINS]KINEMATICS=scorbot-kins
PARAMETER_FILE=sim.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X Y Z A B
KINEMATICS=scorbot-kins
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
emc/iotask/ioControl.cc 786: can't load tool table.
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./scorbot-er-3.hal
Shutting down and cleaning up LinuxCNC...
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
Traceback (most recent call last):
  File "/usr/bin/scorbot-er-3", line 68, in <module>
    serial_write('X')
  File "/usr/bin/scorbot-er-3", line 40, in serial_write
    serial.write(data)
  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 616, in write
    d = to_bytes(data)
        ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 65, in to_bytes
    raise TypeError('unicode strError report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:

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.9.2
Machine configuration directory is '/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3'
Machine configuration file is 'scorbot-er-3.ini'
INIFILE=/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3/scorbot-er-3.ini
VERSION=1.1
check_config: Unchecked: [KINS]KINEMATICS=scorbot-kins
PARAMETER_FILE=sim.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X Y Z A B
KINEMATICS=scorbot-kins
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
emc/iotask/ioControl.cc 786: can't load tool table.
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./scorbot-er-3.hal
Shutting down and cleaning up LinuxCNC...
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
Traceback (most recent call last):
  File "/usr/bin/scorbot-er-3", line 68, in <module>
    serial_write('X')
  File "/usr/bin/scorbot-er-3", line 40, in serial_write
    serial.write(data)
  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 616, in write
    d = to_bytes(data)
        ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 65, in to_bytes
    raise TypeError('unicode strings are not supported, please encode to bytes: {!r}'.format(seq))
TypeError: unicode strings are not supported, please encode to bytes: 'X'
./scorbot-er-3.hal:15: waitpid failed scorbot-er-3 scorbot-er-3
./scorbot-er-3.hal:15: scorbot-er-3 exited without becoming ready
1381
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime



Info report created by linuxcnc_info:
The file:    /tmp/linuxcnc_info.txt
can be posted to a forum or a web site like:
     pastebin.com
in order to provide information about the linuxcnc
system and configuration.

                Date: Thu Oct 3 11:36:34 AM EDT 2024
            UTC Date: Thu Oct 3 03:36:34 PM UTC 2024
        this program: /usr/bin/linuxcnc_infError report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:

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.9.2
Machine configuration directory is '/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3'
Machine configuration file is 'scorbot-er-3.ini'
INIFILE=/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3/scorbot-er-3.ini
VERSION=1.1
check_config: Unchecked: [KINS]KINEMATICS=scorbot-kins
PARAMETER_FILE=sim.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X Y Z A B
KINEMATICS=scorbot-kins
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
emc/iotask/ioControl.cc 786: can't load tool table.
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./scorbotings are not supported, please encode to bytes: {!r}'.format(seq))
TypeError: unicode strings are not supported, please encode to bytes: 'X'
./scorbot-er-3.hal:15: waitpid failed scorbot-er-3 scorbot-er-3
./scorbot-er-3.hal:15: scorbot-er-3 exited without becoming ready
1381
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime



Info report created by linuxcnc_info:
The file:    /tmp/linuxcnc_info.txt
can be posted to a forum or a web site like:
     pastebin.com
in order to provide information about the linuxcnc
system and configuration.

                Date: Thu Oct 3 11:36:34 AM EDT 2024
            UTC Date: Thu Oct 3 03:36:34 PM UTC 2024
        this program: /usr/bin/linuxcnc_infError report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:

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.9.2
Machine configuration directory is '/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3'
Machine configuration file is 'scorbot-er-3.ini'
INIFILE=/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3/scorbot-er-3.ini
VERSION=1.1
check_config: Unchecked: [KINS]KINEMATICS=scorbot-kins
PARAMETER_FILE=sim.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X Y Z A B
KINEMATICS=scorbot-kins
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
emc/iotask/ioControl.cc 786: can't load tool table.
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./scorbot-er-3.hal
Shutting down and cleaning up LinuxCNC...
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
Traceback (most recent call last):
  File "/usr/bin/scorbot-er-3", line 68, in <module>
    serial_write('X')
  File "/usr/bin/scorbot-er-3", line 40, in serial_write
    serial.write(data)
  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 616, in write
    d = to_bytes(data)
        ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 65, in to_bytes
    raise TypeError('unicode strings are not supported, please encode to bytes: {!r}'.format(seq))
TypeError: unicode strings are not supported, please encode to bytes: 'X'
./scorbot-er-3.hal:15: waitpid failed scorbot-er-3 scorbot-er-3
./scorbot-er-3.hal:15: scorbot-er-3 exited without becoming ready
1381
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime



Info report created by linuxcnc_info:
The file:    /tmp/linuxcnc_info.txt
can be posted to a forum or a web site like:
     pastebin.com
in order to provide information about the linuxcnc
system and configuration.

                Date: Thu Oct 3 11:36:34 AM EDT 2024
            UTC Date: Thu Oct 3 03:36:34 PM UTC 2024
        this program: /usr/bin/linuxcnc_info
              uptime: 11:36:34 up 7 min, 1 user, load average: 0.45, 0.63, 0.39
     lsb_release -sa: Debian Debian GNU/Linux 12 (bookworm) 12 bookworm
            linuxcnc: /usr/bin/linuxcnc
                 pwd: /home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3
                USER: robocidalmaniac
             LOGNAME: robocidalmaniac
                HOME: /home/robocidalmaniac
              EDITOR:
              VISUAL:
            LANGUAGE:
                TERM: dumb
           COLORTERM:
             DISPLAY: :0.0
             DESKTOP: lightdm-xsession
        display size: 1280x1024 pixels (338x270 millimeters)
                PATH: /usr/bin:/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

uname items:
         nodename -n: debian
      kernel-name -s: Linux
      kernel-vers -v: #1 SMP PREEMPT_RT Debian 6.1.76-1 (2024-02-01)
          machine -m: x86_64
        processor -p: unknown
         platform -i: unknown
      oper system -o: GNU/Linux

/proc items:
             cmdline: BOOT_IMAGE=/boot/vmlinuz-6.1.0-18-rt-amd64 root=UUID=2a785ebd-a07c-4f37-b8c8-be78eb505b68 ro initrd=/install/gtk/initrd.gz quiet
          model name: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
               cores: 4
             cpu MHz: 3607.748
             parport: 0000-0000 : parport0
              serial: 0000-0000 : serial

Versions:
                 gcc: gcc (Debian 12.2.0-14) 12.2.0
              python: Python 3.11.2
                 git: not_in_PATH
          git commit: NA
                 tcl: 8.6
                  tk: 8.6
               glade: not_in_PATH

linuxcnc_var all:
o
              uptime: 11:36:34 up 7 min, 1 user, load average: 0.45, 0.63, 0.39
     lsb_release -sa: Debian Debian GNU/Linux 12 (bookworm) 12 bookworm
            linuxcnc: /usr/bin/linuxcnc
                 pwd: /home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3
                USER: robocidalmaniac
             LOGNAME: robocidalmaniac
                HOME: /home/robocidalmaniac
              EDITOR:
              VISUAL:
            LANGUAGE:
                TERM: dumb
           COLORTERM:
             DISPLAY: :0.0
             DESKTOP: lightdm-xsession
        display size: 1280x1024 pixels (338x270 millimeters)
                PATH: /usr/bin:/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

uname items:
         nodename -n: debian
      kernel-name -s: Linux
      kernel-vers -v: #1 SMP PREEMPT_RT Debian 6.1.76-1 (2024-02-01)
          machine -m: x86_64
        processor -p: unknown
         platform -i: unknown
      oper system -o: GNU/Linux

/proc items:
             cmdline: BOOT_IMAGE=/boot/vmlinuz-6.1.0-18-rt-amd64 root=UUID=2a785ebd-a07c-4f37-b8c8-be78eb505b68 ro initrd=/install/gtk/initrd.gz quiet
          model name: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
               cores: 4
             cpu MHz: 3607.748Error report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:

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.9.2
Machine configuration directory is '/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3'
Machine configuration file is 'scorbot-er-3.ini'
INIFILE=/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3/scorbot-er-3.ini
VERSION=1.1
check_config: Unchecked: [KINS]KINEMATICS=scorbot-kins
PARAMETER_FILE=sim.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X Y Z A B
KINEMATICS=scorbot-kins
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
emc/iotask/ioControl.cc 786: can't load tool table.
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./scorbot-er-3.hal
Shutting down and cleaning up LinuxCNC...
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
Traceback (most recent call last):
  File "/usr/bin/scorbot-er-3", line 68, in <module>
    serial_write('X')
  File "/usr/bin/scorbot-er-3", line 40, in serial_write
    serial.write(data)
  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 616, in write
    d = to_bytes(data)
        ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 65, in to_bytes
    raise TypeError('unicode strings are not supported, please encode to bytes: {!r}'.format(seq))
TypeError: unicode strings are not supported, please encode to bytes: 'X'
./scorbot-er-3.hal:15: waitpid failed scorbot-er-3 scorbot-er-3
./scorbot-er-3.hal:15: scorbot-er-3 exited without becoming ready
1381
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime



Info report created by linuxcnc_info:
The file:    /tmp/linuxcnc_info.txt
can be posted to a forum or a web site like:
     pastebin.com
in order to provide information about the linuxcnc
system and configuration.

                Date: Thu Oct 3 11:36:34 AM EDT 2024
            UTC Date: Thu Oct 3 03:36:34 PM UTC 2024
        this program: /usr/bin/linuxcnc_info
              uptime: 11:36:34 up 7 min, 1 user, load average: 0.45, 0.63, 0.39
     lsb_release -sa: Debian Debian GNU/Linux 12 (bookworm) 12 bookworm
            linuxcnc: /usr/bin/linuxcnc
                 pwd: /home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3
                USER: robocidalmaniac
             LOGNAME: robocidalmaniac
                HOME: /home/robocidalmaniac
              EDITOR:
              VISUAL:
            LANGUAGE:
                TERM: dumb
           COLORTERM:
             DISPLAY: :0.0
             DESKTOP: lightdm-xsession
        display size: 1280x1024 pixels (338x270 millimeters)
                PATH: /usr/bin:/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

uname items:
         nodename -n: debian
      kernel-name -s: Linux
      kernel-vers -v: #1 SMP PREEMPT_RT Debian 6.1.76-1 (2024-02-01)
          machine -m: x86_64
        processor -p: unknown
         platform -i: unknown
      oper system -o: GNU/Linux

/proc items:
             cmdline: BOOT_IMAGE=/boot/vmlinuz-6.1.0-18-rt-amd64 root=UUID=2a785ebd-a07c-4f37-b8c8-be78eb505b68 ro initrd=/install/gtk/initrd.gz quiet
          model name: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
               cores: 4
             cpu MHz: 3607.748
             parport: 0000-0000 : parport0
              serial: 0000-0000 : serial

Versions:
                 gcc: gcc (Debian 12.2.0-14) 12.2.0
              python: Python 3.11.2
                 git: not_in_PATH
          git commit: NA
                 tcl: 8.6
                  tk: 8.6
               glade: not_in_PATH

linuxcnc_var all:

             parport: 0000-0000 : parport0
              serial: 0000-0000 : serial

Versions:
                 gcc: gcc (Debian 12.2.0-14) 12.2.0
              python: Python 3.11.2
                 git: not_in_PATH
          git commit: NA
                 tcl: 8.6
                  tk: 8.6
               glade: not_in_PATH

linuxcnc_var all:

     LINUXCNCVERSION: 2.9.2
LINUXCNC_AUX_GLADEVCP: /usr/share/linuxcncError report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:

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.9.2
Machine configuration directory is '/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3'
Machine configuration file is 'scorbot-er-3.ini'
INIFILE=/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3/scorbot-er-3.ini
VERSION=1.1
check_config: Unchecked: [KINS]KINEMATICS=scorbot-kins
PARAMETER_FILE=sim.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X Y Z A B
KINEMATICS=scorbot-kins
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
emc/iotask/ioControl.cc 786: can't load tool table.
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./scorbot-er-3.hal
Shutting down and cleaning up LinuxCNC...
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
Traceback (most recent call last):
  File "/usr/bin/scorbot-er-3", line 68, in <module>
    serial_write('X')
  File "/usr/bin/scorbot-er-3", line 40, in serial_write
    serial.write(data)
  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 616, in write
    d = to_bytes(data)
        ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 65, in to_bytes
    raise TypeError('unicode strings are not supported, please encode to bytes: {!r}'.format(seq))
TypeError: unicode strings are not supported, please encode to bytes: 'X'
./scorbot-er-3.hal:15: waitpid failed scorbot-er-3 scorbot-er-3
./scorbot-er-3.hal:15: scorbot-er-3 exited without becoming ready
1381
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime



Info report created by linuxcnc_info:
The file:    /tmp/linuxcnc_info.txt
can be posted to a forum or a web site like:
     pastebin.com
in order to provide information about the linuxcnc
system and configuration.

                Date: Thu Oct 3 11:36:34 AM EDT 2024
            UTC Date: Thu Oct 3 03:36:34 PM UTC 2024
        this program: /usr/bin/linuxcnc_info
              uptime: 11:36:34 up 7 min, 1 user, load average: 0.45, 0.63, 0.39
     lsb_release -sa: Debian Debian GNU/Linux 12 (bookworm) 12 bookworm
            linuxcnc: /usr/bin/linuxcnc
                 pwd: /home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3
                USER: robocidalmaniac
             LOGNAME: robocidalmaniac
                HOME: /home/robocidalmaniac
              EDITOR:
              VISUAL:
            LANGUAGE:
                TERM: dumb
           COLORTERM:
             DISPLAY: :0.0
             DESKTOP: lightdm-xsession
        display size: 1280x1024 pixels (338x270 millimeters)
                PATH: /usr/bin:/home/robocidalmaniac/linuxcnc/configs/by_machine.scorbot-er-3/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

uname items:
         nodename -n: debian
      kernel-name -s: Linux
      kernel-vers -v: #1 SMP PREEMPT_RT Debian 6.1.76-1 (2024-02-01)
          machine -m: x86_64
        processor -p: unknown
         platform -i: unknown
      oper system -o: GNU/Linux

/proc items:
             cmdline: BOOT_IMAGE=/boot/vmlinuz-6.1.0-18-rt-amd64 root=UUID=2a785ebd-a07c-4f37-b8c8-be78eb505b68 ro initrd=/install/gtk/initrd.gz quiet
          model name: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
               cores: 4
             cpu MHz: 3607.748
             parport: 0000-0000 : parport0
              serial: 0000-0000 : serial

Versions:
                 gcc: gcc (Debian 12.2.0-14) 12.2.0
              python: Python 3.11.2
                 git: not_in_PATH
          git commit: NA
                 tcl: 8.6
                  tk: 8.6
               glade: not_in_PATH

linuxcnc_var all:
/aux_gladevcp
LINUXCNC_AUX_EXAMPLES: /usr/share/linuxcnc/aux_examples
            REALTIME: /usr/lib/linuxcnc/realtime
                 RTS: uspace
          HALLIB_DIR: /usr/share/linuxcnc/hallib
              PYTHON: /usr/bin/python3

dpkg -l '*linuxcnc*':
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                Version      Architecture Description
+++-===================-============-============-=====================================================================
un  linuxcnc            <none>       <none>       (no description available)
un  linuxcnc-dev        <none>       <none>       (no description available)
un  linuxcnc-doc        <none>       <none>       (no description available)
ii  linuxcnc-doc-de     1:2.9.2      all          motion controller for CNC machines and robots (German documentation)
ii  linuxcnc-doc-en     1:2.9.2      all          motion controller for CNC machines and robots (English documentation)
ii  linuxcnc-doc-es     1:2.9.2      all          motion controller for CNC machines and robots (Spanish documentation)
ii  linuxcnc-doc-fr     1:2.9.2      all          motion controller for CNC machines and robots (French documentation)
un  linuxcnc-sim        <none>       <none>       (no description available)
un  linuxcnc-sim-dev    <none>       <none>       (no description available)
ii  linuxcnc-uspace     1:2.9.2      amd64        motion controller for CNC machines and robots
ii  linuxcnc-uspace-dev 1:2.9.2      amd64        PC based motion controller for real-time Linux


 

Please Log in or Create an account to join the conversation.

More
05 Oct 2024 07:15 - 05 Oct 2024 07:17 #311326 by Aciera
Replied by Aciera on topic scorbot-er-3
looks like '/src/hal/user_comps/scorbot-er-3.py' has not been completely updated to python3 (which might not be an easy task for somebody without the scorbot hardware).

Debug file information:
Note: Using POSIX realtime
Traceback (most recent call last):
  File "/usr/bin/scorbot-er-3", line 68, in <module>
    serial_write('X')
  File "/usr/bin/scorbot-er-3", line 40, in serial_write
    serial.write(data)
  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 616, in write
    d = to_bytes(data)
        ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 65, in to_bytes
    raise TypeError('unicode strings are not supported, please encode to bytes: {!r}'.format(seq))



Maybe this could give you an idea about how to fix this particular issue (although there might be others after that):
stackoverflow.com/questions/35642855/pyt...ted-please-encode-to
Last edit: 05 Oct 2024 07:17 by Aciera.

Please Log in or Create an account to join the conversation.

More
05 Oct 2024 07:20 #311327 by Aciera
Replied by Aciera on topic scorbot-er-3
_might_ be as simple as changing "/usr/bin/scorbot-er-3", line 40 from this:
serial.write(data)

to:
serial.write(data.encode())
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
06 Oct 2024 20:54 #311443 by robocidalmaniac
Replied by robocidalmaniac on topic scorbot-er-3
I do not have write access to that file
when i use HALRUN I get the same following error:
~$ halrun
halcmd: loadusr -W scorbot-er-3
Traceback (most recent call last):
File "/usr/bin/scorbot-er-3", line 68, in <module>
serial_write('X')
File "/usr/bin/scorbot-er-3", line 40, in serial_write
serial.write(data)
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 616, in write
d = to_bytes(data)
^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 65, in to_bytes
raise TypeError('unicode strings are not supported, please encode to bytes: {!r}'.format(seq))
TypeError: unicode strings are not supported, please encode to bytes: 'X'
<stdin>:1: waitpid failed scorbot-er-3 scorbot-er-3
<stdin>:1: scorbot-er-3 exited without becoming ready

I believe I am also having Python issues please can you tell me when the first LinuxCNC with Scorbot-er-3 version was?

Please Log in or Create an account to join the conversation.

More
07 Oct 2024 08:17 #311474 by Aciera
Replied by Aciera on topic scorbot-er-3

I do not have write access to that file

Try:
sudo nano /usr/bin/scorbot-er-3

please can you tell me when the first LinuxCNC with Scorbot-er-3 version was?

Seems to have been added in Version 2.8

Please Log in or Create an account to join the conversation.

More
07 Oct 2024 18:49 #311512 by robocidalmaniac
Replied by robocidalmaniac on topic scorbot-er-3
I was able to make the change, and it works now. The 4th axis (3: -1305.7399)     keeps going negative when I try to Home the Scorbot-ER-3 see attached photo.
Attachments:

Please Log in or Create an account to join the conversation.

More
07 Oct 2024 19:14 #311515 by tommylight
Replied by tommylight on topic scorbot-er-3

The 4th axis (3: -1305.7399)     keeps going negative when I try to Home the Scorbot-ER-3 see attached photo.

If it is supposed to move the other way when homing, add a - in front of the HOME_SEARCH_VELOCITY in the ini file for that joint.
Might also need to add it to HOME_LATCH_VELOCITY, or it might not.
Wait, does it have homing switches?

Please Log in or Create an account to join the conversation.

Time to create page: 0.093 seconds
Powered by Kunena Forum