Herunterladen Diese Seite drucken

Siemens SIMATIC S7-300 Betriebsanleitung Seite 98

Ladbarer treiber für punkt-zupunkt-cps: modbus-protokoll, rtu-format, s7 ist slave
Vorschau ausblenden Andere Handbücher für SIMATIC S7-300:

Werbung

Funktionscodes
9.8 Funktionscode 15 - Force Multiple Coils
Anforderungstelegramm FUNCTION 15:
05H
0FH
04H
80H
00H
0CH
02H
CDH
09H
xxH
xxH
Antworttelegramm FUNCTION 15:
05H
0FH
04H
80H
00H
0CH
xxH
xxH
Adress-Berechnung:
Die MODBUS-Adresse "coil_address" 0480 Hex (1152 dezimal) befindet sich im Bereich
"Merker":
Merkerbyte
Die verbleibende Rest-Bit_Nummer ergibt sich zu:
Rest-Bit_Nr.
Es erfolgt ein Zugriff auf Merker beginnend bei M 1144.0.
Weitere Beispiele
Weitere Zugriffs-Beispiele auf Merker und Ausgänge können bei FC 01 nachgesehen
werden.
98
Slave-Adresse ADDR
Funktionscode FUNC
start_address "High"
start_address "Low" (M 1144.0 ... )
quantity "High"
quantity "Low" (12 Bits)
bytecount
Zustand coil (M 1144.0 ... M 1144.7)
Zustand coil (M 1145.0 ... M 1145.3)
CRC-Prüfcode "Low"
CRC-Prüfcode "High"
Slave-Adresse ADDR
Funktionscode FUNC
start_address "High"
start_address "Low"
quantity "High"
quantity "Low"
CRC-Prüfcode "Low"
CRC-Prüfcode "High"
=
((start_address - aaaaa) / 8)
=
((1152
=
1144 ;
=
((start_address - aaaaa) % 8) [Modulo 8]
=
((1152
=
0 ;
Ladbarer Treiber für Punkt-zu-Punkt-CPs: MODBUS-Protokoll, RTU-Format, S7 ist Slave
+ uuuuu
- 0)
/ 8)
+ 1000
- 0)
% 8)
Betriebsanleitung, 09/2009, A5E00103172-06

Werbung

loading

Diese Anleitung auch für:

Simatic s7-400