CS-Lab Support Forum for CNC Community

Help to run this brand-new forum and stay with us.
Ask your questions, we are here to help! 

 

Forum Navigation
You need to log in to create posts and topics.

G-Code Interpreter manual

Hi, is there any manual describing what the G-code interpreter can handle?

I mean IF statements like in FANUC, for example: IF[#1 EQ 1] GOTO 10.

In any attempt, I get a syntax error.

Thanks,

Krzysztof

raphael has reacted to this post.
raphael

Hello!

I dont know if the IF statement like in FANUC work.

But there is an option which works in a similar way, pared with an macro.

You can use machineParams. 

In the GCode can be used:

#1001 M900

 

"#1001" is the machineParam number, there can be written an value (as a number) - 1001 is just an example, you can use many machine params.

M900 can be the the execution ( when param 1001 equals 1, then goto 10 - would be easy to code in python)

 

Hope this helps 

Regards

Dobbelju

 

Such conditional statements and BASIC-like commands are not supported.
 
A summary of the supported commands is available here:
 
We are aware that this list is not sufficient for many users, and a more detailed documentation will be created after the work on simCNC v3.600 is completed.
 
carbonkid has reacted to this post.
carbonkid

PARTNERS:

 

USA

Germany

Slovenia / Bosnia

Spain

South Africa

UNI-CAM

The Netherlands

Portugal

Greece

  Distrib milionis logo

Hungary

Distrib logot

Bulgaria

Master

Kenya

Proteq Automation

Egypt

Germanelectronix

China

Jun Ma

Serbia

ALCO

Italy

LVL tech r

Denmark

Varntoft Dania

Finland