Siemens SIMATIC TI505 Bedienungsanleitung Seite 66

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 91
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 65
Modbus Commands
2-35
SIMATIC TI505/TI500 MODNIM User Manual
Code
16 allows the host computer to write multiple values into successive
registers. Addressing is sequential up to the maximum memory size for a
particular PLC. The maximum number of registers that can be addressed
with one command is 100. If more are given, the whole command will be
rejected with an Exception code 03.
[This command is equivalent to a TIW
A
Y I request using Primitive 30 with
TT
-type 01 (V
ariable memory)].
Because
of differences in memory mapping between Modbus PLCs
and SIMA
TIC TI PLCs, you should be quite certain of the effects of
the broadcast command before issuing it.
Example:
02 10 0078 0002 04 000B 0201 XXXX
Checksum (XXXX)
2nd register data (0201)
1st register data (000B)
Number of bytes (04)
Number of registers (0002)
Start register address (0078)
Function code 16 (10 hex)
Slave address (02)
Request:
Figure 2-30 Write
Multiple Registers Example — Request
This request to the secondary node is to change the values of 2 holding
registers, starting at address 0078 (120 decimal) to 1
1 and 513 respectively
.
Response: 02 10 0078 0002 XXXX
Checksum (XXXX)
Number of registers (0002)
Start register address (0078)
Function code 16 (10 hex)
Slave address (02)
Figure 2-31 Write
Multiple Registers Example — Response
The response to this command is to return the address, code, starting
address, and the numbers of registers to be changed.
Code 16 — W
rite
Multiple Registers
WARNING
!
Seitenansicht 65
1 2 ... 61 62 63 64 65 66 67 68 69 70 71 ... 90 91

Kommentare zu diesen Handbüchern

Keine Kommentare