Using LOG command with PlanetCNC TNG software

If you want to save your variable and parameter values or any other log data in a form of a file, you can use LOG command.

LOG: Writes to LOG file
LOGOPEN: Creates new LOG file.
LOGAPPEND: Adds content to previously created LOG file
LOGCLOSE: Closes LOG file

 

Example 1: G-code program will create LOG file where desired data will be saved.

%
(LOGOPEN,DataLOG.txt)  
(LOG,This text is saved in "DataLOG.txt" file)
(LOGCLOSE)
%

 

Example 2: G-code program will create two separate LOG files where data will be saved.

%
(LOGOPEN,DataLOG 1.txt)
(LOG,This text is saved in "DataLOG 1.txt" file)
(LOGCLOSE)

(LOGOPEN,DataLOG 2.txt)
(LOG,This text is saved in "DataLOG 2.txt" file)
(LOGCLOSE)

(LOGAPPEND,DataLOG 1.txt)
(LOG,This text is also saved in "DataLOG 1.txt" file)
(LOGCLOSE)

(LOGAPPEND,DataLOG 2.txt)
(LOG,This text is also saved in "DataLOG 2.txt" file)
(LOGCLOSE)

%

 

Created LOG files are located in current folder. User can also explicitly tell where created LOG file will be located.