Advanced Search

Search Results (Searched for: )

  • 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
  • skyguybrad
  • skyguybrad
13 Nov 2025 04:28
pulling my hair out please help was created by skyguybrad

pulling my hair out please help

Category: Basic Configuration

New to linux. have a very basic 3 axis vert mill, open loop with only a 7i96s and can either not get any motion or at this point even a configuration I believe mostly ready to get started. Im shammed to state how many days ive been trying to figure this out.can anyone please help me or point me to competent persons who may be able to do so. Id be willing to pay if need be for direct help. Ive bit off way more than I can chew having chosen linux for my project. "A configure error is preventing linuxcnc from running". I have other configurations with PID loops I could not disable that do launch just fine only obviously I dont have any motion. My eyes are full of blood from bashing my head on the wall. any and all help would be GREATLY appreciated more than you know. Ive never posted in a forum of any kind in my life so if ive posted in the wrong place please educate me and Ill move but here made the most sense after careful evaluation. Thank you guys
7i96s_d.bin
linux 2.9.7
joint 0,1,2 = XYZ
spindle driver is on step/dir4
IN 00 x driver fault. low=fault
in01 Y driver fault low=fault
ino2 Z driver fault low=fault
ino3 spindle fault low=normal open/high=fault
out00 spindle low to enable
XYZ home not yet assigned NC low 
 
  • tommylight
  • tommylight's Avatar
13 Nov 2025 02:14

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

Category: Qtvcp

If software mode is working for you, keep using it.
-
Additional info:
NVIDIA does have issues with new RT kernels for some reason, but on some PC's, so not always:
-two of new PC's and a HP Z420 will work happily with NVIDIA 1060/6GB and 1070 and 1660 super
-none of 5 HP Z600 will work with any NVIDIA card above and many Quadro variants
That is all with 6.10 and 6.13 RT kernels, and the strange thing is after installing the RT kernel, all HP Z600 will boot and run LinuxCNC happily, until you reboot, from then on just a blank screen (no, nomodeset will not work, Linux will boot but screen will be off), hence so many installs till i figured out what was going on.
All work with older 4.19 (i think, not sure) RT kernel.
Also, all those kernels work with AMD RX480/8GB, RX580/8GB and RX6800/16GB
  • EDesro
  • EDesro
13 Nov 2025 01:37

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

Category: Qtvcp

I effectively use an NVIDIA 1070 GPU (overkill, but that's what I have and there is no onboard GPU).

GL_RENDERER = NV134
GL_VERSION = 4.3 (Compatibility Profile) Mesa 22.3.6
GL_VENDOR = nouveau
GL_EXTENSIONS = (There is a huge quantity of things, do you really want to see them? :)
  • tommylight
  • tommylight's Avatar
13 Nov 2025 01:14
Replied by tommylight on topic Avon 3000 Mill retrofit

Avon 3000 Mill retrofit

Category: Milling Machines

Yes, that is it, but there are many issues with those files, like why is it asking for a parallel port when using Mesa 5i25 and 7i77?
Make a new config, do NOT choose stuff at random, set up only axis/joints you need and estop/enable pins and home/limits. You can edit configs at any time later, you can have as much configs as you like/need for the same machine on the same PC.
And i am pretty sure you will need this:
forum.linuxcnc.org/10-advanced-configura...ning-detailed-how-to
Do not skip steps, do not wire everything and power on <- this usually ends up in tears and smoke.
  • CaliusOptimus
  • CaliusOptimus
12 Nov 2025 22:49
Replied by CaliusOptimus on topic Lathe project needs a turret

Lathe project needs a turret

Category: Turning

First real job for this lathe-
Parting off from a 4" 304 bar, then facing back side of the part.

Had some extreme and abnormal chatter at first so I looked around for loose components. Tightened up the X gibs, tried again, nope. Put a bar in the chuck and an indiciator on the spindle, gave it a push and a shove and saw .004" TIR. Ended up having to tighten the spindle preload and good to go.

 
  • Hakan
  • Hakan
12 Nov 2025 22:41 - 12 Nov 2025 23:00
Replied by Hakan on topic Configuration Schnider electric ILA2 Servo

Configuration Schnider electric ILA2 Servo

Category: EtherCAT

Check syslog with "sudo dmesg | tail -20", the master usually tells you in its own cryptic way what's wrong.

Edit, sorry I see you have already done that. Nevertheless, show us messages in the syslog.
And the ethercat-conf.xml file.
  • zoeper
  • zoeper
12 Nov 2025 22:17
Replied by zoeper on topic Avon 3000 Mill retrofit

Avon 3000 Mill retrofit

Category: Milling Machines

 

Assuming this is what you mean?
  • unknown
  • unknown
12 Nov 2025 22:13
Replied by unknown on topic 7i92 cnc motion controller from aliexpress?

7i92 cnc motion controller from aliexpress?

Category: Driver Boards

Can you not message the vendor for any documents ?
Unless someone else has one and is willing to share their experiences, you're venturing into unknown territory.

If it does run 7i92 firmware any threads relating to 7i92 setup should suffice.
Displaying 1276 - 1290 out of 22212 results.
Time to create page: 0.386 seconds
Powered by Kunena Forum