GSK980TDc Turning CNC System User Manual
146
Ⅰ
Progra
mming
Command format:
G67;
Command explanation:
cancel G66 modal macro program call
Application:
O2005(O2005) ;
G00 X100 Z50;
G66 P0100 L2 A2 B20 C20 I30 J20 K20; call P0100 two times when the system executes the block
G01 X80 Z50; call P0100 two times (update the local variable according to the argument) after 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.26 Statement Macro Command
3.26.1 Arithmetic and logic operation
Table 3-20 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).
Summary of Contents for GSK980TDc
Page 17: ...I Programming ...
Page 18: ...GSK980TDc Turning CNC System User Manual ...
Page 190: ...GSK980TDc Turning CNC System User Manual 172 Ⅰ Programming ...
Page 191: ...Ⅱ Operation Ⅱ Operation ...
Page 192: ...GSK980TDc Turning CNC System User Manua Ⅱ Operation ...
Page 326: ...GSK980TDc Turning CNC System User Manual 306 Ⅱ Operation ...
Page 327: ...Ⅲ Connection Ⅲ Connection ...
Page 328: ...GSK980TDc Turning CNC System User Manual Ⅲ Connection ...
Page 470: ...GSK980TDc Turning CNC System User Manual 448 Ⅲ Connection ...