Herunterladen Inhalt Inhalt Diese Seite drucken

Writing N Words - ECOLAB Versatronic Modbus Beschreibung

Mehrkanalmessgerät
Inhaltsverzeichnis

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

Response
Slave address
1 byte
Example
This example describes how to write a command for the value "Binary value of external
binary input 1" of the device. In this case, the slave address of the device is 1, the word
address is 0x17E2 (
should be "1".
Hex code for the instruction:
01
Slave
Hex code for the response:
01
Slave
3.4.3

Writing n words

Instruction
Slave address Function 0x10
1 byte
1 byte
Response
Slave address
1 byte
Example
Writing the word 'North plant' (ASCII coding with terminating code:
0x41 0x6E 0x6C 0x61 0x67 0x65 0x20 0x4E 0x6F 0x72 0x64 0x00) from word address
0x1000 as device name.
Hex code for the instruction:
01
10
Slave
Function
Hex code for the response:
01
Slave
Function 0x06
Word address
1 byte
2 bytes
Ä Chapter 8.1.8 'Manual values' on page 51) and the word to write
06
17 E2
Function
Word address
06
17 E2
Function
Word address
Address of
Number of
first word
words x
2 bytes
2 bytes
Function 0x10
Address of first word Number of words x
1 byte
2 bytes
Ä Chapter 8.1.1 'Basic settings' on page 41
10 00
00 06
address 1st
Number of
word
words
10
10 00
Function
address 1st word
19
Modbus protocol description
Word value
Checksum CRC
2 bytes
2 bytes
00 01
ED 88
Value
CRC
00 01
ED 88
Value
CRC
Number of
x word
bytes 2 x
value(s)
1 byte
2 x bytes
Checksum CRC
2 bytes
2 bytes
41 6E 6C 61
0C
67 65 20 4E
6F 72 64 00
Number of
Text in UTF-8
bytes
encoding
00 06
44 CB
Number of words
CRC
417102397 Rev. 1-10.2019
Checksum
CRC
2 bytes
DD 7D
CRC

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis