Pulser3 Programming Manual Download PDF

Sine (a = b * sin[c])

It calculates the sine 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 SINE OF 30 DEGREES, MULTIPLIES)

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

G65 L31 P#0 Q10000 R300000 (#0 WILL BE 5000)

(IT CALCULATES THE SİNE OF THE ANGLE SPECİFİED BY #2)

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

G65 L31 P#0 Q#1 R#2

 

Example:

(IT CALCULATES THE SINE OF 30 DEGREES, MULTIPLIES)

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

#0 = SIN[10000, 300000] (#0 WILL BE 5000)

(IT CALCULATES THE SİNE OF THE ANGLE SPECİFİED BY #2)

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

           #0 = SIN[#1, #2]