Advanced Search

Search Results (Searched for: )

  • phillc54
  • phillc54's Avatar
13 Nov 2024 00:46 - 13 Nov 2024 00:47
Replied by phillc54 on topic How to connect hal pins to custom GUI?

How to connect hal pins to custom GUI?

Category: Other User Interfaces

I tried this but I got an error like
./my-mill.hal:57: Pin 'somePin' does not exist

You probably need the command in a postgui hal file as the pin won't exist until the gui is created.
  • martyop
  • martyop
13 Nov 2024 00:26

rtapi_app: caught signal 11 - dumping core

Category: General LinuxCNC Questions

I'm installing LinuxCNC on a new old computer.
I got toe error "caught signal 11 - dumping core".
I wonder what I am doing wrong?

Here is the report that was generated.
********************************************************************************************************************************
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.3
Machine configuration directory is '/home/martin/linuxcnc/configs/my-mill'
Machine configuration file is 'my-mill.ini'
INIFILE=/home/martin/linuxcnc/configs/my-mill/my-mill.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=
DISPLAY=axis
COORDINATES=X Y Z
KINEMATICS=trivkins coordinates=XYZ
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
libnml/buffer/shmem.cc 320: Shared memory buffers toolCmd and toolCmd may conflict. (key=1004(0x3EC))
libnml/buffer/shmem.cc 320: Shared memory buffers toolSts and toolSts may conflict. (key=1005(0x3ED))
libnml/buffer/shmem.cc 320: Shared memory buffers emcError and emcError may conflict. (key=1003(0x3EB))
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./my-mill.hal
Found file(REL): ./custom.hal
Starting TASK program: milltask
Starting DISPLAY program: axis
rtapi_app: caught signal 11 - dumping core

config string '0 out'
USRMOT: ERROR: command timeout
USRMOT: ERROR: command timeout
USRMOT: ERROR: command timeout
USRMOT: ERROR: command timeout
USRMOT: ERROR: command timeout
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
waiting for s.joints<0>, s.kinematics_type<0>
USRMOT: ERROR: command timeout
Shutting down and cleaning up LinuxCNC...
USRMOT: ERROR: command timeout
USRMOT: ERROR: command timeout
Timeout, trying kill -9
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
iopl() failed: Operation not permitted
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot? -parallel port access is not allowed
Note: Using POSIX realtime
rtapi_app: caught signal 11 - dumping core
note: MAXV     max: 1.000 units/sec 60.000 units/min
note: LJOG     max: 1.000 units/sec 60.000 units/min
note: LJOG default: 0.100 units/sec 6.000 units/min
A configuration error is preventing LinuxCNC from starting.
More information may be available when running from a terminal.
1441
1475
Stopping realtime threads
Unloading hal components
Waited 3 seconds for master.  giving up.
iopl() failed: Operation not permitted
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot? -parallel port access is not allowed
Note: Using POSIX realtime
pwmgen: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
iopl() failed: Operation not permitted
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot? -parallel port access is not allowed
Note: Using POSIX realtime
stepgen: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
iopl() failed: Operation not permitted
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot? -parallel port access is not allowed
Note: Using POSIX realtime
hal_parport: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
iopl() failed: Operation not permitted
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot? -parallel port access is not allowed
Note: Using POSIX realtime
motmod: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
iopl() failed: Operation not permitted
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot? -parallel port access is not allowed
Note: Using POSIX realtime
trivkins: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
iopl() failed: Operation not permitted
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot? -parallel port access is not allowed
Note: Using POSIX realtime
homemod: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
iopl() failed: Operation not permitted
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot? -parallel port access is not allowed
Note: Using POSIX realtime
tpmod: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
<commandline>:0: unloadrt failed
iopl() failed: Operation not permitted
cannot gain I/O privileges - forgot 'sudo make setuid' or using secure boot? -parallel port access is not allowed
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: Tue Nov 12 05:05:34 PM EST 2024
            UTC Date: Tue Nov 12 10:05:34 PM UTC 2024
        this program: /usr/bin/linuxcnc_info
              uptime: 17:05:34 up 4 min, 1 user, load average: 6.46, 4.01, 1.73
     lsb_release -sa: Debian Debian GNU/Linux 12 (bookworm) 12 bookworm
            linuxcnc: /usr/bin/linuxcnc
                 pwd: /home/martin/linuxcnc/configs/my-mill
                USER: martin
             LOGNAME: martin
                HOME: /home/martin
              EDITOR:
              VISUAL:
            LANGUAGE:
                TERM: dumb
           COLORTERM:
             DISPLAY: :0.0
             DESKTOP: lightdm-xsession
        display size: 1440x900 pixels (381x238 millimeters)
                PATH: /usr/bin:/home/martin/linuxcnc/configs/my-mill/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.99-1 (2024-07-15)
          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-23-rt-amd64 root=UUID=768c1d10-a627-4b9d-81eb-5372172430d9 ro quiet
          model name: Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz
               cores: 4
             cpu MHz: 3114.724
             parport: 0000-0000 : parport0
              serial: 0000-0000 : 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.3
LINUXCNC_AUX_GLADEVCP: /usr/share/linuxcnc/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.3      all          motion controller for CNC machines and robots (German documentation)
ii  linuxcnc-doc-en     1:2.9.3      all          motion controller for CNC machines and robots (English documentation)
ii  linuxcnc-doc-es     1:2.9.3      all          motion controller for CNC machines and robots (Spanish documentation)
ii  linuxcnc-doc-fr     1:2.9.3      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.3      amd64        motion controller for CNC machines and robots
ii  linuxcnc-uspace-dev 1:2.9.3      amd64        PC based motion controller for real-time Linux

********************************************************************************************************************************
If you read this far, thank you very much!  What is the problem?
Thanks,
Marty
  • PCW
  • PCW's Avatar
12 Nov 2024 23:20

Mesa, Linuxcnc with step direction servo's for axis and analog servo spindle.

Category: Basic Configuration

Stepconf will not help to make a Mesa step/dir configuration,
you need to use pncconf (or mesact) for that
 
  • mjones@welfab.ca
  • mjones@welfab.ca
12 Nov 2024 23:04

Mesa, Linuxcnc with step direction servo's for axis and analog servo spindle.

Category: Basic Configuration

This is where my lack of experience with linuxcnc hurts me. I started my hal with the configurator. But I new a guy that had the same machine and it was running, but he went with analog axis servos. Alot of code I copied and pasted changing addressing where I needed to, It took quite a bit before I could get it to open in linuxcnc with out errors. I use a step config to make a basic profile and look at it and it looks very different. But as I said it only allows parport addressing. I think now that I have drivers and motors not on machine but connected to linuxcnc, I will probably need to make a basic configuration and play with that until the motors drive as needed, at least then I will know I have the addressing correct. From there I will have to figure out how to blend the files. Problem it is not a simple file.Tool changers, mux switches with hecti decimal and all sorts. Hell right now I can't get the spindle to turn and that is the one think that is exactly the same as the machine that I copied the file from. Pinout, addressing, hal file all the same but it just sits there laughing at me. That I am sure is somehow an address issue, but if I have linuxcnc running and the machine in run state, if I turn the spindle it errors with a joint to position follow or something like that so it is reading the encoder.but i don't think it should be joint 2. Any ways I digress. Tomorrow is another day.
Thanks for input, it is always appreciated.
  • tommylight
  • tommylight's Avatar
12 Nov 2024 22:57
Replied by tommylight on topic Mesa 7i96s / Network no longer working

Mesa 7i96s / Network no longer working

Category: Driver Boards

On the PC, what does
ip a
in a terminal return?
  • PCW
  • PCW's Avatar
12 Nov 2024 22:37

Mesa, Linuxcnc with step direction servo's for axis and analog servo spindle.

Category: Basic Configuration

pncconf can setup step/dir and analog servo systems (they end up being very similar at the hal level)

That is, if you select a 7I76E in pnconf, the axis/joint setup is all step/dir as a 7I76E by
itself only supports step/dir motion.

If you setup say a 7I92+7I77 configuration, it will setup an analog servo system
  • mjones@welfab.ca
  • mjones@welfab.ca
12 Nov 2024 22:05

Mesa, Linuxcnc with step direction servo's for axis and analog servo spindle.

Category: Basic Configuration

from what I can tell the pnconfig doesn't give the option for step/direction, and the stepper configurator doesn't do addressing other than parport, so the mesa addressing would have to all be put in later. Im not at the shop now so I can't show what the set up is now, but to me it looks like its analog when it need to be step and dir.. I did attach my hal and ini in the first post.
  • JT
  • JT's Avatar
12 Nov 2024 21:52 - 12 Nov 2024 22:04

How to connect hal pins to custom GUI?

Category: Other User Interfaces

If you're creating a custom GUI have a look at Flex GUI as that is exactly what it's made for.

gnipsel.com/linuxcnc/flexgui/index.html

gnipsel.com/linuxcnc/flexgui/hal.html#label



JT
  • PCW
  • PCW's Avatar
12 Nov 2024 21:29
Replied by PCW on topic Mesa 7i96s / Network no longer working

Mesa 7i96s / Network no longer working

Category: Driver Boards

