Random function: Random number
Syntax: RANDOM
(lower limit value, upper limit value)
Description: The RANDOM function returns a pseudo random number in a specified range.
Parameters: Lower limit value Lower limit value >= -32767,
Lower limit value < upper limit value
Upper limit value Upper limit value <= 32767
Example
REG[0] = RANDOM(-10,10) ; Possible result = -3
Constants
Constants
PI 3.14159265358979323846
FALSE 0
TRUE 1
Example:
VAR1.VAL = PI
Comparison operators
Comparison operators
== Equal to
<> Not equal to
> Greater than
< Less than
>= Greater than or equal to
<= Less than or equal to
Example:
IF VAR1.VAL == 1
VAR2.VAL = TRUE
ENDIF
Programming commands
6.1 Operators
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1 123