Modbus: Data Types - Samson Control EC-L Manuel D'installation Et Mise En Service

Masquer les pouces Voir aussi pour Control EC-L:
Table des Matières

Publicité

Les langues disponibles
  • FR

Les langues disponibles

  • FRANÇAIS, page 1
APPENDIX

12.4. ModBus: Data types

ModBus: Data types
Data type
Description
INT16
Integers in the range from -32768 to 32767. Actually used number range for a data point may be different.
UINT16
Unsigned integers in the range from 0 to 65535. Actually used number range for a data point may be different.
Enum
Is a list. Only values listed in the parameters can be set.
Boolean value is a parameter with exactly two states (0 – false and 1 – true). Generally, all values greater than
BOOL
zero are classified as true.
Is a union of 16 boolean values (bits). Values are indexed from 0 to 15. The number read from or written to the
register is the sum of all bits with value 1 multiplied by 2 to the power of index.
• Bit 0: 2
=1
0
• Bit 1: 2
=2
1
• Bit 2: 2
=4
2
• Bit 3: 2
=8
3
• Bit 4: 2
=16
4
• Bit 5: 2
=32
5
• Bit 6: 2
=64
6
Bitmap *
• Bit 7: 2
=128
7
• Bit 8: 2
=256
8
• Bit 9: 2
=512
9
• Bit 10: 2
=1024
10
• Bit 11: 2
=2048
11
• Bit 12: 2
=4096
12
• Bit 13: 2
=8192
13
• Bit 14: 2
=16384
14
• Bit 15: 2
=32768
15
all 0.
Bitmap32
Is a union of 32 boolean values (bits). The calculation details can be found in the description for Bitmap.
* Example for clarification:
Bit 3, 6, 8, 15 are 1 all others are 0. The sum is then 2
The other way round is also possible. Based on the bit with the highest index, check whether the read number is
greater than/equal to the power of two. If this is the case, bit 1 is set and the power of two is deducted from the
number. Then the check with the bit with the next lower index and the recently calculated residual number is
repeated until 0 is obtained for bit or the residual number is zero.
Example for clarification: The read number is 1416. Bit 15 will be 0, since 1416<32768. Bit 14 to 11 will also be 0.
Bit 10 will be 1, since 1416>1024. Residual number will be 1416-1024=392. Bit 9 will be 0, since 392<512. Bit 8 will
be 1 since 392>256. Residual number will be 392-256=136. Bit 7 will be 1 since 136>128. Residual number will be
136-128=8. Bit 6 to 4 will be 0. Bit 3 will be 1 since 8=8. Residual number will be 0. Residual bits will thus be 2 to 0.
Installation and operating instructions Salmson-Control EC-L
+2
+2
+2
= 8+64+256+32768 = 33096.
3
6
8
15
English
63

Publicité

Table des Matières
loading

Table des Matières