Advanced Search

Search Results (Searched for: )

  • Rkatts
  • Rkatts
14 Nov 2024 14:06 - 14 Nov 2024 17:28

Ethercat installation from repositories - how to step by step

Category: EtherCAT

After installing LinuxCNC 2.9.3 (Debian 12) and EtherCAT module (Master driver 1.6.2), I am unable to get EtherCAT communication working.  LinuxCNC will run, but there is no active status or feedback positions.  DS402 statuswords are zero, indicating there is no communication.

I have a LinuxCNC system running with an older version (2.8.0).  I copied the linuxcnc_axis folder from the working system and put it into this one and made adjustments for the new system.

In ecat_gantry.ini, the hal file is listed correctly.
[HAL]
TWOPASS=ON
HALFILE = ecat_gantry.hal

In ecat_gantry.hal, I updated the loadusr command. (removed the path that was incorrect)
loadusr -W lcec_conf ethercat-conf.xml
loadrt lcec

The ethercat-conf.xml file is configured correctly for the three servo drives. This same configuration works on an almost identical system. The only difference in hardware is the AKD2G in this system is FS3 (functional safety) whereas the working system is FS1 (STO only).  I made the appropriate change in the ethercat pid code.
<!--cnc-bg Config -->
<masters>
  <master idx="0" appTimePeriod="1000000" refClockSyncCycles="1">
      
       <!-- AKD X Axis (beam) -->
   <slave idx="0" type="generic" vid="0000006A" pid="00414b44" configPdos="true">
      <!-- Clear SM PDOs -->
      <sdoConfig idx="1C12" subIdx="00">
        <sdoDataRaw data="00"/>
      </sdoConfig>
      <!-- Clear SM PDOs -->
      <sdoConfig idx="1C13" subIdx="00">
        <sdoDataRaw data="00"/>
      </sdoConfig>
      
      <!-- Clear RX PDO1 -->
      <sdoConfig idx="1A00" subIdx="00">
        <sdoDataRaw data="00"/>
      </sdoConfig>
      <!-- Map status word to RX-PDO1 -->
      <!--  0x6041 0010 -->
      <sdoConfig idx="1A00" subIdx="01">
        <sdoDataRaw data="10 00 41 60"/>
      </sdoConfig>
      <!-- Map position feedback to RX-PDO1 -->
      <!-- 0x6064 0020 -->
      <sdoConfig idx="1A00" subIdx="02">
        <sdoDataRaw data="20 00 64 60"/>
      </sdoConfig>
      <!-- Set RX-PDO1 count to 2 -->
      <sdoConfig idx="1A00" subIdx="00">
        <sdoDataRaw data="02"/>
      </sdoConfig>

(That is only the first part of the ethercat-conf.xml file.)

