Siemens SINUMERIK 840DE sl Commissioning Manual page 1109

Basesoftware and operating software
Hide thumbs Also See for SINUMERIK 840DE sl:
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 (BE2)
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1
(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
123

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents