Siemens SINUMERIK 828D Commissioning Manual page 1023

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents