![GSK 980TDi User Manual Download Page 192](http://html1.mh-extra.com/html/gsk/980tdi/980tdi_user-manual_2275219192.webp)
Official GSK Agents in South Africa
Tel: +27 11 626 2720, [email protected]
GSK980TDi Turning CNC System User Manual
176
Ⅰ
Programming
the system has executed the block
G67;
cancel G66 modal call
G01 X20 Z50; the system does not call P0100 after it executes the block
M30
;
3.28 Statement Macro Command
3.28.1 Arithmetic & Logic Operation
Arithmetic and logic operation
Function
Expression format
Remark
Definition or assignment #i = #j
addition
subtraction
multiplication
division
#i = #j + #k
#i = #j - #k
#i = #j * #k
#i = #j / #k
Or
And
Exclusive Or
#i = #j OR #k
#i = #j AND #K
#i = #j XOR #K
Logic operation is executed by
the binary system
Square root
Absolute value
Rounding-off
FUP
FIX
Natural logarithm
Exponential function
#i = SQRT[#j]
#i = ABS[#j]
#i = ROUND[#j]
#i = FUP [#j]
#i = FIX [#j]
#i = LN[#j]
#i = EXP[#j]
Sine
Arc sine
Cosine
Arc cosine
Tangent
Arc tangent
#i = SIN[#j]
#i = ASIN[#j]
#i = COS[#j]
#i = ACOS[#j]
#i = TAN[#j]
#i = ATAN[#i]/ [#j]
Angle unit is specified by
degree. For example: 90°30’
is expressed by 90.5°
BCD to BIN
BIN to BCD
#i = BIN[#j]
#i = BCD[#j]
Used for switching with PMC
Relative explanation:
1. Angle unit
Angle units of SIN, COS, ASIN, ACOS, TAN and ATAN are degree (°). For example:
90°30 means to be 90.5
ˊ
° (degree).
2. Arc sine # i=ASIN[#j]
i. result output range:
No.180#7 NAT is set to 1: 90°~ 270°;
No.180#7 NAT is set to 0: -90°~ 90°;
ii. when #j exceeds the range from -1 to 1, the system alarms P/S.
iii. the constant replaces the variables #j.
3. Arccosine # i =ACOS[#j]
i. Result output range 180°~ 0°.