Siemens NAN 67 Series Bedienungsanleitung Seite 25

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 76
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 24
Modbus RTU Function Codes
02/13 Modbus® RTU Serial Communications User Manual 19
3.5 Function Codes 06 – Preset Single Register
Description
Presets an integer value into a single register (4X references). When broadcasted, the function presets the
same register references in all attached slaves.
The specific supported registers available in an instrument via a Function Code 06 message may be
instrument-model specific. However, every instrument that supports the register assignments specified in
Appendix A with an access type “W” and integer and bit packed data types, supports writing to those
specified registers via Function Code 06.
Query
The query message specifies the register references to be preset. Registers are addressed starting at zero:
Register 1 is addressed as 0.
Query message format for function code 06
Slave
Address
Function
Code
Address
High
Address
Low
Preset
Data
High
Preset
Data
Low
CRC CRC
Example:
Set Loop #1 to Auto (address 00Fah) to a slave at address 02.
02 06 00 FA 00 01 CRC CRC
Response
The normal response is an echo of the query returned after the register contents have been preset.
Response message format for function code 06
Slave
Address
Function
Code
Address
High
Address
Low
Preset
Data
High
Preset
Data
Low
CRC CRC
Example:
Set Loop #1 to Auto (address 00Fah) to a slave at address 02.
02 06 00 FA 00 01 CRC CRC
Seitenansicht 24
1 2 ... 20 21 22 23 24 25 26 27 28 29 30 ... 75 76

Kommentare zu diesen Handbüchern

Keine Kommentare