It recognizes the 3 servo drives, but they are all errored.
jim@cnc:~$ ethercat slaves
0  6:0  PREOP   E  AKD EtherCAT Drive (CoE)
1  6:1  SAFEOP  E  AKD2G Dual Axis FS3 EtherCAT Drive (CoE)
2  1:0  PREOP   E  AKD EtherCAT Drive (CoE)
jim@cnc:~$ sudo dmesg | grep EtherCAT
[sudo] password for jim: 
[    4.545203] EtherCAT: Master driver 1.6.2 1.6.2.g285cdf0-1+12.2
[    4.545268] EtherCAT: 1 master waiting for devices.
[    4.572786] ec_generic: EtherCAT master generic Ethernet device module 1.6.2 1.6.2.g285cdf0-1+12.2
[    4.572795] EtherCAT: Accepting 00:1B:21:5A:44:37 as main device for master 0.
[    4.588476] EtherCAT 0: Starting EtherCAT-IDLE thread.
[    4.588497] EtherCAT 0: Link state of ecm0 changed to UP.
[    5.192449] EtherCAT 0: Link state of ecm0 changed to DOWN.
[    5.240474] EtherCAT 0: Link state of ecm0 changed to UP.
[    5.264455] EtherCAT 0: 3 slave(s) responding on main device.
[    5.264458] EtherCAT 0: Slave states on main device: PREOP, SAFEOP + ERROR.
[    5.265859] EtherCAT 0: Scanning bus.
[    5.878393] EtherCAT WARNING 0-1: Slave has state error bit set (SAFEOP + ERROR)!
[    7.657131] EtherCAT ERROR 0-1: Timeout after 1000 ms while waiting for SDO 0x1c12:0 upload response.
[    7.657134] EtherCAT ERROR 0-1: Failed to read number of assigned PDOs for SM2.
[    8.657645] EtherCAT ERROR 0-1: Timeout after 1000 ms while waiting for SDO 0x1c13:0 upload response.
[    8.657647] EtherCAT ERROR 0-1: Failed to read number of assigned PDOs for SM3.
[    9.267846] EtherCAT 0: Bus scanning completed in 4000 ms.
[    9.267848] EtherCAT 0: Using slave 0 as DC reference clock.
[    9.267851] EtherCAT 0: Starting EoE thread.
[    9.307336] EtherCAT ERROR 0-0: Failed to set SAFEOP state, slave refused state change (PREOP + ERROR).
[    9.308655] EtherCAT ERROR 0-0: AL status message 0x001D: "Invalid output configuration".
[    9.310093] EtherCAT 0-0: Acknowledged state PREOP.
[    9.316500] EtherCAT ERROR 0-1: AL status message 0x001B: "Sync manager watchdog".
[    9.320634] EtherCAT 0-1: Acknowledged state SAFEOP.
[    9.372708] EtherCAT ERROR 0-2: Failed to set SAFEOP state, slave refused state change (PREOP + ERROR).
[    9.374026] EtherCAT ERROR 0-2: AL status message 0x001D: "Invalid output configuration".
[    9.375463] EtherCAT 0-2: Acknowledged state PREOP.
[    9.397756] EtherCAT ERROR 0-1: AL status message 0x001B: "Sync manager watchdog".
[    9.403141] EtherCAT 0-1: Acknowledged state SAFEOP.
[    9.469755] EtherCAT ERROR 0-1: AL status message 0x001B: "Sync manager watchdog".
[    9.473818] EtherCAT 0-1: Acknowledged state SAFEOP.
...
[55800.087042] EtherCAT WARNING 0-1: SDO information error response while fetching SDO entry 0x1C32:0E!
[55800.087045] EtherCAT ERROR 0-1: SDO abort message 0x06090011: "Subindex does not exist".
[55800.089891] EtherCAT WARNING 0-1: SDO information error response while fetching SDO entry 0x1C32:0F!
[55800.089893] EtherCAT ERROR 0-1: SDO abort message 0x06090011: "Subindex does not exist".
[55800.092737] EtherCAT WARNING 0-1: SDO information error response while fetching SDO entry 0x1C32:10!
[55800.092738] EtherCAT ERROR 0-1: SDO abort message 0x06090011: "Subindex does not exist".
[55800.096957] EtherCAT WARNING 0-1: SDO information error response while fetching SDO entry 0x1C32:11!
[55800.096958] EtherCAT ERROR 0-1: SDO abort message 0x06090011: "Subindex does not exist".
[55800.101182] EtherCAT WARNING 0-1: SDO information error response while fetching SDO entry 0x1C32:12!
[55800.101183] EtherCAT ERROR 0-1: SDO abort message 0x06090011: "Subindex does not exist".

Can anyone help me determine what is wrong?
  • Routerworks
  • Routerworks
14 Nov 2024 14:05
Replied by Routerworks on topic New basic setup recommendations

New basic setup recommendations

Category: General LinuxCNC Questions

