Chapter Three Programming
149
Part 1 Programming
3.10.3.1 Local Variable # 1
~
# 33
The local variable is a used variable with local in the Marco program. In a certain moment, the
local variable # i (i=1~33) is different (regardless of its same or not of the Macro program) for calling
the Macro program and another one for calling the Macro program in another moment. So, when the
Macro B is called from the Macro A, as the nesting, the local variable used for the Macro program A
may not use to the Marco B, and its variable may be damaged. The Local variable is used for the
conversion of the argument variable. The corresponding relationships between variable and address
can be referred to the Section 3.10.7. The argument variable without converting the local variable is
vacant in the initial state, use can use it freely.
3.10.3.2 Common variable #100
~
#149, #500
~
#511
The local variable is only used in the Macro program, but the common variable is generally used
because the main program calls each sub-program and each Macro program. That is to say, #
i(i=#100
~
#149, #500
~
#511) used in a certain Macro program is absolutely same with another
one in the Macro program. So, the calculation result of the common variable #i in a certain Macro
program can be used another one.
In this system, the use of the common variable does not specify especially, which can be used by
the user freely.
The common variable value from #100 to #149 will be eliminated when the power is turned off;
however, the common variable value of the #500~#511 can not be cleared by turning off the power
supply.
3.10.3.3 System Variable (It is used for the user Macro program B)
In this system, the usage of the system variable is fixed.
(1) The interface signal from #1000 to #1015 and #1032, from #1100 to #1115 and #1132.
[Input signal]:
The state of the interface input signal is affirmed by the reading values from #1000 to #1032 of
the system variable.
System variable
Interface input signal
#1000
#1001
#1002
#1003
#1004
#1005
#1006
#1007
#1008
#1009
#1010
#1011
#1012
#1013
#1014
#1015
2
0
UI0
2
1
UI1
2
2
UI2
2
3
UI3
2
4
UI4
2
5
UI5
2
6
UI6
2
7
UI7
2
8
UI8
2
9
UI9
2
10
UI10
2
11
UI11
2
12
UI12
2
13
UI13
2
14
UI14
2
15
UI15
Variable value
Input signal
1 Contact
closed
0 Contact
open
Содержание GSK983Ma
Страница 124: ......
Страница 130: ...GSK983Ma Milling Machine Center CNC System User Manual 118 Part 1 Programming Rapid traverse Cutting feed ...
Страница 133: ...Chapter Three Programming 121 Part 1 Programming Rapid traverse Cutting feed 6 G82 Drilling cycle boring ...
Страница 143: ......
Страница 185: ......
Страница 209: ...Chapter Four Operation 197 Part 2 Operation ...
Страница 239: ...Chapter Four Operation 227 Part 2 Operation ...
Страница 242: ......
Страница 279: ......
Страница 296: ...GSK983Ma Milling Machine Center CNC System User Manual 284 Part 2 Operation ...
Страница 297: ...Appendix 285 APPENDIX Appendix 1 System Version Display The system version is displayed immediately after power on ...
Страница 371: ...Appendix 11 USB Interface Parameter Transfer Operation ...