Advanced Search

Search Results (Searched for: )

  • vibram
  • vibram
13 Nov 2025 14:37
Replied by vibram on topic AX58100

AX58100

Category: EtherCAT

Hello Hakan and thank you for all your work.
If I want to create a small PCB in order to add encoders, compatible with LinuxCNC, which version of your project would you advise in order to modify it?

Thanks
  • skunkworks
  • skunkworks
13 Nov 2025 14:27
Replied by skunkworks on topic Can MESA work without LinuxCNC?

Can MESA work without LinuxCNC?

Category: Driver Boards

I am using hal only with a mesa card to control a monarch lathe spindle. (so encoder, 2 analog drives and some i/o)



Works great.
sam
  • langdons
  • langdons's Avatar
13 Nov 2025 14:00 - 21 Nov 2025 15:51

qtdragon crash during 3d viewer translation (QTvcp ERROR! Message # 1)

Category: Qtvcp

Software is fine, but is seems like such a shame to use software rendering when you have a good GPU.

Are the proprietary NVIDIA drivers an option?

Please post output of glxgears -info.

glxgears -info usually prints out the actual name of your GPU, not just "NV134"; weird.
Though though the fact that glxgears works perfectly whilst QTvcp crashes is even weirder.
  • sixie6e
  • sixie6e's Avatar
13 Nov 2025 13:56 - 13 Nov 2025 14:26

Module ec_master not found in directory /lib/modules/6.1.0-25-rt-amd64

Category: Installing LinuxCNC

I solved this on my Zorin machine by:
1. copying the ec_master.ko module from /lib/modules/(uname -r)/ethercat/master/ into /lib/modules/(uname -r)/kernel/drivers/ethercat
2.
returning to the install folder
3. running make clean followed by sudo depmod -a
Hope this helps.
  • langdons
  • langdons's Avatar
13 Nov 2025 13:55

qtdragon crash during 3d viewer translation (QTvcp ERROR! Message # 1)

Category: Qtvcp

I have 2 PCIe AMD GPUs that I have no use for (too old for 3D stuff becaue AMD only provides support for like 3 years, plus I don't use PCs).

I wish we could trade GPUs.

AMD/ATI stuff works well on Linux because the drivers are in the kernel, though OpenCL is patchy.

NVIDIA GPUs work great on Linux for headless compute, but not always for rendering stuff.
  • TurboStreetCar
  • TurboStreetCar
13 Nov 2025 13:54
Replied by TurboStreetCar on topic Can MESA work without LinuxCNC?

Can MESA work without LinuxCNC?

Category: Driver Boards

Im looking into this as well, is there a clear cut way of running/interfacing HAL with a custom software?

I guess the real question is how to separate HAL from linuxcnc.
  • TurboStreetCar
  • TurboStreetCar
13 Nov 2025 13:45
Replied by TurboStreetCar on topic Determining Rate Of Accelleration

Determining Rate Of Accelleration

Category: General LinuxCNC Questions

Aha! I knew there had to be a relatively easy way. Thanks!
  • MillingMarvin
  • MillingMarvin
13 Nov 2025 10:58

Ethercat - assinged the same pdos to multiple Slave-Signals?

Category: EtherCAT

this is genius!
the comand "lcec_configgen -typedb=false" worked perfectly,
thank you so much for the recomandation!



 
  • hanz24
  • hanz24
13 Nov 2025 09:46
Replied by hanz24 on topic Move stepper motor only with push button

Move stepper motor only with push button

Category: HAL

Thanks a lot, i already find this kind of topic but never found the right one. i will read and try it.

I have tried to change the configuration on the hal file using mux4 etc like this, but my stepper motor still doesn't move, maybe because it doesn't have the  stepgen.02.position-cmd parts. But i think it will be much easier with extra joint configuration.
setp hm2_7i98.0.stepgen.02.control-type   1
setp hm2_7i98.0.stepgen.02.step_type      0
setp hm2_7i98.0.stepgen.02.position-scale -400
setp hm2_7i98.0.stepgen.02.maxvel         30
setp hm2_7i98.0.stepgen.02.maxaccel       100
setp hm2_7i98.0.stepgen.02.steplen        2000
setp hm2_7i98.0.stepgen.02.stepspace      2000
setp hm2_7i98.0.stepgen.02.dirsetup       3000
setp hm2_7i98.0.stepgen.02.dirhold        3000

setp hm2_7i98.0.gpio.013.is_output     1
setp hm2_7i98.0.gpio.013.invert_output 0
net a-enable => hm2_7i98.0.gpio.013.out

loadrt mux4 count=1
addf mux4.0 servo-thread

# Set the speed value
setp mux4.0.in0  0       # stopped
setp mux4.0.in1  200    # speed forward 
setp mux4.0.in2 -200    # speed reverse


# Jog with Push Button, Positif direction pin 001, Negatif direction pin 005
net jog-a-plus-raw    debounce.0.0.in <= hm2_7i98.0.gpio.001.in_not 
net jog-a-plus        debounce.0.0.out => mux4.0.sel0
net jog-a-minus-raw    debounce.0.1.in <= hm2_7i98.0.gpio.005.in_not
net jog-a-minus     debounce.0.1.out => mux4.0.sel1

net chuck-speed mux4.0.out =>    hm2_7i98.0.stepgen.02.velocity-cmd

loadrt or2 count=1
addf or2.0 servo-thread

net jog-a-plus  => or2.0.in0
net jog-a-minus => or2.0.in1

net chuck-enable or2.0.out => hm2_7i98.0.stepgen.02.enable
  • Aciera
  • Aciera's Avatar
13 Nov 2025 09:25 - 13 Nov 2025 09:26
Replied by Aciera on topic Move stepper motor only with push button

Move stepper motor only with push button

Category: HAL

Have a look at 'extra joints'. sim configs can be found in 'configs/sim/axis/extrajoints.
github.com/LinuxCNC/linuxcnc/tree/master...sim/axis/extrajoints

There is also some information here:
linuxcnc.org/docs/html/man/man9/motion.9.html

Discussion:
forum.linuxcnc.org/38-general-linuxcnc-q...-controller?start=20
  • Hakan
  • Hakan
13 Nov 2025 07:36 - 13 Nov 2025 07:38
Replied by Hakan on topic Configuration Schnider electric ILA2 Servo

Configuration Schnider electric ILA2 Servo

Category: EtherCAT

I see these two lines
[35409.201765] EtherCAT WARNING 0: 12 datagrams TIMED OUT!
[35409.331702] EtherCAT WARNING 0-1: Other mailbox protocol response for eoe0s1.
The first one with datagrams TIMED OUT is usually due to network adapter perfomance.
If you have a Realtek network adapter, install the realtek dkms linux drivers.
12 datagrams timed out isn't too bad and it should still work.

The second line indicates your drive supports EoE, Ethernet over EtherCat.
Unfortunately, linuxcnc-ethercat doesn't support that and people have all kinds
of problem to get such servos going.
The most straight-forward way is to download the IgH Ethertcat master and build it
with the flag --disable-eoe.
There is another way - read out the eeprom content of the drive, modify two bits,
and write back. forum.linuxcnc.org/ethercat/55806-long-i...660n?start=20#337450
  • hanz24
  • hanz24
13 Nov 2025 07:09

Move stepper motor only with push button

Category: HAL

I’m working on a CNC lathe project using mesa card 7i98 where I want to add an extra stepper motor to control the chuck lock/unlock mechanism. The goal is to operate this lock only using a push button, completely independent from any G-code commands. This is to prevent accidents in case there's an error in a G-code file that could unintentionally move the chuck lock.I’ve already managed to configure the stepper so it can be moved using a push button, but the issue is that in my current configuration the motor is still connected to joint.2 and axis.a. I’m worried that if something goes wrong in the G-code, the machine could send motion commands to this stepper as if it were a normal axis, which might release the chuck during machining.What I want is a clean way to configure this stepper as a completely independent device, not tied to any axis or joint used by the motion planner, so it will only respond to the push button input.Has anyone implemented something similar or knows the proper way to configure this in LinuxCNC?
  • bszoke
  • bszoke
13 Nov 2025 06:15
Replied by bszoke on topic help with ethercat and omron drives

help with ethercat and omron drives

Category: EtherCAT

Maybe this is documented already somewhere and I just missed it. The key to all of this is this magical argument in the slave tag
configPdos="true"
This actually does alot of what I described above, however, it works in the XML for "other" reasons. If you look at the dmesg log with "ethercat debug 1" you can see exactly what its doing. The XML is still incorrect. To truly use the configPdos="true" properly you have to use the variable mapped PDO's. The reason the XML "works" is because it sets the PDO assignment register to the address listed in the <PDO idx>, however you will get a bunch of errors because it will try to map the PDO's to read only registers. And you don't truly get a variable assigned PDO, you only get what is in the fixed PDO in the registers selected. So it could be intentional, but if you are going to use it, might as well use the variable mapped PDO so you can pick and choose exactly what PDO's you want. However, I think there is a caveat to this, variable PDO mapping is only available in Firmware version > 2.1. So this could be the "lazy mans" way of setting the Fixed PDO's for SM 2&3.
  • miro199315
  • miro199315
13 Nov 2025 05:56 - 13 Nov 2025 05:58
Replied by miro199315 on topic Configuration Schnider electric ILA2 Servo

Configuration Schnider electric ILA2 Servo

Category: EtherCAT

Thanks a lot for looking into this and taking the time to check my issue. I really appreciate the help and suggestions.
Below I’m attaching the XML configuration and system logs for reference.

[35409.201585] EtherCAT: Requesting master 0...
[35409.201588] EtherCAT: Successfully requested master 0.
[35409.201704] EtherCAT 0: Domain0: Logical address 0x00000000, 46 byte, expected working counter 3.
[35409.201706] EtherCAT 0:   Datagram domain0-0-main: Logical offset 0x00000000, 46 byte, type LRW.
[35409.201717] EtherCAT 0: Master thread exited.
[35409.201718] EtherCAT 0: Stopping EoE thread.
[35409.201726] EtherCAT 0: EoE thread exited.
[35409.201726] EtherCAT 0: Starting EoE thread.
[35409.201750] EtherCAT 0: Starting EtherCAT-OP thread.
[35409.201765] EtherCAT WARNING 0: 12 datagrams TIMED OUT!
[35409.331702] EtherCAT WARNING 0-1: Other mailbox protocol response for eoe0s1.
[35409.331956] EtherCAT ERROR 0-1: Reception of CoE download response failed: No response.
[35409.331959] EtherCAT WARNING 0-1: Failed to map PDO entry 0x0000:00 (8 bit) to position 6.
[35409.331961] EtherCAT WARNING 0-1: Currently mapped PDO entries: (none). Entries to map: 0x6040:00/16 0x6060:00/8 0x607A:00/32 0x60FF:00/32 0x0000:00/8 0x0000:00/8 0x0000:00/8 0x0000:00/8 0x0000:00/8 0x0000:00/8 0x0000:00/8 0x0000:00/8 0x0000:00/8 0x0000:00/8 0x0000:00/8
[35409.331973] EtherCAT WARNING 0-1: Failed to configure mapping of PDO 0x1600.
[35409.355684] EtherCAT ERROR 0-1: Mailbox error response received - Unknown error reply code 0x0000.
[35409.355688] EtherCAT WARNING 0-1: Invalid mailbox response for eoe0s1.
[35409.375692] EtherCAT WARNING 0-1: Other mailbox protocol response for eoe0s1.
[35409.375948] EtherCAT ERROR 0-1: Reception of CoE download response failed: No response.
[35409.375951] EtherCAT WARNING 0-1: Failed to map PDO entry 0x0000:00 (8 bit) to position 11.
[35409.375953] EtherCAT WARNING 0-1: Currently mapped PDO entries: (none). Entries to map: 0x6041:00/16 0x6061:00/8 0x6064:00/32 0x606C:00/32 0x6077:00/16 0x0000:00/8 0x0000:00/8 0x0000:00/8 0x0000:00/8 0x0000:00/8 0x0000:00/8 0x0000:00/8 0x0000:00/8 0x0000:00/8 0x0000:00/8 0x0000:00/8
[35409.375965] EtherCAT WARNING 0-1: Failed to configure mapping of PDO 0x1A00.
[35409.389044] EtherCAT ERROR 0-1: Failed to set SAFEOP state, slave refused state change (PREOP + ERROR).
[35409.390043] EtherCAT ERROR 0-1: AL status message 0x001E: "Invalid input configuration".
[35409.392045] EtherCAT 0-1: Acknowledged state PREOP.
[35409.403540] EtherCAT 0: Slave states on main device: PREOP, OP.
linuxcnc@linuxcnc:~$ 
 

[code]<?xml version="1.0" ?>
<masters>
  <master idx="0" appTimePeriod="1000000" refClockSyncCycles="1">
    <slave idx="1" type="generic" vid="0800005a" pid="000022db" configPdos="true">
      
      <!-- Distributed Clocks -->
      <dcConf assignActivate="300" sync0Cycle="1000000" sync0Shift="0" />
      
      <!-- SyncManagers -->
      <syncManager idx="2" dir="out">
        <pdo idx="1600">
          <pdoEntry idx="6040" subIdx="0" bitLen="16" halPin="cia-controlword" halType="u32" />
          <pdoEntry idx="6060" subIdx="0" bitLen="8"  halPin="opmode" halType="s32" />
          <pdoEntry idx="607A" subIdx="0" bitLen="32" halPin="target-position" halType="s32" />
          <pdoEntry idx="60FF" subIdx="0" bitLen="32" halPin="target-velocity" halType="s32" />
        </pdo>
      </syncManager>

      <syncManager idx="3" dir="in">
        <pdo idx="1A00">
          <pdoEntry idx="6041" subIdx="0" bitLen="16" halPin="cia-statusword" halType="u32" />
          <pdoEntry idx="6061" subIdx="0" bitLen="8"  halPin="opmode-display" halType="s32" />
          <pdoEntry idx="6064" subIdx="0" bitLen="32" halPin="actual-position" halType="s32" />
          <pdoEntry idx="606C" subIdx="0" bitLen="32" halPin="actual-velocity" halType="s32" />
          <pdoEntry idx="6077" subIdx="0" bitLen="16" halPin="actual-torque" halType="s32" />
        </pdo>
      </syncManager>

    </slave>
  </master>
</masters>

[/code]


[code] 
[/code]
  • skyguybrad
  • skyguybrad
13 Nov 2025 04:39
Replied by skyguybrad on topic pulling my hair out please help

pulling my hair out please help

Category: Basic Configuration

ive added the following to my my main.hal and it launches now. I could cry right now....

# threads
addf hm2_7i96s.0.read servo-thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf hm2_7i96s.0.write servo-thread
Displaying 1561 - 1575 out of 21885 results.
Time to create page: 0.198 seconds
Powered by Kunena Forum