29
Division
#i = #j / #k
Sine
#i = SIN
【
#i
】
Specified in units of angle in degrees.
Arcsine
#i = ASIN
【
#j
】
(1) Specified in units of the angle in
degrees.
(2) The range of -90 to 90 degrees
Cosine
#i = COS
【
#i
】
Specified in units of angle in degrees.
Inverse
cosine
#i = ACOS
【
#i
】
(1) Specified in units of the angle in degrees.
(2) The range of 0 degrees to 180 degrees
Tangent
#i = TAN
【
#j
】
Specified in units of angle in degrees.
。
From the
BIN into BCD
#i = BCD
【
#j
】
12.3 Control Directive
12.3.1 Unconditional Transfer GOTO Statement
Format:
GOTO n
;
n: the serial number (1 to 99999)
Transferred to the serial number n statement.
12.3.2 Conditional Branch IF Statements
Instruction format 1:
IF [<conditional expression>] GOTOn
Conditional expression is specified in the IF. If the specified conditional expression is satisfied, the process
proceeds to sequence number n of the statement; If the conditional expression is not satisfied, the program
executes the next block.
Programming example
IF
【
#1 GT 10
】
GOTO 2
;
…
N2 G00 G91 X10.0
;
Instruction format 2:
IF [<conditional expression>] THEN
If the specified conditional expression is satisfied, a predetermined macro statement is executed. But only
execute a macro statement.
IF
【
#1 EQ #2
】
THEN #3=0
;
Table 12-3 macro operator
Operator
Meaning
EQ
Equals (=)
NE
Does not equal (
≠
)
GT
Greater than (>)
GE
Greater than or equal to (
≧
)
LT
Less than (<)
LE
Less than or equal to (
≦
)