If you get the link LED (Yellow) on the RJ45, its not likely a firmware issue
but rather an Ethernet issue.

If you ping the card, do the green LEDs on the 7I96S count up?
 
  • Dougal9887
  • Dougal9887
12 Nov 2024 21:09
Replied by Dougal9887 on topic Error when trying to open Gmoccapy confiuration.

Error when trying to open Gmoccapy confiuration.

Category: Gmoccapy

Yes. I chose parport/stepper config. That opened fine.
  • schnellmued
  • schnellmued
12 Nov 2024 21:00
Mesa 7i96s / Network no longer working was created by schnellmued

Mesa 7i96s / Network no longer working

Category: Driver Boards

Hi all

I was happily using my 7i96s with LinuxCNC on my Mill. This week i powered on the machine and LinuxCNC was not able to connect. Ping 10.10.10.10 also got no response. So i picked a new 2m Lan Cable and connected the Laptop to the Mesa Card  (thought the cable from the cabinet might be damaged) - no Change :( I removed all connectors from the Mesa except the Power, still no change. I put the Mesa card on my bench, inspection did not show any damage. The Link Led is on, traffic led blinking from time to time. I did set the jumper W4/W5 down/down for 192.168.1.121 fallback ip (changed my laptop ip also ofc :D ), still no luck.
I did set the jumpers up/down for bootp and connected it to my router - it got stuck with red led on boot and no device did show in dhcp or the switch arp table.
The card was all the time inside a cabinet and there was no change to any electronics or firmware. I replaced the card with the one from my lathe - worked like a charm.

So the question: There is a firmware "7i96s_16m_fallback.bin", should i try to flash this on the card (the electronic guys at work have jtag equipment) ? 
From the manual :  "Note that the card IP address is fixed at 192.168.1.121 when the IP select jumpers are in the UP,UP setting. If this fails, the 7I96Ss EEPROM must be re-programmed via the JTAG connector or (faster) JTAG FPGA load followed by Ethernet EEPROM update"

Anyone has done this before and could give me some hints please ? Thanks :)

-
schnellmued
 
  • tommylight
  • tommylight's Avatar
12 Nov 2024 20:54
Replied by tommylight on topic Error when trying to open Gmoccapy confiuration.

Error when trying to open Gmoccapy confiuration.

Category: Gmoccapy

There is something terribly wrong there, buffer overflow detected, several segmentation faults, and multiple core dumps.
Try runing one of the included configs for parallel port from config picker, see if that works with Axis gui.
  • PCW
  • PCW's Avatar
12 Nov 2024 20:52

Spindeldrehzahl durch ändern der PWM Frequenz steuern

Category: Deutsch

Sollte das nicht sein:

pwmgen.0.pwm-freq ?
  • endian
  • endian's Avatar
12 Nov 2024 20:38 - 13 Nov 2024 14:16
Replied by endian on topic Ethercat, EL6751 and CANOpen

Ethercat, EL6751 and CANOpen

Category: EtherCAT

this is dry setup...You ve done them in tc build 4026.60 and I have 4024.59 and downloading yours... you do not use a legacy mapping but that else? why?tomorrow I check them live on my koppler and will exact customize mapping if it does not work... dmesg -v me with ethercat debug 1regards
  • Dougal9887
  • Dougal9887
12 Nov 2024 20:26 - 12 Nov 2024 20:29

Error when trying to open Gmoccapy confiuration.

Category: Gmoccapy

Hi,
I am moving an existing working configuration to a new computer running Debian 12 and a newly downloaded version of LinuxCNC.
The Gmoccapy sims open fine, but I get an error attempting to open my configuration.
The message appears to reference Python, so I have attached copies of the .py files from the configuration Python folder and a copy of the report (linuxcnc.txt). I have also attached a copy of the .hal and.ini files in case they are relevant.

I wonder if perhaps there is a mismatch of the old Python files and the new LinuxCNC?

I would be most grateful if someone could please take a look as this is out of my depth!

Many thanks,
Dougal.

Attached files:
 

File Attachment:

File Name: probe_screen.py
File Size:88 KB

 

File Attachment:

File Name: remap.py
File Size:1 KB

 

File Attachment:

File Name: stdglue.py
File Size:8 KB

 

File Attachment:

File Name: toplevel.py
File Size:1 KB

 

File Attachment:

File Name: starmill.hal
File Size:4 KB

 

File Attachment:

File Name: starmill.ini
File Size:4 KB

 

File Attachment:

File Name: linuxcnc.txt
File Size:14 KB

 
Displaying 21196 - 21210 out of 22545 results.
Time to create page: 0.462 seconds
Powered by Kunena Forum