Products Catalogue Home     |     About Us    |     Retrofit     |     Download     |     News     |     Tech Support     |     Contact Us     |     
ppr fittings-NF-4011-Newsun Industry Co., Ltd
Home > Tech Support >

How to perform batch clearing of CNC macro variables?

How to perform batch clearing of macro variables #500 to #999? If each data is manually cleared, the workload is very large.

 

Today, I will share with you a macro program that can be used for batch clearing. According to this template, you can also batch clear tool length, tool compensation, workpiece coordinate system and other functions.
 
(#500-#999 public variable clearing)
 
#1=500.
 
N100
 
IF[#1GT999]GOTO101
 
#[#1]=#0.
 
#1=#1+1
 
GOTO100
 
N101
 
M30

—[Close]— —[ Back]— —[ Print]—