file Question IF Statements in UCCNC

  • TinyTanzer
  • TinyTanzer's Avatar Topic Author
  • Offline
  • Forum Nutzer
  • Forum Nutzer
More
20 Apr 2022 20:46 #62287 by TinyTanzer
IF Statements in UCCNC was created by TinyTanzer
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

Please Log in or Create an account to join the conversation.

More
23 Apr 2022 08:25 #62292 by CNCMiller
Replied by CNCMiller on topic IF Statements in UCCNC
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

Please Log in or Create an account to join the conversation.

More
26 Jun 2022 21:40 #62453 by xxllxx
Replied by xxllxx on topic IF Statements in UCCNC
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.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum

© 2024 STEPCRAFT GmbH & Co. KG

We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.