Subroutine/Parametric/Variable Program: Mach 3 to UCCNC

Post anything you want to discuss with others about the software.

Subroutine/Parametric/Variable Program: Mach 3 to UCCNC

Postby rbmgf7 » Tue Mar 02, 2021 2:09 am

I upgraded my Mach3 setup (ESS board) to UCCNC (C76). I have the motion and torch functions working now so I need to transfer some programs. I have a couple programs that don't want to display correctly in UCCNC.

Both programs are written with the main being in absolute and the subroutine is in incremental. Both worked great in Mach 3 but have been messing with it in UCCNC and can't get either to work.

This program loads but only shows one part. Should be a 4x11 array. Guess that means the subroutine works but then the variables are but aren't? #101 and #102 register just for the first part. Z shows to be moving (checking on a demo version; not at the machine).

Code: Select all
O0001

#101=0
#102=0
#103=4.25 (X SPACING)
#104=8.15 (Y SPACING)
#108=.12 (Z RETRACT HEIGHT)
#110=0.7 (PIERCE DELAY)
#111=.05(CUT HEIGHT)

G20
F1
G0 G53 G90 G91.1 G40

M98 P1001 L11
M1

#101=0
#102=[#102+#104]

M98 P1001 L11
M1

#101=0
#102=[#102+#104]

M98 P1001 L11
M1

#101=0
#102=[#102+#104]

M98 P1001 L11
M1

G0 G90 X-.2 Y[#104*4+0]
G31 Z-5. F20.
G92 Z0.
G0 Z[#108]
M3
G4 P[#110]
G1 Z[#111] F50.
G1 G91 X48.5 F45
M5
G0 Z1.
G0G90 X0 Y[#104*4+.1]
M30

O1001
G0 G90 G54 X[#101] Y[#102]
G0 G91 X1.185 Y2.06
G90
G31 Z-5. F20.
G92 Z0.
G0 Z[#108]
M3
G4 P[#110]
G1 Z[#111] F50.
G91 Y3.94 F45.
X1.69
Y-3.94
X-1.69
M5
G0 G90 Z1.
G91 X-1.185 Y-2.06
G90 Z.2
G31 Z-5. F20.
G92 Z0.
G0 Z[#108]
M3
G4 P[#110]
G1 Z[#111] F50.
G91 Y8.06 F45.
X4.06
Y-.7787
X-.3738
G17 G3 Y-.5025 I0 J-.2513
G1 X.3738
Y-5.4976
X-.3738
G3 Y-.5025 I0 J-.2512
G1 X.3738
Y-.7787
X-4.06
M5
G0 G90 Z1.
#101=[#101+#103]
M99
%

This program gives a read error and closes but is written nearly the same. Should be a 4x10 array of parts.
Code: Select all
O1002

#101=3.365
#102=2.48
#107=4.82 (SPACING)
#108=.15 (Z RETRACT HEIGHT)
#110=0.8 (PIERCE DELAY)
#111=.06 (CUT HEIGHT)

G20
F1
G0 G53 G90 G91.1 G40

M98 O1001 L10
M1

#101=3.375
#102=[#102+#107]

M98 O1001 L10
M1

#101=3.375
#102=[#102+#107]

M98 P1001 L10
M1

#101=3.375
#102=[#102+#107]

M98 P1001 L10
M1

G0 G90 X0 Y[#107*4+.1]

M30

O1001
G0 G90 X[#101] Y[#102]
G31 Z-5. F20.
G92 Z0.
G0 Z[#108]
M3
G4 P[#110]
G1 Z[#111] F40.
G17 G3 I-.900 J0 F45.
M5
G0 G90 Z1.
G91 X-2.8 Y.22
G90 Z.2
G31 Z-1. F20.
G92 Z0.
G0 Z[#108]
M3
G4 P[#110]
G1 Z[#111] F40.
G91 X-.2374 F45.
G2 X-.2727 Y.3436 I0 J.28
X1.8515 Y1.8515 I2.4151 J-.5636
X.3436 Y-.2727 I.0636 J-.2727
G1 Y-.2374
G3 X.44 I.22 J0
G1 Y.2374
G2 X.3436 Y.2727 I.28 J0
X1.8515 Y-1.8515 I-.5636 J-2.4151
X-.2727 Y-.3436 I-.2727 J-.0636
G1 X-.2374
G3 Y-.44 I0 J-.22
G1 X.2374
G2 X.2727 Y-.3436 I0 J-.28
X-1.8515 Y-1.8515 I-2.4151 J.5636
X-.3436 Y.2727 I-.0636 J.2727
G1 Y.2374
G3 X-.44 I-.22 J0
G1 Y-.2374
G2 X-.3436 Y-.2727 I-.28 J0
X-1.8515 Y1.8515 I.5636 J2.4151
X.2727 Y.3436 I.2727 J.0636
G1 X.2374
G3 Y.44 I0 J.22
M5
G0 Z1.
#101=[#101+#107]
M99
%
rbmgf7
 
Posts: 6
Joined: Sun Jan 13, 2019 11:19 pm

Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: No registered users and 25 guests