Advanced Search

Search Results (Searched for: )

  • Aciera
  • Aciera's Avatar
10 Aug 2024 08:18
Replied by Aciera on topic gmoccapy pins

gmoccapy pins

Category: Gmoccapy

This will delete the file on startup:
#!/usr/bin/env python3
import os
import time
import hal
import linuxcnc

h = hal.component("file-check")
h.newpin("file-changed", hal.HAL_BIT, hal.HAL_OUT)
h.ready()
# create a connection to the status channel
s = linuxcnc.stat() 
# this is the file being checked for updates (example looks for 'file.txt' in the config folder)
file_path = 'file.txt' 
# wait time in milliseconds between file checks 
check_interval = 5000
# length of output puls in milliseconds 
pulse_length = 1000 


last_modified = os.path.getmtime(file_path)
check_timer_start = round(time.time()*1000)
h['file-changed'] = False

# delete the file if it already exists
if os.path.exists(file_path):
   print("The file exists, deleting it.")
   os.remove(file_path)
else:
  print("The file does not exist") 


try:
    while 1:
        s.poll()
        if round(time.time()*1000) >= check_timer_start +check_interval:
            # we don't want to reload when program is running
            if s.task_mode == 2 and s.state == 1: # ie AUTO-mode and 'RCS_DONE'
                current_modified = os.path.getmtime(file_path)
                if current_modified != last_modified:
                    print("File has changed!")
                    h['file-changed'] = True
                    pulse_timer_start = round(time.time()*1000)
                    last_modified = current_modified
                if h['file-changed'] and pulse_timer_start + pulse_length <= round(time.time()*1000):
                    h['file-changed'] = False
            
            check_timer_start = round(time.time()*1000)
except KeyboardInterrupt:
    raise SystemExit
  • Aciera
  • Aciera's Avatar
10 Aug 2024 07:56
Replied by Aciera on topic Cylindrical mapping

Cylindrical mapping

Category: Show Your Stuff

Cylindrical mapping in linuxcnc: you program a part with X Y and Z in a lathe and it is mapped in a rotary axis (using spindle a C axis)

Looks interesting.
So are you saying you have implemented this in linuxcnc and if yes are you going to show us how you did it?
  • Moutomation
  • Moutomation
10 Aug 2024 06:49
Replied by Moutomation on topic gmoccapy pins

gmoccapy pins

Category: Gmoccapy

I think I found a solution. When Linuxcnc first opens, we must wait for a while and delete the file.txt file with Python. Then we must constantly check whether the file exists. Once the file is in the folder, we must activate the change button.
  • dreynolds
  • dreynolds
10 Aug 2024 06:43
step/dir spindle control was created by dreynolds

step/dir spindle control

Category: PathPilot

Hi there,

I've spent several days trying to understand how to make the spindle control work without success. I know PathPilot will need several changes but I couldn't get it to work with LinuxCNC using Pncconf either.

I have a C6 spindle control board that should output a 0-10v signal to my VFD. This particular version requires step/dir. The manual says requires a 25 KHz input signal to deliver 10v. I have a 7i92T connected to a C10 BOB. I think I need to change the step_type to 0 for step/dir but I have zero idea what to change after that for my specific setup. Seems everything I change results in an output of 10v regardless of the commanded speed in PathPilot.

I have a single speed belt drive. An output of 10v should command 120Hz at the VFD. 120Hz will be approximately 5400 rpm at the spindle and 3490 rpm at the motor.

Where do I start to get a 25 KHz output when I command max rpm? What do I need to change to get the correct ratio and/or scaling for the rest of the rpm range? Is the PathPilot hal file missing components that need to be added?

Thanks in advance.
 
  • cmorley
  • cmorley
10 Aug 2024 06:03
Replied by cmorley on topic qtdragonhd / probing

qtdragonhd / probing

Category: Qtvcp

I did some work on this in master. It now lowers/raises the tool 2x z_clearance.
  • phillc54
  • phillc54's Avatar
10 Aug 2024 04:20

Plasmac Breakaway roadblock (mental one anyway)

