Search Results (Searched for: )

  • fery15sty
07 Nov 2025 13:46 - 07 Nov 2025 13:49
Replied by fery15sty on topic realtime log position to txt use python script
Thanks for your help. But position-log.txt doesn't show up to record.

I'm using LinuxCNC 2.8.4 Debian Buster.
  • karlhe
07 Nov 2025 13:34 - 07 Nov 2025 14:15
Replied by karlhe on topic booten dauert lange 1min 30 sek , alles ok
  Hallo tommy,ich habe sudo nano /etc/fstab ausgeführt und
das sieht dann so aus:
siehe Foto
der uuid  / ext4  errors=remoundas sollte der sein. der gelöscht werden kann? 
karlhe
  • meister
07 Nov 2025 12:49
Code:
outfile.seek(0) # seek to start of file (keeps only one line in the file) outfile.write(" ".join(row)) outfile.flush() # immediately write to disk / performance warning !!!
  • meister
07 Nov 2025 12:43
better use python3
Code:
#!/usr/bin/env python3 # # import linuxcnc import time stat = linuxcnc.stat() with open("position-log.txt", "w") as outfile:     while True:         stat.poll()         row = []         for n, axis in enumerate("XYZABCUVW"):             stat.actual_position[n]             row.append(f"{axis} {stat.actual_position[n]}")             #print(f"{axis} {stat.actual_position[n]}")             #outfile.write(f"{axis} {stat.actual_position[n]}\n")         print(" ".join(row))         outfile.write(" ".join(row))         outfile.write("\n")         time.sleep(0.1)
  • FPVUALAB
07 Nov 2025 12:42
Replied by FPVUALAB on topic Bricked Mesa 7i92T
Hello! Thank you for your support! I only use 7i91th.
  • fery15sty
07 Nov 2025 12:20 - 07 Nov 2025 12:29
Can someone help me create a Python script to record positions in the event of a power loss or LinuxCNC error?

I plan to create an external real-time position logger with an update interval of 0.001 seconds. I use this feature for a wirecut machine. I'm using a Python script and have tried activating log_position_to_txt.py with the M-code command, but the position logging process results in a code overflow, causing the .txt file to grow uncontrollably.

Here's the code for log_position_to_txt.py:

##############################
#!/usr/bin/env python2.7
import linuxcnc
import time

stat = linuxcnc.stat()

with open("position-log.txt", "w") as outfile:

while True:

stat.poll()
x,y,z,a,b,c,u,v,w = stat.actual_position

outfile.write("X ")
outfile.write("{:.4f}\n".format(x))
outfile.write("Y ")
outfile.write("{:.4f}\n".format(y))

time.sleep(0.001)
####################################


Can someone help me fix my Python script so that... position recording does not result in code accumulation?
  • Todd Zuercher
07 Nov 2025 10:48 - 07 Nov 2025 10:49
Replied by Todd Zuercher on topic Delta Servo ASD-B2,
I'm afraid we really don't have enough information to help you.

We have to assume that the new drive isn't configured the same as your old one. Are both the new and old drives the same model and version? (There are different models of Delta Servos that are the same size and look simular, but the motors from an older one are not compatible with a newer drive or vice versa.)

Do you have a back up of all of the parameters from the old drive? Assuming that your new drive is the same model as the old one, you would need to load the parameter settings from the old one to the new one in order for it to behave as before. If you don't have either a software backup of the parameters, or written down paper copy of the parameter settings, then you will have to figure out what they need to be. We can't really help you with that though unless you tell us how the motor/drivev is mis behaving.
  • hermann1976
07 Nov 2025 09:12
Replied by hermann1976 on topic Tipps für aktuelle LinuxCNC Hardware gesucht
Hi Gartenzwerg,

ich habe deinen Post leider zu spät gelesen. Ich hätte noch einen Tipp für ein passendes Mainboard:
Asrock-n100dc-itx   inkl. CPU   -  und Parallel Header
Ich setze das bei meinem CNC Umbau einer Langlochbohrmaschine (Zinkenfräse) ein und macht einen guten Job. (Latenzen um die 8000), nur verwende ich nicht den Par. Port sondern über Lan.
Nur weil ich neugierig bin - von wo bist du im Osten Ö? : ich komme aus dem 3 Länder Eck: Stmk - Bgld - NÖ

lg 

 
  • Hakan
07 Nov 2025 07:26 - 07 Nov 2025 07:49
Yes more info is needed. I think you had that type of problem before, endian?

There is one setting. After reading through the esi file I see there is only DC sync supported, no async or sm sync.
Add this line to the xml file after the     <slave idx="0" line
Code:
      <dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="0"/>

Edit. You already have that. It's early...
  • rodw
07 Nov 2025 06:26
Replied by rodw on topic Ethercat HAL driver
I think Intel is now promoting PREEMPT_RT and have their own optimized RT kernel so the linuxcnc/ethercat stuff is just a tutorial for their users...
  • laurentl38
07 Nov 2025 06:16
Thanks for the documentation and this details, I'll read it carefully.

As for G-code, I'll have to delve deeper into it; for now, I'm far from mastering it.
  • emresensoy
07 Nov 2025 06:02
Replied by emresensoy on topic Fiatech exhibition - 9 axis ethercat setup
I put a simple stepper motor in the last row to show visitors that it can drive Ethercat motors along with stepper /dir motors.

YOu can find detailed information at;
www.egerobotics.com/ethercat-dig32-io-interface
www.egerobotics.com/ethercat-digital-analog-io-board
www.egerobotics.com/ethercat-encoder-interface
www.egerobotics.com/ethercat-pwm-rc-servo-interface
  • endian
07 Nov 2025 05:11
try 
Code:
ethercat debug 1

then 
Code:
sudo dmesg | egrep EtherCAT

show current config 
Code:
ethercat pdos
  • deltafox24
07 Nov 2025 04:33
Replied by deltafox24 on topic Rotary axis in Qtdragon_hd
Doesn't anyone use a rotary axis anymore, and does no one know what the problem might be?
Displaying 11671 - 11685 out of 11914 results.
Time to create page: 0.564 seconds
Powered by Kunena Forum