Official GSK Agents in South Africa
Tel: +27 11 626 2720, [email protected]
GSK980TDi Turning CNC System User Manual
172
Ⅰ
Programming
2) Decimal add operation: # I = # J+# K
G65 H02 P#I Q#J R#K
(Example) G65 H02 P#101 Q#102 R15; (#101 = #102+15)
3) Decimal subtract operation: # I = # J
-
# K
G65 H03 P#I Q#J R# K
(Example) G65 H03 P#101 Q#102 R#103; (#101 = #102
-
#103)
4) Decimal multiplication operation: # I = # J×# K
G65 H04 P#I Q#J R#K
(Example) G65 H04 P#101 Q#102 R#103; (#101 = #102×#103)
5) Decimal division operation: # I = # J÷# K
G65 H05 P#I Q#J R#K
(Example) G65 H05 P#101 Q#102 R#103; (#101 = #102÷#103)
6) Binary logic add(or) : # I = # J.OR. # K
G65 H11 P#I Q#J R#K
(Example) G65 H11 P#101 Q#102 R#103; (#101 = #102.OR. #103)
7) Binary logic multiply(and) : # I = # J.AND. # K
G65 H12 P#I Q#J R#K
(Example ) G65 H12 P# 201 Q#102 R#103; (#101 = #102.AND.#103)
8) Binary executive or: # I = # J.XOR. # K
G65 H13 P#I Q#J R#K
(Example) G65 H13 P#101 Q#102 R#103; (#101 = #102.XOR. #103)
9) Decimal square root: # I =
J
#
G65 H21 P#I Q#J
(Example) G65 H21 P#101 Q#102 ; (
102
#
#101
=
)
10) Decimal absolute value: # I = | # J |
G65 H22 P#I Q#J
(Example) G65 H22 P#101 Q#102 ; (#101 = | #102 |)
11) Decimal remainder: # I = # J
-
TRUNC(#J/#K)×# K,TRUNC: Omit decimal fraction
G65 H23 P#I Q#J R#K
(Example) G65 H23 P#101 Q#102 R#103; (#101 = #102- TRUNC (#102/#103)×#103
12) Decimal converting into binary: # I = BIN (# J)
G65 H24 P#I Q#J
(Example) G65 H24 P#101 Q#102 ; (#101 = BIN(#102) )
13) Binary converting into decimal: # I = BCD (# J)
G65 H25 P#I Q#J
(Example) G65 H25 P#101 Q#102 ; (#101 = BCD(#102) )
14) Decimal multiplication/division operation: # I =(# I×# J) ÷# K
G65 H26 P#I Q#J R# k
(Example) G65 H26 P#101 Q#102 R#103; (#101 =(# 101×# 102) ÷#103)
15) Compound square root: # I =
2
#
#
K
J
2
+
G65 H27 P#I Q#J R#K
(Example) G65 H27 P#101 Q#102 R#103; (#101 =
2
2
103
#
102
#
+
)
16) Sine: # I = # J•SIN(# K) (Unit: ‰)
G65 H31 P#I Q#J R#K
(Example) G65 H31 P#101 Q#102 R#103; (#101 = #102•SIN(#103) )