-Shenzhen Guanhong Automation Co.,Ltd.-
SZGH-CNC1000MDb Series
- 92 -
Example: #100=2 #150=5 #200=25
WHILE
(
#100 LT 3
)
DO 1
G00 X100
WHILE
(
#150 EQ 5
)
DO 2
G00 Y100
WHILE
(
#200 GE 20
)
DO 3
G00 Z100
#200=#200-2
END 3
#150=#150-1
END 2
#100=#100-1
END 1
3.30.4 Operators’ meaning
Operator
Sign
Ex.
Operator
Sign
Ex.
Operator
Sign
Ex.
EQ
=
equal
GT
>
greater
LT
<
Less
NE
≠
unequal
GE
≥
G&E
LE
≤
L&E
3.30.5 Arithmetic & Logic Operation
Table:
Function
Format
Attention
Definition
#i = #j
Addition
Subtraction
Multiplication
Division
#i = #j + #k ;
#i = #j - #k ;
#i = #j * #k ;
#i = #j / #k ;
Sin
Asin
Cos
Acos
Tan
Atan
#i = SIN(#j) ;
#i = ASIN(#j);
#i = COS(#j) ;
#i = ACOS(#j);
#i = TAN(#j);
#i = ATAN(#j);
90.5 degrees means 90
degrees & 30 points
Square root
Absolute value
Rounding off
Round down
Round up
Natural logarithm
Exponential function
#i = SQRT(#j);
#i = ABS(#j) ;
#i= ROUND(#j);
#i = FIX(#j);
#i = FUP(#j);
#i = LN(#j);
#i = EXP(#j);
Or
Exclusive or
And
#i = #j OR #k ;
#i = #j XOR #k ;
#i = #j AND #k ;
Executing
with
binary
system
3.30.6 Local Variable
#0--#20 : local variables only can be used to store data in macro program, such as a result of
operation, when power is off, the local variables are initialized to the empty. The argument
Содержание SZGH-CNC1000MDb Series
Страница 220: ...Shenzhen Guanhong Automation Co Ltd SZGH CNC1000MDb Series 207 Appendix I Wiring Diagram of CN3 Plug...
Страница 221: ...Shenzhen Guanhong Automation Co Ltd SZGH CNC1000MDb Series 208 Appendix II Wiring Diagram of CN10 Plug...
Страница 222: ...Shenzhen Guanhong Automation Co Ltd SZGH CNC1000MDb Series 209 Appendix III Wiring Diagram of CN4 Plug...