Think it might be time to ditch it. I reinstalled linuxcnc and it loads properly however I get a bios 8254 error when loading, also "not connected to IO-APC".
From what I have read this could be a timing issue caused by a faulty timing chip on the mother board. How far do you go with a 15 year old computer?
There a lot of old Optiplex computers on the market for under $100.00 that are far more powerful and way exceen the minimum requirements for linuxcnc. I would only have to install the parallel port I could take out of the old one.
Any suggestions are apppreciated before I scrap it.
Many thanks for all you help.
  • behai
  • behai
14 Nov 2024 13:38

Please help with Nema 23 closed loop CL57T-V41 driver Microstep Switches

Category: Off Topic and Test Posts

Good evening @ my1987toyota,  Thank you for your valuable advice, I understand your explanation on the X and the Y axis. I can picture that in my head.

This Nema 23 motor and the associated driver is only hardware I have, I bought just a single one so can be familiar with the wiring and how stepper motor works.

Originally, I was thinking of Mach3, whereby I can use a cheap, around $AUD 20.00 BOB, and readily available. But LinuxCNC looks more appealing even though it is a bit more involved. I have seen videos where they run motors and spindle with LinuxCNC without any mechanical parts. I would like to take this path as well, once I understand the electronics, I will think about getting the mechanical parts.

I will heed advice and will be reading the LinuxCNC manual :) I have seen videos on it but I have not done a lot of reading yet.

Thank you and best regards,

...behai.

 
  • my1987toyota
  • my1987toyota's Avatar
14 Nov 2024 13:10 - 14 Nov 2024 13:12

Please help with Nema 23 closed loop CL57T-V41 driver Microstep Switches

Category: Off Topic and Test Posts

  Well first off welcome to the wonderful world of CNC. Firstly I recommend you read through the Linuxcnc manual, that will get you
going in the right direction. I don't have direct experience with using Raspberry Pi and Linuxcnc. I usually use the Dell Optiplex 9020
and MESA boards
however I recommend using 8 micro steps for most installs. That said you can run the full gamut from full step to 200 micro step
if your driver is rated to handle it.
  Next NO you don't have to run the exact same step setting on all drivers. You could use a belt
drive for one axis, for example a Y axis at say 100 micro steps and a ball screw axis, again for example X axis at say 8 micro step.
At that point you change your step counts in you ini. file accordingly or in your software wizard either Pncconf or Stepconf.
That way you should have accurate calibrated movements on your axis.
  You will have a lot of questions along the way everyone does, so don't get discouraged by it. I would recommend you run a few
simulated setups and play with the system to see how things work before you do your build.
  Lastly keep your build as simple as possible an gradually add in more complexity later if you so desire. It helps keep the
overwhelm from getting to you. I hope this helps and good luck with your CNC endeavors.
  • Wrightys99
  • Wrightys99
14 Nov 2024 12:51

How to build a spaceship with Linuxcnc and a Mesa 7i76e

Category: Basic Configuration

Rodw

Thank you just what I needed.

I appreciate your time in creating this.

Cheers
  • Aciera
  • Aciera's Avatar
14 Nov 2024 12:30 - 14 Nov 2024 12:32

Spindeldrehzahl durch ändern der PWM Frequenz steuern

Category: Deutsch

Parameter können nicht mit HAL pins geändert werden.

Aber warum nicht einfach einen stepgen (stepgen.N.velocity-cmd) verwenden?
  • TripleM
  • TripleM
14 Nov 2024 12:23

Spindeldrehzahl durch ändern der PWM Frequenz steuern

Category: Deutsch

hm.. und es ist nicht möglich irgendwie die Frequenz zu regeln?
da ich so aktuell 'pwmgen.n.value' auf 0.5 setze, habe ich ein top Rechteck-Signal, so wie ich es brauche.

Habe es als alternative mit einem PDM-Signal versucht (pwmgen.01.output-type 3), jedoch ist da auch nicht immer ein Tastgrad von 0.5 gegeben und zudem ist das Signal nicht konstant (weiß aber noch nicht genau ob die geringe Abweichung etwas ausmacht)

 
  • Aldenflorio
  • Aldenflorio's Avatar
