Siemens SINUMERIK Commissioning Manual page 376

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

Advertisement

Programming
2.3 Variables
The display mode of variables can be changed:
● For INTEGER, the display type can be changed.
● For REAL data types, only the number of places after the decimal point can be changed.
Number representation
Numbers can be represented in either binary, decimal, hexadecimal or exponential notation.
Numerical values in binary, hexadecimal and exponential notation must be enclosed in
single quotation marks:
Binary
decimal
hexadecimal
exponential
Examples:
Note
When codes are generated with the "GC" function, only numerical values in decimal or
exponential notation are evaluated, but not those in binary or hexadecimal notation.
2-26
B
Binary
D
Decimal signed
H
hexadecimal
unsigned
With the addition of U for Unsigned
Changing the type is illegal and generates an error message in the ERROR.COM file.
Example
Var1.typ = "IBW"
Var2.typ = "R3"
VAR1 = 'HF1A9'
REG[0]= 'B01110110'
DEF VAR7 = (R//'-1.23EX-3')
'B01110110'
123.45
'HF1A9'
'-1.23EX-3'
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
Expanding the user interface

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents