GSK980MDc Milling CNC System User Manual
146
I Programming
G65 H04 P#I Q#J R#K
;
(example) G65 H04 P#101 Q#102 R#103
;
(#101
=
#102 × #103)
(5) 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)
Note: The divisor #k cannot be 0, otherwise an alarm occurs.
(6) OR operation #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) AND operation #I
=
#J AND #K
G65 H12 P#I Q#J R#K
;
(example) G65 H12 P#101 Q#102 R#103
;
(#101
=
#102 AND #103)
(8) XOR operation #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) Square root
# I
# J
=
G65 H21 P#I Q#J
;
(example) G65 H21 P#101 Q#102
;
(#101
=
#102
)
Note: the radicand #J cannot be negative, otherwise, an alarm occurs.
(10) Absolute value #I
=
#J
┃
┃
G65 H22 P#I Q#J
;
(example) G65 H22 P#101 Q-102
;
(#101
=
┃
-102 #101= 102)
┃
(11) Rounding off #I
=
ROUND[#J]
(
ROUND off the first decimal
)
G65 H23 P#I Q#J
;
(example) G65 H23 P#101 Q1.2359
;
(#101
=
1.2359 #101=1)
(12) Rounding up #I
=
FUP[#J]
G65 H24 P#I Q#J
;
(13) Rounding down #I
=
FIX [#J]
G65 H25 P#I Q#J
;
With CNC, when the absolute value of the integer produced by an operation on a number is greater
than the absolute value of the original number, such an operation is referred to as rounding up to an
integer. Conversely, when the absolute value of the integer produced by an operation on a number is less
than the absolute value of the original number, such an operation is referred to as rounding down to an
integer. Be particular careful when handling negative numbers.
(Example) suppose that #1=1.2,#2= -1.2
When
#3=FUP[#1]
is
executed, 2.0 is assigned to #3
When
#3=FIX[#1]
is
executed, 1.0 is assigned to #3
When
#3=FUP[#2]
is
executed, -2.0 is assigned to #3
When
#3=FIX[#2]
is
executed, -1.0 is assigned to #3
(14) Natural logarithm #I
=
LN [#J]
G65 H26 P#I Q#J
;
(example) G65 H26 P#101 Q#102
;(
#101
=
LN[#102]
)
Note: when the antilogarithm #j is zero or smaller, otherwise, an alarm is issued.
(15) Exponential function #I
=
EXP[#J]
Содержание 980MDc
Страница 19: ...GSK980MDc Milling CNC User Manual XVIII ...
Страница 20: ...1 I Programming Programming Ⅰ ...
Страница 21: ...GSK980MDc Milling CNC System User Manual 2 I Programming ...
Страница 139: ...GSK980MDc Milling CNC System User Manual 120 I Programming ...
Страница 191: ...GSK980MDc Milling CNC System User Manual 172 I Programming ...
Страница 192: ...173 Ⅱ Operation Ⅱ Operation ...
Страница 193: ...GSK980MDc Milling CNC System User Manual 174 Ⅱ Operation ...
Страница 200: ...Chapter 1 Operation Mode and Display 181 Ⅱ Operation ...
Страница 201: ...GSK980MDc Milling CNC System User Manual 182 Ⅱ Operation ...
Страница 249: ...GSK980MDc Milling CNC System User Manual 230 Ⅱ Operation ...
Страница 253: ...GSK980MDc Milling CNC System User Manual 234 Ⅱ Operation ...
Страница 259: ...GSK980MDc Milling CNC System User Manual 240 Ⅱ Operation ...
Страница 265: ...GSK980MDc Milling CNC System User Manual 246 Ⅱ Operation ...
Страница 293: ...GSK980MDc Milling CNC System User Manual 274 Ⅱ Operation ...
Страница 295: ...GSK980MDc Milling CNC System User Manual 276 Ⅱ Operation ...
Страница 319: ...GSK980MDc Milling CNC System User Manual 300 Ⅱ Operation ...
Страница 320: ...301 Ⅲ Installation Ⅲ Installation ...
Страница 321: ...GSK980MDc Milling CNC System User Manual 302 Ⅲ Installation ...
Страница 345: ...GSK980MDc Milling CNC System User Manual 326 Ⅲ Installation ...
Страница 391: ...GSK980MDc Milling CNC System User Manual 372 Ⅲ Installation ...
Страница 392: ...Appendix 373 Appendix Appendix ...
Страница 393: ...GSK980MDc Milling CNC System User Manual 374 Appendix ...
Страница 394: ...Appendix 375 Appendix Appendix 1 Outline Dimension of GSK980MDc L N ...