Siemens SINUMERIK Commissioning Manual page 462

Sinumerik 840di sl/840d sl/840dbase software and hmi advanced
Hide thumbs Also See for SINUMERIK:
Table of Contents

Advertisement

Programming
2.8 Operators
Example
IF VAR1.VAL == 1
VAR2.VAL = TRUE
ENDIF
Conditions
The nesting depth is unlimited.
Condition with a command:
Condition with two commands:
2.8.2
Bit operators
Overview
Bit operators
BOR
BXOR
BAND
BNOT
SHL
SHR
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:
Description:
Parameters:
2-112
value
increment
variable =
SHL
Shift Left
value
value to be shifted
increment
number of shift increments
IF
...
ENDIF
IF
...
ELSE
...
ENDIF
Identifier
Bit-serial OR
Bit-serial XOR
Bit-serial AND
Bit-serial NOT
Shift bits to left
Shift bits to right
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
Expanding the user interface

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents