Pulser3 Programming Manual
Download PDF
Division (a = b / c)
Divides the value of b by the value of c and loads the result into the specified variable.
Example:
(DIVIDES THE VALUE OF VARIABLE #1)
(BY 5 AND LOADS THE RESULT INTO #0)
G65 L5 P#0 Q#1 R5
(DIVIDES THE VALUE OF VARIABLE #1)
(BY THE VALUE OF VARIABLE #2 AND LOADS THE RESULT INTO #0)
G65 L5 P#0 Q#1 R#2
Example:
(DIVIDES THE VALUE OF VARIABLE #1)
(BY 5 AND LOADS THE RESULT INTO #0)
#0 = #1 / 5
(DIVIDES THE VALUE OF VARIABLE #1)
(BY THE VALUE OF VARIABLE #2 AND LOADS THE RESULT INTO #0)
#0 = #1 / #2
When the divisor value (c) is set to 0, <ALM79> a division by zero error occurs in Macro Commands.
