Official GSK Agents in South Africa
Tel: +27 11 626 2720, [email protected]
GSK980TDi Turning CNC System User Manual
166
Ⅰ
Programming
3.26.3 Additional Axis Coordinates Display
3.27 Macro Commands
GSK980TDi provides the macro command which is similar to the high language, and can realize
the variable assignment, and subtract operation, logic decision and conditional jump by user macro
command, contributed to compiling part program for special workpiece, reduce the fussy counting
and simplify the user program.
3.27.1 Macro Variables
z
Presentation of macro variables
Present with “#”
+
macro variables number.;
Format: #
i
(i=100,102,103,……) ;
Alternatively, the variable is specified by “#”+[Expression]
Format:# [
i
]
(i = #100 + #102 + #103
)
Example:#105
,
#109
,
# [#125 + #100 * #111]
。
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