GSK980MDc Milling CNC System User Manual
138
I Programming
c.
Conditional
expression
<Null> differs from 0 only for EQ and NE.
When #1= Null
When #1=0
#1 EQ #0
↓
True
#1 EQ #0
↓
False
#1 NE #0
↓
False
#1 NE #0
↓
False
#1 GE #0
↓
False
#1 GE #0
↓
False
#1 GT #0
↓
False
#1 GT #0
↓
False
5.2.2 Local Variables
Local variables are the variables internally defined in a program. They are effective only within the
program, i.e., it is only can be used within the program.
A local variable #1 that calls macro programs at a certain moment is different from the #1 at another
moment. (No matter the macro programs are identical or not). Therefore, when macro program B is called
from macro program A, like nesting, the local variables used in macro A will not be misused in macro B, and
will not disable the value in macro B.
Usually, the local variables are used to accept the value passed from argument. Please refer to”
Argument Specification” for the relationship between arguments and addresses. Pay attention that, the
initial state of local variable is Null, before the local variable is defined (assigned).
z
Custom macro program nesting and local variable
When calling a macro program, its nesting level increases by one, and correspondingly, the level of
local variable increases by one as well.
The relationship between macro program call and local variable is shown as follows:
z
Explanations
1. #1
~
#33 local variables (0 level) are provided in the main program.
2. When a macro program (1 level) is called by G65, the local variable (0 level) is stored, and local
variables #1~#33 of the new macro program is prepared. The argument replacement is possible (the
same as ).
③
Summary of Contents for 980MDc
Page 19: ...GSK980MDc Milling CNC User Manual XVIII ...
Page 20: ...1 I Programming Programming Ⅰ ...
Page 21: ...GSK980MDc Milling CNC System User Manual 2 I Programming ...
Page 139: ...GSK980MDc Milling CNC System User Manual 120 I Programming ...
Page 191: ...GSK980MDc Milling CNC System User Manual 172 I Programming ...
Page 192: ...173 Ⅱ Operation Ⅱ Operation ...
Page 193: ...GSK980MDc Milling CNC System User Manual 174 Ⅱ Operation ...
Page 200: ...Chapter 1 Operation Mode and Display 181 Ⅱ Operation ...
Page 201: ...GSK980MDc Milling CNC System User Manual 182 Ⅱ Operation ...
Page 249: ...GSK980MDc Milling CNC System User Manual 230 Ⅱ Operation ...
Page 253: ...GSK980MDc Milling CNC System User Manual 234 Ⅱ Operation ...
Page 259: ...GSK980MDc Milling CNC System User Manual 240 Ⅱ Operation ...
Page 265: ...GSK980MDc Milling CNC System User Manual 246 Ⅱ Operation ...
Page 293: ...GSK980MDc Milling CNC System User Manual 274 Ⅱ Operation ...
Page 295: ...GSK980MDc Milling CNC System User Manual 276 Ⅱ Operation ...
Page 319: ...GSK980MDc Milling CNC System User Manual 300 Ⅱ Operation ...
Page 320: ...301 Ⅲ Installation Ⅲ Installation ...
Page 321: ...GSK980MDc Milling CNC System User Manual 302 Ⅲ Installation ...
Page 345: ...GSK980MDc Milling CNC System User Manual 326 Ⅲ Installation ...
Page 391: ...GSK980MDc Milling CNC System User Manual 372 Ⅲ Installation ...
Page 392: ...Appendix 373 Appendix Appendix ...
Page 393: ...GSK980MDc Milling CNC System User Manual 374 Appendix ...
Page 394: ...Appendix 375 Appendix Appendix 1 Outline Dimension of GSK980MDc L N ...