EasyManuals Logo

Siemens SINUMERIK 810D Programming Guide

Siemens SINUMERIK 810D
598 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 #44 background imageLoading...
Page #44 background image
1
Flexible NC Programming 04.00
1.8 Priorit
y
of o
p
erators
1
840D
NCU 571
840D
NCU 572
NCU 573
FM-NC 810D 840Di
ï›™
Siemens AG 2000. All rights reserved
1-44
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA)
−
04.00 Edition
1.8 Priority of operators
Priority of operators
Each operator is assigned a priority. When an
expression is evaluated, the operators with the
highest priority are always applied first. Where
operators have the same priority, the evaluation is
from left to right.
Parentheses can be used in arithmetic expressions
to define the order of execution for all operators and
thus to override the normal priority rules.
Sequence of operators
(highest to lowest)
1.
NOT, B_NOT
Negation, bit negation
2.
*, /, DIV, MOD
Multiplication, division
3.
+, –
Addition, subtraction
4.
B_AND
Bit AND
5.
B_XOR
Bit exclusive OR
6.
B_OR
Bit OR
7.
AND
AND
8.
XOR
Exclusive OR
9.
OR
OR
10.
<<
Chaining of strings, result type STRING
11.
==, <>, >, <, >=, <=
Comparison operators
Example for IF statement:
If (otto==10) and (anna==20) gotof end
The chain operator ":" for frames may not appear
with other operators in an expression. A priority level
is thus not required for this operator.

Table of Contents

Other manuals for Siemens SINUMERIK 810D

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 810D and is the answer not in the manual?

Siemens SINUMERIK 810D Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 810D
CategoryControl Unit
LanguageEnglish

Related product manuals