IF Statements in UC...
 
Benachrichtigungen
Alles löschen

IF Statements in UCCNC

3 Beiträge
3 Benutzer
0 Reactions
2,317 Ansichten
(@tinytanzer)
Beiträge: 2
Active Member
Themenstarter
 

Does the Stepcraft UCCNC recognize IF statements and N lines in a G-Code program? I haven't been able to get either to work. Perhaps my syntax is wrong?

G54

IF [#101 EQ 1] P001 L1
M0

IF [#101 EQ 2] P002 L1
M0

G57 G1 X0 Y0 Z0
M30
 
O001
G54
G0 Z8 X0 Y0
M98 P101 L1
G57
G0 Z8 X0 Y0
#101=2
M99

O002
G54
G0 Z8 X25 Y0
M98 P101 L1
G57
G0 Z8 X0 Y0
#101=1
M99

O101
Z-1
G0
G4 P40000
M3
G4 P5000
M5
Z8
G0
M99
 
Veröffentlicht : 20/04/2022 9:46 pm
(@cncmiller)
Beiträge: 230
Reputable Member
 

hello,

in my limited knowledge of coding I thought that if you use an "IF" statement it shpuld be followed by an "ELSE" statement.
I'am missing that in your code. Perhaps that is your problem.

Further I have no knowledge of UCCNC.

SC 1/420 + Gantry extension, Kress 1050 FME-P, NeJe 20W Laser, WinPC-NC USB v4.00, Vectric Aspire 9, SolidWorks 2021

 
Veröffentlicht : 23/04/2022 9:25 am
(@xxllxx)
Beiträge: 4
Active Member
 

https://en.wikipedia.org/wiki/G-code
I'm still learning this, but I don't think it has IF status. G-code it is more like straight forward instructions to a machine what to do.

 
Veröffentlicht : 26/06/2022 10:40 pm
Teilen: