Advanced Search

Search Results (Searched for: )

  • unknown
  • unknown
20 Jun 2025 14:47

(SOLVED) hal_gpio: Operation not permitted fault cannot be solved

Category: HAL

The images are setup and no adding users to groups or messing around is needed.
Read the following thread and you'll find a link to GPIO info and a working example.
forum.linuxcnc.org/38-general-linuxcnc-q...official-images-only
  • PCW
  • PCW's Avatar
20 Jun 2025 14:26
Replied by PCW on topic Lo ejes dejaron de moverse

Lo ejes dejaron de moverse

Category: General LinuxCNC Questions

The fact that it quit working after firing the torch suggest a grounding or EMI issue.

If communication work but you don't get motion, it may be they the step/dir 
output drivers have been damaged. One way to check this is to disconnect the
motor drive step/dir signals and measure the 7I96S step/dir output voltages

The step and direction output voltages should be in one state when the 7I96S card is 
first powered up, and in the opposite state when LinuxCNC is started. 

That is the output voltage should be very close to 5V in one state and very close to
0V in the other state.

If the voltage does not change or you get any voltage that not close to 0V or 5V, this
indicates damaged to the 7I96S step/dir outputs.
 
  • bladekel
  • bladekel
20 Jun 2025 14:15 - 20 Jun 2025 14:19

(SOLVED) hal_gpio: Operation not permitted fault cannot be solved

Category: HAL

Hello to all.
I'm using Linuxcnc 2.9.4 on rpi5 debian bookworm that is installed from linuxcnc rpi5 image.
I have a problem on running my setup.
I tried many things like adding gpio to my user, creating a file 90-gpio-access that is mentioned on hal_gpio manual (linuxcnc.org/docs/devel/html/drivers/hal_gpio.html)

but I failed.

Here is my fault information;
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.4
Machine configuration directory is '/home/cnc/linuxcnc/configs/my-mill'
Machine configuration file is 'my-mill.ini'
INIFILE=/home/cnc/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 A
KINEMATICS=trivkins coordinates=XYZA
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./my-mill.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
Failed to register output pin collection
hal_gpio: rtapi_app_main: Operation not permitted (-1)
./my-mill.hal:4: waitpid failed /usr/bin/rtapi_app hal_gpio
./my-mill.hal:4: /usr/bin/rtapi_app exited without becoming ready
./my-mill.hal:4: insmod for hal_gpio failed, returned -1
2307
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime

my groups are;
cnc@raspberrypi:~$ groups
cnc tty disk dialout sudo audio video plugdev users input render netdev i2c bluetooth gpio spi
  • Sekai
  • Sekai
20 Jun 2025 14:03
Replied by Sekai on topic LinuxCNC MillTurn

LinuxCNC MillTurn

Category: General LinuxCNC Questions

Thanks for the reply.
For now i will work on the 3D model for the whole machine.
  • TheTinkeringMechanic1
  • TheTinkeringMechanic1
20 Jun 2025 13:28
Replied by TheTinkeringMechanic1 on topic Reposition Preview grid.

Reposition Preview grid.

Category: Basic Configuration

That's the problem. It realigns the whole grid to wherever the home is set to. I can't find a way to move the grid itself. If I could keep the grid aligned with the physical home and off set the set home by 3-4 inches on the grid I would be happy. I can't seem to find a way to do that.
  • Johnnysacalu
  • Johnnysacalu
20 Jun 2025 12:40
Replied by Johnnysacalu on topic Lo ejes dejaron de moverse

Lo ejes dejaron de moverse

Category: General LinuxCNC Questions

Todas las fuentes de alimentación dan el voltaje correcto los motores se quedan frenados como si funcionaran pero no se mueven la verdad es que no se si se pudo aver quemado la placa.
Tengo cables blindados puestos a tierra aun que no si es una medida para que no se queme.
Que mas puedo comprobar?
  • Aciera
  • Aciera's Avatar
20 Jun 2025 12:39
Replied by Aciera on topic Reposition Preview grid.

Reposition Preview grid.

Category: Basic Configuration

All these elements are drawn to represent your machine limits and offsets:
The blue circle in the lower left corner is the home position.
The red rectangle shows the axis limits in respect to the home position (as set in the ini file).
The XZ coordinate system shows the current work origin (ie in your example you have an active work offset in x )
  • TheTinkeringMechanic1
  • TheTinkeringMechanic1
20 Jun 2025 11:57
Replied by TheTinkeringMechanic1 on topic Reposition Preview grid.

Reposition Preview grid.

Category: Basic Configuration

I apologize if I wasn't clear.
In the image you'll see a blue and red arrow I'd like to move them up on preview grid closer to the middle, as you can see the program path takes it right to the limit of the preview grid.
  • Aciera
  • Aciera's Avatar
20 Jun 2025 11:49
Replied by Aciera on topic Fanuc-Style Toolchange

Fanuc-Style Toolchange

Category: Advanced Configuration

You don't really need the expanded tool editor for this:

 

Have a look at the sim config:
configs/sim/axis/lathe-fanucy
  • knipknap
  • knipknap
20 Jun 2025 11:09
Replied by knipknap on topic MESA 7i76E burning out issue

MESA 7i76E burning out issue

Category: Driver Boards

I finally found the real cause.

Today i got the amplifier fault on another joint (joint 0) and I found that it the problem happened whenever I turned on the spindle.

After several attempts to measure the ground connections the machine stopped in a position where I found the machine frame was not grounded.

The reason: The spindle connector got loose. The machine frame was grounded through the spindle cable, and that cable had become loose.

All I had to do was tighten the screw of the connector. Ground connection works reliably again and the machine runs well. Phew.
  • meister
  • meister
20 Jun 2025 10:55 - 20 Jun 2025 10:59
Replied by meister on topic EasyCAT Arduino shield

EasyCAT Arduino shield

Category: EtherCAT

accidentally flashed my ethercat servo with something wrong, and restored everything with this tool and the original esi xml

so yes, it really works

I use it to configure my LAN9252 board

EDIT:
uhhh, found this site: markosankovic.github.io/2016/06/28/esi-to-sii-binary.html
i think i need to test this '
ethercat sii_write ...
'
I must have overlooked it somehow :)




 
  • Hakan
  • Hakan
20 Jun 2025 10:52
Replied by Hakan on topic EasyCAT Arduino shield

EasyCAT Arduino shield

Category: EtherCAT

Ok, I have seen those.
When you write an eeprom this way and then list the pdos with "ethercat pdos", do you see the ones you expect to see?
 
  • snowgoer540
  • snowgoer540's Avatar
  • meister
  • meister
20 Jun 2025 10:23
Replied by meister on topic EasyCAT Arduino shield

EasyCAT Arduino shield

Category: EtherCAT

create:
$ siitool -m  -c -o eeprom.bin esi.xml 
= eeprom.bin generated

check:
$ siitool -p eeprom.bin 
Error, SII probably malformed. No 0xffff at the end found
First print preamble and config
Preamble:
PDI Control: ................ 0x0c80
PDI Config: ................. 0xee42
Sync Impulse Length: ........ 2000 ns (raw: 0x00c8)
PDI Config 2: ............... 0x0000
Configured Station Alias: ... 0x0000
Checksum of Preamble: ....... 0x003c (ok)
Identity:
  Vendor ID: ................ 0x00400000
  Product ID: ............... 0x00000715
  Revision ID: .............. 0x00002ef8
  Serial Number: ............ 0x00000000

Default mailbox settings:
  Bootstrap Mailbox:
  Received Mailbox Offset: .. 0x0000
  Received Mailbox Size: .... 0
  Send Mailbox Offset: ...... 0x0000

....................

      Entry 8:
      Entry Index: .............. 0x60fd
      Subindex: ................. 0x00
      String Index: ............. 64 (Digital inputs)
      Data Type: ................ 0x07 (Index in CoE Object Dictionary)
      Bitlength: ................ 32


  • meister
  • meister
20 Jun 2025 10:15
Replied by meister on topic EasyCAT Arduino shield

EasyCAT Arduino shield

Category: EtherCAT

what will you pay me for it ?

;P

Converter:
github.com/synapticon/siitool

eepromtool (write flash):
github.com/OpenEtherCATsociety/SOEM/blob...romtool/eepromtool.c
Displaying 646 - 660 out of 25545 results.
Time to create page: 0.246 seconds
Powered by Kunena Forum