GSK980TDc Turning CNC System User Manual
136
Ⅰ
Progra
mming
3.25.1 MACRO variables
z
Presentation of macro variables
Present with “#”
+
macro variables number.;
Format: #
i
(i=100,102,103,……) ;
Example: #105, #109, #125.
z
Variable Type
The variable is divided into four types according to the variable number:
Number NO. Variable type
Function
#0
Null variable
The variable is null and is not valued.
#1~#33 Local
variable
The local variable is used to store data in the macro program,
such as result. When the system is turned off, the local variable is
initialized to be null. When the macro program is called, the
argument values to the local.
#100~#199
#500~#999
Share variable
The share variable has the same meaning in the different macro
program. When the system is turned off, the variable #100~#199
is initialized to be null, #500~#999 is saved and is not lost.
#1000~
System
variable
System variable
z
Macro variables reference
1. Macro variables can replace command values
Format:
﹤
Address
﹥
+“# i” or
﹤
Address
﹥
+“
-
# I”. It shows the system takes variable value
or negative value of variable value as address value.
Example: F#103…when #103=15, its function is the same that of F15;
Z-#110…when #110=250, its function is the same that of Z-250;
2. Macro variables can replace macro variables values.
Format: “
#
”+“9”+macro variables number
Example: if #100 = 205, #105 = 500,
The command function of X#9100 is the same as X500;
The command function of X-#9100 is the same as X-500
Note 1: The address O, G and N cannot refer macro variables. For example, O#100
,
G#101
,
N#120 are illegal;
Note 2: If macro variables values exceed the maximum rang of command values, they cannot be used. For
example: #130 = 120, M#130 exceeds the maximum command value.
z
Null variable
When the variable value is not defined, it is null, the variable #0 is always null and only is read
instead of writing.
a. Reference
When an undefined variable (null variable) is referred, the address is ignored.
#1=<null> #1=0
G00 X100 Z#1 is equal to G00 X100
G00 X100 Z#1 is equal to G00 X100 Z0
Содержание GSK980TDc
Страница 17: ...I Programming ...
Страница 18: ...GSK980TDc Turning CNC System User Manual ...
Страница 190: ...GSK980TDc Turning CNC System User Manual 172 Ⅰ Programming ...
Страница 191: ...Ⅱ Operation Ⅱ Operation ...
Страница 192: ...GSK980TDc Turning CNC System User Manua Ⅱ Operation ...
Страница 217: ...Chapter 1 Operation Mode and Display Interface 197 Ⅱ Operation 2 Data parameter page 3 Common used parameter page ...
Страница 326: ...GSK980TDc Turning CNC System User Manual 306 Ⅱ Operation ...
Страница 327: ...Ⅲ Connection Ⅲ Connection ...
Страница 328: ...GSK980TDc Turning CNC System User Manual Ⅲ Connection ...
Страница 470: ...GSK980TDc Turning CNC System User Manual 448 Ⅲ Connection ...