EasyManuals Logo
Home>Siemens>Control Unit>SINUMERIK

Siemens SINUMERIK Commissioning Manual

Siemens SINUMERIK
736 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 #462 background imageLoading...
Page #462 background image
Programming
2.8 Operators
Expanding the user interface
2-112 Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
Example
IF VAR1.VAL == 1
VAR2.VAL = TRUE
ENDIF
Conditions
The nesting depth is unlimited.
Condition with a command:
IF
...
ENDIF
Condition with two commands:
IF
...
ELSE
...
ENDIF
2.8.2 Bit operators
Overview
Bit operators Identifier
BOR Bit-serial OR
BXOR Bit-serial XOR
BAND Bit-serial AND
BNOT Bit-serial NOT
SHL Shift bits to left
SHR Shift bits to right
SHL operator
Bits are shifted to the left using the SHL (SHIFT LEFT) operator. You can specify both the
value to be shifted and the number of shift increments directly or via a variable. If the limit of
the data format is reached, the bits are shifted beyond the limit without displaying an error
message.
Use
Syntax: variable =
value
SHL
increment
Description: Shift Left
Parameters: value value to be shifted
increment number of shift increments

Table of Contents

Other manuals for Siemens SINUMERIK

Questions and Answers:

Question and Answer IconNeed help?

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

Siemens SINUMERIK Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK
CategoryControl Unit
LanguageEnglish

Related product manuals