Advanced Search

Search Results (Searched for: )

  • MalteS
  • MalteS
02 Mar 2025 20:10 - 02 Mar 2025 20:10

G7x and profile in subroutine with parameters

Category: G&M Codes

If there is interest. The full code is shown below (bear with me - comments are a mixture of German and English :-):

O<g7x_macro> sub

; #1 b_Modus                            (todo) 
; #2 ae - Arbeitseingriff (Zustellung)  (0.5mm)
; #3 Feed per revolution                (0.1mm/u)
; #4 Surface speed (vc)                 (50m/min)
; #5 Max RPM                            (1400)

; Set default values
O100 IF  [#2 EQ 0]
    #2 = 0.5
O100 ENDIF

O101 IF  [#3 EQ 0]
    #3 = 0.1
O101 ENDIF

O102 IF  [#4 EQ 0]
    #4 = 50
O102 ENDIF

O103 IF  [#5 EQ 0]
    #5 = 1400
O103 ENDIF


(Allgemeiner Header)
G8 ; Lathe Diameter Mode
G18 ; XZ Plane
G21 ; Metric Units
G90 ; Absolute Distance

(Spindle Steuerung)
G96 D#5 S#4 ; Constant Surface Speed Mode
M3
G95 F#3 ; Feed-Per-Rev Mode
G4 P.2        ; Wait to reach speed

(Anfangspositionen merken)
#<x_start> = #<_x>
#<z_start> = #<_z>

G71.1 Q100 D[#2 / 2] I#2
G70   Q100 D[#2 / 2]

M5
M2

O<g7x_macro> endsub

O100 SUB
  G0 X5 Z0
  G0 x5 z-11.5
  G0 x10 Z-14
O100 ENDSUB

%
  • rodw
  • rodw's Avatar
02 Mar 2025 20:08
Replied by rodw on topic Safety Light

Safety Light

Category: Plasmac

The attached is old hal code that Todd helped me with  which uses, red, orange and green lights. The green light flashed (via siggen) when a program was paused. red was from the estop

The Run/Step/Pause/Resume part is described in hal examples on the forum but it won't work with QTplasmac which has its own pins that achieve a similar result.

Her is and example of it running. I did eventually wire this into some stack lights like you show,
  • MalteS
  • MalteS
02 Mar 2025 20:02 - 02 Mar 2025 20:08

G7x and profile in subroutine with parameters

Category: G&M Codes

Hi,

I'm trying to write a macro for touchy that provides the option to specify the x/z coordinates of the G7x profile on the touchy user interface. 

My initial thought was subroutine nesting but I just found out that I cannot nest subroutines. So this does not work:


O<g7x_macro> sub
O100 SUB
...
O100 ENDSUB

G71.1 Q100 ....

O<g7x_macro> endsub


What works (a bit) is to put the profile subroutine after the main macro (before does not work).

O<g7x_macro> sub

G71.1 Q100 ....

O<g7x_macro> endsub

O100 SUB
...
O100 ENDSUB

But now I struggle with getting parameters to the subroutine. Does anybody have an idea here?
  • rodw
  • rodw's Avatar
02 Mar 2025 19:55
Replied by rodw on topic Plasma and Ethercat?

Plasma and Ethercat?

Category: Plasma & Laser

These plots don't look correct. Try using halscope. This plot shows on piercing the arc voltage goes right off the page almost instantly then it falls below the cutting voltage before stablising around the cut voltage.
The blue line shows when the THC was enabled and you can see that the voltage has already stabilised before it comes on.


 
Displaying 18511 - 18514 out of 18514 results.
Time to create page: 0.759 seconds
Powered by Kunena Forum