Pulser3 Programming Manual Download PDF

Tangent (a = b * tan[c])

It calculates the tangent of the angle given as c in degrees, multiplies the result by b, and loads it into variable a. The value of c must be specified in 0.0000 format: 1 degree should be given as 10000, and 30 degrees as 300000.

 

Example:

(IT CALCULATES THE TANGENT OF 45 DEGREES, MULTIPLIES)

(THE RESULT BY 10000, AND LOADS IT INTO VARIABLE #0)

G65 L33 P#0 Q10000 R450000 (#0 WILL BE 10000)

(IT CALCULATES THE TANGENT OF THE ANGLE SPECIFIED BY #2)

(MULTIPLIES THE RESULT BY #1, AND LOADS IT INTO VARIABLE #0)

G65 L33 P#0 Q#1 R#2

 

Example:

(IT CALCULATES THE TANGENT OF 45 DEGREES, MULTIPLIES)

(THE RESULT BY 10000, AND LOADS IT INTO VARIABLE #0)

#0 = TAN[10000, 450000] (#0 WILL BE 10000)

(IT CALCULATES THE TANGENT OF THE ANGLE SPECIFIED BY #2)

(MULTIPLIES THE RESULT BY #1, AND LOADS IT INTO VARIABLE #0)

#0 = TAN[#1, #2]