EasyManua.ls Logo

Siemens M1 - Binary and Decimal Values in S-Registers

Siemens M1
76 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
63
GSM M1 Module, English: A24859-N4000-A100-1-7677
gsm-m1-e.fm
Technical reference section
6.3.96
Although you enter values for S-registers as decimal numbers, like all other values that
are stored in PCs they are stored in the registers in binary format:
The value of the register is obtained by adding together the values of all enabled bits.
In the example, all bits are enabled ("1") and the result is the number 255. Since all bits
can also be disabled ("0"), a total of 256 statuses can be stored in these 8 bit positions.
This means that more than one parameter can be stored in one register.
Example:
Decimal Binary
3 00000011
43 00101011
100 01100100
If a command applies only to bits 3, 4 and 5 of an S-registers, up to 8 different statuses
can be defined:
Binary and decimal values in S-registers
Bit # 7 6 5 43210
Binary 11111111
Decimal 128 64 32 16 8 4 2 1
Option Bit 5 Bit 4 Bit 3 Dec.
00000
10018
201016
301124
410032
510140
611048
711156

Table of Contents

Related product manuals