14 Nov 2024 12:19
Replied by Aldenflorio on topic Pipe Cutting Plasma CNC

Pipe Cutting Plasma CNC

Category: Computers and Hardware

I subscribed to them all!

I couldn’t find any video explaining the pipe cuter though. What kind of motor did you use and how did you set it up?
  • mBender
  • mBender
14 Nov 2024 12:05

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

Hey, no problem! I appreciate the hard work you do for this project!!

I increased the deadband to 0.01 and switched the position back to Actual. The jumping of the numbers stopped and the motors don't make that weird noise anymore. I will test it with the oscilloscope, but I am sure that brought me one step more where I want to be. I wanna say that the motors are not stalling as early anymore.

I played around with the PID settings and thought this would help with the problem, but no change so far.
  • Aciera
  • Aciera's Avatar
14 Nov 2024 11:41

Spindeldrehzahl durch ändern der PWM Frequenz steuern

Category: Deutsch

'pwmgen.pwm_frequency' ist ein Parameter, der ist nicht zum Einstellen der Drehzahl dazu ist 'pwmgen.n.value' .

Vielleicht hilt dir das hier weiter:
forum.linuxcnc.org/39-pncconf/38723-pncc...p-pwm-on-7i96#162320
  • Tinine
  • Tinine
14 Nov 2024 11:41
Replied by Tinine on topic Multiple controller boards

Multiple controller boards

Category: General LinuxCNC Questions

Anything else you look might seem cheaper, it is not, and they will be extremely limited in expansion compared to Mesa.

 

Trying to get a feel for this but I'm a bit overwhelmed.
Is it possible to use my own motion controller with LinuxCNC? I am only interested in closed-loop servo and I want to handle the PID myself. 

Craig
  • TripleM
  • TripleM
14 Nov 2024 11:23

Spindeldrehzahl durch ändern der PWM Frequenz steuern

Category: Deutsch

hab die *.hal und *.ini im ersten Post angehängt.
Benutze eine Mesa 7i96s und habe das bitfile angepasst, sodass auf dem step-gen_4 die PWM/Dir Ausgabe stattfindet. 

pwmgen.0.pwm-freq lieferte den gleichen Fehler.
Sowie ich gelesen habe ist die Frequenz für alle PWM-Generatoren gültig, darum wird die "0" weggelassen
  • gitin
  • gitin
14 Nov 2024 11:05
Replied by gitin on topic Linear move exceeds joints positive limit

Linear move exceeds joints positive limit

Category: General LinuxCNC Questions

Check in the ini TOOL_CHANGE_POSITION = 0 0 0. The third digit (Z) will be added to the length of the tool and will show the excess.
  • shaying526
  • shaying526
14 Nov 2024 09:27

How to Achieve Smooth Motion for Rotational Axes? G64?

Category: G&M Codes

Thank you for your reply.

linuxcnc.org/docs/2.9/html/user/user-con...gramming-the-planner

I have read the following document, Naive CAM Detector section.
"Naive CAM Detector
Successive G1 moves that involve only the XYZ axes that deviate less than Q- from a straight line are merged into a single straight line."

As you said, CAM seems to only work on XYZ? Is there any other solution? except 'output longer segments'.
  • greg23_78
  • greg23_78
14 Nov 2024 08:38 - 14 Nov 2024 08:41

Solution fo "hm2 error finishing read" with no good PC

Category: Computers and Hardware

i get like before
cnc@cnc:~$ ls -1 /sys/class/net/ | grep -v lo | xargs -I{} bash -c 'echo -n {} :" " ; basename `readlink -f /sys/class/net/{}/device/driver`'
enp2s0 : r8168
cnc@cnc:~$

My PC is a Dell Optiflex 3040
Displaying 18151 - 18165 out of 24119 results.
Time to create page: 0.797 seconds
Powered by Kunena Forum