Chapter Three Programming
147
Part 1 Programming
Each variable number is distinguished from the variable when some variable is used.
3.10.2.1 The Description of the Variable
For example, a variable is composed of the variable notation (#) and its following variable number,
which shown in the Section 10.2.1.
#1
(
i=1
,
2
,
3
,
4……
)
For example 10.2.1
:
#5
#109
#1005
The following format also can be used, and the digit is replaced by the format.
# [<Format>]
For example 10.2.2
:
#[#100]
#[#1001-1]
#[# b/2]
The whole variables #i in this use manual are replaced by the # [<Format>].
3.10.2.2 The Notation of the Variable
The digits followed with the address can be replaced by the variable. If the program is
<Address>#i or <Address>-#i, which means the variable value or its supplementary number is
regarded as other address command value.
For example 10.2.3:
F #33 If #33= 1.5, it is same with the F1.5.
Z-#18 if #18=20.0, it is same with the Z-20.0.
G #130 if #130=3.0, it is same with the G3.
(1) The addresses are forbidden to use the variable: O and N. That is to say, it can not be
written into: O# 27 or N # 1.
The n (n= 1 ~ 9) can not be used as the variable in the skip optional block /n.
(2) The variable is replaced by the variable number: when the 5 is replaced by the # 30 in the #
5, it can not be written into # #30 instead of # [30].
(3) The variable value can not be exceeded the Max. command value for the each address. For
example, when #140=120, M#140 is then exceeded the top value (the M code should be less than
99).
(4) It can not be identified based upon the digit number, for example #30 =2, which is regarded
the F#30 is F2.
(5) —0 and + 0 can not be identified. Namely, in the case of the # 4 = - 0, the X#4 is regarded as
X0.
(6) When the variable is used as the address data, the whole round below the effective digit is
performed (Round off).
(7) The digit followed with the address also can be replaced by the <Format>, it is suppose that
the <Address>[<Address>] or <Address> - [<Format>] is regarded as the program, the value of the
<Format> or its supplementary number is regarded as the command value of the address.
For example:
X[ #24+ #18*COS[#1]]
Z-[#18+ #26]
Note: A constant number without a decimal point within the bracket is supposed a number point
at its end.
3.10.2.3 Undefined Variable
That the variable value does not define is called <Null>, variable #0 is always used the vacant
variable.
An undefined variable owns the some characters, which are shown below:
(1) The quote of the variable
Summary of Contents for GSK983Ma
Page 124: ......
Page 143: ......
Page 185: ......
Page 209: ...Chapter Four Operation 197 Part 2 Operation ...
Page 239: ...Chapter Four Operation 227 Part 2 Operation ...
Page 242: ......
Page 279: ......
Page 296: ...GSK983Ma Milling Machine Center CNC System User Manual 284 Part 2 Operation ...
Page 371: ...Appendix 11 USB Interface Parameter Transfer Operation ...