Category: Plasmac

If you show the signal plasmac:breakaway in HalShow does it confirm that the connected pins are correct.
 
  • Jindy
  • Jindy
10 Aug 2024 03:10 - 10 Aug 2024 03:10
Replied by Jindy on topic Second LPT port - SOLVED!

Second LPT port - SOLVED!

Category: Advanced Configuration

I tried the first address from lspci -vv  again, and it worked - I ignored the warning from dmesg and can now get the port working in output mode
  • Henk
  • Henk
10 Aug 2024 02:46

Spindle.0.at-speed False not inhibiting motion

Category: HAL

I can confirm that it is not due to that. 2 of our deckels use 5i25s and it happens with them as well. Motion.feed-inhibit takes care of the issue. 

It has been this way since I started using linuxcnc in 2014 on version 2.6

Henk
  • rodw
  • rodw's Avatar
10 Aug 2024 02:17

Plasmac Breakaway roadblock (mental one anyway)

Category: Plasmac

Is this right?
# --- PLASMAC:BREAKAWAY ---
net plasmac:breakaway  <= hm2_7i76e.0.7i76.0.0.input-20
net plasmac:breakaway  => db_breakaway.in

I'm confused here. Ihm2_7i76e.0.7i76.0.0.input-20 lights up in halshow
but plasmac:breakaway does not change state so neither does the pin
Any ideas?
  • cmorley
  • cmorley
10 Aug 2024 01:43
Replied by cmorley on topic Can I embeded Vismach into Qtvcp ?

Can I embeded Vismach into Qtvcp ?

Category: Qtvcp

Sorry for late reply:
I typically add the screen options widget to the 'centralwidget' of the MainWindow.

Then you can set properties in the screenOption widget to turn on optional behavior such as:

Preference file loading/saving
Common dialog widgets
User Color properties for use in stylesheets
play sounds on events
catch the close window event to add a close dialog
embedding external programs

Most of these properties are true/false
  • cmorley
  • cmorley
10 Aug 2024 00:08
Replied by cmorley on topic Error in tool_offsetview.py

Error in tool_offsetview.py

Category: Qtvcp

I did push some work that might have improved this. If you are using _hd maybe more work needs to be done the code base is a little different.
  • cmorley
  • cmorley
10 Aug 2024 00:06
Replied by cmorley on topic QTDragon and Versa Probe

QTDragon and Versa Probe

Category: Qtvcp

Versa probe is the Qtvcp version of the original Verser probe inteface written by Verser.
github.com/verser-git/probe_screen_v2

AFAIK Basic probe is based on the pyqtvcp screen probe basic.

They were then modified/developed to use common probe routine code.
Persei802 (Jim) did most of the work combining the code bases all of the work creating basic probe for Qtvcp.

They are mostly the same for work probing.
Versa Probe supports auto tool probing (bt adding remap code) and some new tool length probing routines.

Not sure what you mean about the actual probes - any brand probe that can output an on/off output to linuxcnc could be used.
  • julienrl
  • julienrl
09 Aug 2024 23:53

7i76e to Spindle analogic from Cortini mill L300

Category: Driver Boards

Hello, terribly sorry to revive this thread, but I am looking for someone who can help me re-wire my Cortini L300 that a acquired with the boards unplugged. I have a partial manual and have just finished rebuilding the fried spindle control board, but I am not sure which wires the interruptor connects to, nor where the AC input goes into the board as that page of my manual is missing.

Thank you
  • Mecanix
  • Mecanix
09 Aug 2024 23:53

linuxcnc-esp32 Software Stepping over Ethernet Using ESP32

Category: Computers and Hardware

Yeah them awesome silicon. Received 2 (two) ESP32-P4NRW32 to prototype hardware with, looking forward integrating them into projects. Here's the pre-release official block diagram for it, the one advertised is kinda old.

CONF. Do NOT share those attachments, yet. For your eyes only. 



Displaying 23401 - 23415 out of 25035 results.
Time to create page: 0.459 seconds
Powered by Kunena Forum