Advanced Search

Search Results (Searched for: )

  • MaHa
  • MaHa
22 Feb 2025 16:00

How to integrate manual spindle lock into Axis GUI?

Category: General LinuxCNC Questions

phillc54 gave some good advice to display stuff in axis, some i have still in use.
This entry in the usercommand file
linuxcnc.org/docs/stable/html/gui/axis.html#_user_command_file
could be used to display the the state of the lock. Just replace  'spindle.0.inhibit' by the switch input.
To prevent run a program, i can only imagine, press F2 button.

 

#! /usr/bin/env python
 
W = root_window.tk.call
W('label','.pane.top.tabs.fmanual.jogf.zerohome.rot')
W('grid','.pane.top.tabs.fmanual.jogf.zerohome.rot','-column','0','-row','2','-sticky','w')
 
def user_live_update():
    W('.pane.top.tabs.fmanual.jogf.zerohome.rot','configure','-text','Spindle locked :  ' + str((hal.get_value('spindle.0.inhibit'))))
 
  • MaHa
  • MaHa
22 Feb 2025 15:41
Replied by MaHa on topic global named parameter error

global named parameter error

Category: General LinuxCNC Questions

You can solve that this way:
o800 IF [#<_task> EQ 1]
     #100=#<_varzag>
o800 ENDIF
  • jyeomans
  • jyeomans
22 Feb 2025 15:24
estop issue was created by jyeomans

estop issue

Category: HAL

i am not sure whether this is a hal issue or an issue with qtdragon_hd.  
i have just installed 2.9 the newest build,
and rebuilt my machine.  on my old machine the esop on the screen and the physical estop worked independantly.  
now the estop on the screen only reflects the physical button.    may be this is the way it is ment to work and i just had somthing different. 
i liked it as i get the button on the oppiset side form the screen and i had an estop on both sides of the machine.
 
# --- ESTOP-EXT ---
net estop-ext <= hm2_7i76e.0.7i76.0.0.input-11

# ---estop signals---
net estop-out <= iocontrol.0.user-enable-out
net estop-ext => iocontrol.0.emc-enable-in
  • Grotius
  • Grotius's Avatar
22 Feb 2025 15:02
Replied by Grotius on topic scurve trajectory planner

scurve trajectory planner

Category: General LinuxCNC Questions

@Hi

There are now different solvers in the codebase, in c and c++.

Performance:
 
Test object:
 
  • WKS-3D
  • WKS-3D's Avatar
22 Feb 2025 13:11 - 22 Feb 2025 13:14

Abfrage Werkzeugrevolver verschlossen

Category: Deutsch

Hallo Gemeinde,
ich bin dabei einen der 2 Sensoren für den Werkzeugrevolver zu definieren bzw. was zu tun ist, wenn der Sensor nicht ausgelöst wird.
Der Revolver wird von einem Pneumatikzylinder aus seiner Verzahnung gedrückt, dabei wird der Sensor unlocked ausgelöst, wenn die Position erreicht ist, darf der Motor den Revolver drehen. Danach wird der Revolver wieder nach hinten gezogen und ein 2. Sensor wird geschaltet, es sind also Positionsschalter. Mein Problem ist der 2. Schalter, wenn der Revolver zurückgezogen ist, wenn diese Position nicht erreicht wird und eine Fehlstellung vorliegt (zB Stepper Schrittverlust oder sonstige Störung) dann soll die Maschine ja nicht weiterfahren.
Das habe ich mit einem digitalen Input und M66 im M6-Macro versucht, was so weit auch zu funktionieren scheint:

M66 P0 L3 Q5

Jetzt ist es aber so, dass nach dem Timeout die Maschine trotzdem weitermacht.
Ich vermute da müsste eine Bedingung rein, aber ich weiß nicht, wie ich das am besten umsetze.
Mein M6 Macro:
o<toolchange> sub
G53 G0 X-5.
#4001=45            (bei 8 Positionen 360 Grad durch 8)
M61 Q#4999            (Werkzeug aus Speicher setzen)
o500 if[#<_current_tool> EQ #<_selected_tool>]
    (DEBUG,Tool bereits in Spindel)
o500 else
    G0 C[#<_selected_tool> * #4001-#4001]
    M6 G43
    #4999=#5400
    M66 P0 L3 Q5
o500 endif
o<toolchange> endsub
m2

Nun habe ich folgendes gelesen:
Q- - gibt den Timeout in Sekunden für das Warten an. Wird der Timeout überschritten, wird das Warten unterbrochen, und die Variable #5399 erhält den Wert -1. Der Q-Wert wird ignoriert, wenn das L-Wort Null ist (IMMEDIATE). Ein Q-Wert von Null ist ein Fehler, wenn das L-Wort nicht Null ist.

Wäre es dann so korrekt?
[code]o<toolchange> sub
G53 G0 X-5.
#4001=45            (bei 8 Positionen 360 Grad durch 8)
M61 Q#4999            (Werkzeug aus Speicher setzen)
o500 if[#<_current_tool> EQ #<_selected_tool>]
    (DEBUG,Tool bereits in Spindel)
o500 else
    G0 C[#<_selected_tool> * #4001-#4001]
    M6 G43
    #4999=#5400
    M66 P0 L3 Q5
-----------------------------------------------------
    o501 if #5399=-1
         (DEBUG, Revolver nicht in Grundstellung)
         M0
    o501 endif
------------------------------------------------------
o500 endif
o<toolchange> endsub
m2

Danke und Gruß
Olli

[color=#2ecc71] [/color]
[/code]
Displaying 18826 - 18830 out of 18830 results.
Time to create page: 0.388 seconds
Powered by Kunena Forum