Advanced Search

Search Results (Searched for: )

  • andypugh
  • andypugh's Avatar
01 Oct 2025 14:56
Replied by andypugh on topic Reading data from var file using Python

Reading data from var file using Python

Category: O Codes (subroutines) and NGCGUI

I have looked into this in the past, and concluded that it's not particularly easy.
forum.linuxcnc.org/pathpilot/45260-passi...ode-to-python#236301

In your case the answer probably is to send the probed points out of G-code on HAL pins into a python routine that is monitoring them.

For a small set of values you could use one pin per value, for a larger number maybe one pin to send the value and another to indicate which parameter it corresponds to.

linuxcnc.org/docs/stable/html/gcode/m-code.html#mcode:m68
  • tommylight
  • tommylight's Avatar
01 Oct 2025 13:59
Replied by tommylight on topic New Install of LCNC,Debian12 dumping core

New Install of LCNC,Debian12 dumping core

Category: General LinuxCNC Questions

What PC?
Are you using a parallel port?
If yes, did you type a ROOT password during installation? This is not good as you have to reinstall and skip the root password.
And reboot the PC when you see this is the error report:
Waiting for other session to finish exiting...lockfile still not removed
Waited 3 seconds for master.  giving up.
  • alexandrap
  • alexandrap
01 Oct 2025 13:28
Replied by alexandrap on topic My MESA 7i95T wiring

My MESA 7i95T wiring

Category: Driver Boards

       

File Attachment:

File Name: XYZ.hal
File Size:17 KB
  • alexandrap
  • alexandrap
01 Oct 2025 13:22 - 01 Oct 2025 13:31
Replied by alexandrap on topic My MESA 7i95T wiring

My MESA 7i95T wiring

Category: Driver Boards

Could someone help me, please?
I'm solving the MPG configuration in PNCONFG.
On the TB5 connector are the MPG switch inputs:

IN16 - X-axis switch
IN17 - Y-axis switch
IN 18- Z-axis switch
IN19 - "4" axis switch (SPINDLE -servo step-dir)
IN20 - jog speed switch x1 (default)
IN21 - x10
IN22 - x100
The configuration procedure is in the attached photos
Is the procedure correct?
Can it work like this? And will jogging axis "4" - SPINDLE stepping also work?
Is it necessary to edit something manually in HAL? I've never done it.

I am also attaching the resulting HAL
The axis scales are still provisional
I would like to use SINO linear rulers on the axis as a feedback of the table position (closed loop ) - they are configured in PNCONFG, but I don't know if the feedback will work this way
  • aaron
  • aaron
01 Oct 2025 12:46

New Install of LCNC,Debian12 dumping core

Category: General LinuxCNC Questions

Hi
Pleases help.  I am trying to do a fresh install on an old computer and router system, but I am getting this error message: rtapi_app: caught signal 11 - dumping core.
This is what I get when I start LCNC from command line:
linuxcnc
LINUXCNC - 2.9.4
Machine configuration directory is '/home/aaron/linuxcnc/configs/Joe's-router'
Machine configuration file is 'Joe's-router.ini'
LinuxCNC is still running.  Restart it? [Y/n] y
Cleaning up old LinuxCNC...
Shutting down and cleaning up LinuxCNC...
Waiting for other session to finish exiting...lockfile still not removed
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
<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
<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
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
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
Found file(REL): ./Joe's-router.hal

identityKinematicsSetup: coordinates:XXYZ
   Joint 0 ==> Axis X
   Joint 1 ==> Axis X
   Joint 2 ==> Axis Y
   Joint 3 ==> Axis Z
identityKinematicsSetup: Recommend: kinstype=both

config string '0 out'
Found file(REL): ./custom.hal
rtapi_app: caught signal 11 - dumping core
rtapi_app: caught signal 11 - dumping core

note: MAXV     max: 85.000 units/sec 5100.000 units/min
note: LJOG     max: 85.000 units/sec 5100.000 units/min
note: LJOG default: 8.500 units/sec 510.000 units/min
Warning: Forward kinematics must handle duplicate coordinate letters:xx

Note:
Individual axis homing is not currently supported for
KINEMATICS_IDENTITY with duplicate axis letter <X>

note: jog_order='XYZ'
note: jog_invert=set()
USRMOT: ERROR: command timeout
task: main loop took 1.010196 seconds
USRMOT: ERROR: command timeout
task: main loop took 1.010282 seconds
USRMOT: ERROR: command timeout
task: main loop took 1.010223 seconds
USRMOT: ERROR: command timeout
task: main loop took 1.010128 seconds
USRMOT: ERROR: command timeout
task: main loop took 1.010149 seconds
USRMOT: ERROR: command timeout
task: main loop took 1.010212 seconds
USRMOT: ERROR: command timeout
task: main loop took 1.010275 seconds
USRMOT: ERROR: command timeout
task: main loop took 1.010156 seconds

Thanks
Aaron



 
  • BigDo
  • BigDo
01 Oct 2025 12:17
Replied by BigDo on topic Nativecam running on 2.9.4 almost so close

Nativecam running on 2.9.4 almost so close

Category: NativeCAM

I completely reinstalled Linux with linuxcnc in English but the result remains the same.
  • ShemJ
  • ShemJ's Avatar
01 Oct 2025 10:16

probe_basic nearly working but: failed to set register P0x000e to 0x0014

Category: QtPyVCP

Hello all,

I have an ethercat setup with working axis configs and I'm trying to fire up probe basic for the first time. Everything is up to date and I've made the changes for the latest release in the ini file as well as added the new folders and files. There is some messiness in the .ini file trying to get this sorted, but I can't find anything off.

My machine will be manual tool change, no ATC for me yet, and I'm not sure I've got that right in my HAL file, especially with how it interacts with the toolchange section in probe_basic_postgui.hal. Perhaps it is this?

My error says: failed to set register P0x000e to 0x0014     and I don't know where to look to fix this issue. Can someone send me in the right direction?

 
  • Hakan
  • Hakan
01 Oct 2025 09:13 - 01 Oct 2025 09:16
Replied by Hakan on topic MB2hal interface to a H100 inverter

MB2hal interface to a H100 inverter

Category: Advanced Configuration

No expert by any means, but I got it to work so here are some snippets from that

in custom_sinusM.hal
# Load mb2hal for modbus operation of the sinusM vfd
loadusr -Wn sinusM mb2hal config=sinusM_spindle.ini

...

# Set max limit rpm for spindle
#
net spindle-max-freq       sinusM.05.read-max-freq.float spindlemax.max         # Max frequency(rps) for motor
net  spindle-speed-scale   spindle.0.speed-out-rps-abs   sinusM.01.set-freq     # Just the principle

net spindle-vel-positive    mux4.0.sel0           abs.spindle-speed.sign
net spindle-enable          mux4.0.sel1
net spindle-cmd-out         mux4.0.out            sinusM.04.run-command  # Stop/fwd/rev

In sinusM_spindle.ini
...

[TRANSACTION_01]
MB_TX_CODE=fnct_06_write_single_register
FIRST_ELEMENT=4
NELEMENTS=1
PIN_NAMES=set-freq
MAX_UPDATE_RATE=0.0

[TRANSACTION_04]
MB_TX_CODE=fnct_06_write_single_register
FIRST_ELEMENT=5
NELEMENTS=1
PIN_NAMES=run-command
MAX_UPDATE_RATE=0.0

[TRANSACTION_05]
MB_TX_CODE=fnct_03_read_holding_registers
FIRST_ELEMENT=41492
NELEMENTS=1
PIN_NAMES=read-max-freq
MAX_UPDATE_RATE=0.0
 

The above communication works with the vfd. But hal code is probably mixing Hz and rpms so it won't necessarily work for that reason.
  • meister
  • meister
01 Oct 2025 07:55
  • BigDo
  • BigDo
01 Oct 2025 07:53 - 01 Oct 2025 07:55
Replied by BigDo on topic Nativecam running on 2.9.4 almost so close

Nativecam running on 2.9.4 almost so close

Category: NativeCAM

Thanks for reply. I just tried it, and the NativeCam tab remains completely empty.
 
  • meister
  • meister
01 Oct 2025 07:16
  • tommylight
  • tommylight's Avatar
30 Sep 2025 23:39
  • tommylight
  • tommylight's Avatar
30 Sep 2025 23:37
Replied by tommylight on topic Arrow keys for jogging

Arrow keys for jogging

Category: Gmoccapy

  • unknown
  • unknown
30 Sep 2025 23:34
Replied by unknown on topic sticky estop, help needed

sticky estop, help needed

Category: Basic Configuration

I think I know what you may be trying to achieve.

If you have a look at the sample as shown in the screenshot, yes it is a pyvcp panel, it should give you the logic require if using your own panel or physical button.
 
  • jrc
  • jrc
30 Sep 2025 23:00

Leadshine 2CS3E-D507 / Cia402 almost working - help please!

Category: EtherCAT

Many thanks! I am away today but will give it a try tomorrow and report back. I might also try making an even simpler test machine configuration with only xy coordinates, trivkins, drive by just one 2CS3E-D507 dual-stepper drive, This should hopefully be easier to debug due to having less confounding variables
Displaying 8056 - 8070 out of 18126 results.
Time to create page: 1.748 seconds
Powered by Kunena Forum