EasyManuals Logo

Siemens MCP 398C Commissioning Manual

Siemens MCP 398C
1734 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1109 background imageLoading...
Page #1109 background image
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

Table of Contents

Other manuals for Siemens MCP 398C

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens MCP 398C and is the answer not in the manual?

Siemens MCP 398C Specifications

General IconGeneral
BrandSiemens
ModelMCP 398C
CategoryControl Systems
LanguageEnglish

Related product manuals