Metz Connect MR-TO4 Скачать руководство пользователя страница 3

BTR NETCOM GmbH

Im Tal 2
78176 Blumberg
Germany

Phone +49 7702 533-0
Fax     +49 7702 533-189

Mounting instruction see
www.metz-connect.com

Fortsetzung Beschreibung der Software

9.3 Allgemeine Kommandos

“08 (0x08) Diagnostics”

Subfunction “0 ( 0x0000) Return Query Data”

    Data Field Any
    Response: Echo of Request

Subfunction “1 (0x0001) Restart Communication Option”

    Data Field 0x0000 oder 0xFF00
    Response: Echo of Request
    Action: Clears all Error Counters, Restarts node

Subfunction “4 (0x0004) Force Listen Only Mode”

    Data Field 0x0000
    No Response
    Action: No response until Node Reset or Function Code 08

    Subcode 01

Subfunction “10 ( 0x000A) Clear Counters”

    Data Field 0x0000
    Response: Echo of Request
    Action: Clears all Error Counters

Subfunction “11 ( 0x000B) Return Bus Message Count”

    Data Field 0x0000
    Response: Quantity of messages that the remote device has

    detected on the communications system since its last restart,

    clear counters operation, or power-up.

Subfunction “12 ( 0x000C) Return Bus Communication Error Count”

    Data Field 0x0000
    Response: Quantity of errors encountered by the remote

     device since its last restart, clear counters operation,

     or power-up. (CRC, Length <3, Parity, Framing)

Subfunction “13 ( 0x000D) Return Bus Exception Error Count”

    Data Field 0x0000
    Response: Quantity of MODBUS exception responses returned

    by the remote device since its last restart, clear counters

    operation, or power-up.

Subfunction “14 (0x000E) Return Slave Message Count”

    Data Field 0x0000
    Response: quantity of messages addressed to the remote

    device, or broadcast, that the remote device has processed

    since its last restart, clear counters operation, or power-up.

Subfunction “15 (0x000F) Return Slave No Response Count”

    Data Field 0x0000
    Response: Quantity of messages addressed to the remote

    device for which it has returned no response (neither a normal

    response nor an exception response), since its last restart, clear

    counters operation, or power-up.

Fortsetzung Beschreibung der Software

9.2 Bitrate einstellen über Modbus-Kommando

Parität und Bitrate haben die gleichen Werte wie bei der

Einstellung über die Adressschalter.
Wenn Parity oder Baud 0 ist, erfolgt keine Einstellung und

Speicherung.
Der Registerinhalt wird im EEPROM gespeichert.

“06 (0x06) Write Single Register”

Request

    Valid Register Address          0x41 (65)
    Valid Register Value             2 Bytes

    Bit 15-8: Magic-Number 0x53 = 83 zum Schutz vor versehent-

    

lichem Schreiben. Nur mit dieser Nummer wird das

    

Kommando weiter ausgewertet.

Response

    Echo of Request

Beispiel für einen Frame:

    Slave-Adresse               0x12     Drehschalter-Einstellung (18)
    Funktion                       0x06     Write Single Register
    Register-Adresse Hi      0x00
    Register-Adresse Lo      0x41     Bitrate und Parität (65)
    Register-Inhalt Hi         0x53     Magic-Number
    Register-Inhalt Lo         0x15     Parity Even, 19200 Baud

Alle Geräte können mit einem Broadcast-Kommando ( Slave-

Adresse 0x00 ) gleichzeitig umgeschaltet werden. Davon wird aber

abgeraten, weil es zu Problemen führen kann:

    - Geräte von anderen Herstellern haben an dieser Adresse

     eventuell ein Register für einen anderen Zweck, das dann

     falsch bedient wird.
    - Es gibt keine Rückmeldung von den einzelnen Geräten. Die

     Steuerung kann also nicht sofort erkennen, ob das

     Kommando richtig angekommen ist.

Sicherer ist es, jedes Gerät einzeln anzusprechen und umzuschal-

ten. Das Gerät antwortet dann noch mit der alten Einstellung von

Parität und Bitrate. Erst danach wird umgeschaltet. Die Antwort

kann bei gestörtem Bus allerdings verloren gehen.
Nach dem Umschalten aller Geräte sollte die Kommunikation über-

prüft werden. Dazu ist jede Funktion der Geräte geeignet, die eine

Rückmeldung liefert. Wenn dafür eine einheitliche Funktion ver-

wendet werden soll, die unabhängig von der Prozess-Peripherie

ist, eignet sich die Funktion "Diagnostic", Subfunktion "Return

Query Data", die die gesendeten Daten zurück schickt.
Wenn bei einem Gerät nicht bekannt ist, welche Bitrate und

Parität eingestellt ist, kann man es nacheinander mit allen

Kombinationen von Bitrate und Parität ansprechen, bis es antwor-

tet. Die wahrscheinlichsten Kombinationen sollten dabei zuerst

probiert werden. Die niedrigeren Bitraten sollten zuletzt probiert
werden, weil sie länger dauern.

15 14 13 12 11 10 9

8

7

6

5

4

3

2

1

0

0x53

Parität

Bitrate

Bit 3-0

1

2

3

4

5

6

7

8

Bitrate 1200 2400 4800 9600 19200 38400 57600 115200

Bit 7-4

1

2

3

Parität even odd none

Fortsetzung Beschreibung der Software

“43 /14 (0x2B / 0x0E) Read Device Identification”

Request

    Read Device ID code:            0x01
    Object ID                              0x00

Response

    Device ID code                     0x01
    Conformity level                   0x01
    More follows                        0x00
    Next object ID                      0x00
    Number of objects               0x03
    Object ID                              0x00
    Object Length                      0x03
    Object Value                         “BTR”
    Object ID                              0x01
    Object Length                      0x06
    Object Value                         “MR-TO4”
    Object ID                              0x02
    Object Length                      0x04
    Object Value                         “V1.0”

Содержание MR-TO4

Страница 1: ...Übertragungsrate 1200 bis 115200 Bd Werkseinstellung 19200 Bd Even Verkabelung RS485 Zweidrahtbus mit Potential ausgleich in Bus Linientopologie Versorgung Betriebsspannungsbereich 20 28 V AC DC SELV Stromaufnahme 100 mA AC 40 mA DC Einschaltdauer relativ 100 Ausangsseite Schaltspannung 24 V AC bis max 250 V AC Dauerstrom 0 5 A Triac Schaltstrom 30 s 0 8 A Einschaltstrom 20 ms 10 A Gehäuse Abmessu...

Страница 2: ... Address 0 7 Valid Quantity of Outputs 1 8 Response Byte Count 1 Output Status Bit0 Bit7 Bit Information 0 0 Status relay 1 off 1 Status relay 1 on 1 0 Status relay 2 off 1 Status relay 2 on 2 0 Status relay 3 off 1 Status relay 3 on 3 0 Status relay 4 off 1 Status relay 4 on 4 0 relay 1 switched via bus 1 relay 1 switched via manual control 5 0 relay 2 switched via bus 1 relay 2 switched via manu...

Страница 3: ...lid Register Address 0x41 65 Valid Register Value 2 Bytes Bit 15 8 Magic Number 0x53 83 zum Schutz vor versehent lichem Schreiben Nur mit dieser Nummer wird das Kommando weiter ausgewertet Response Echo of Request Beispiel für einen Frame Slave Adresse 0x12 Drehschalter Einstellung 18 Funktion 0x06 Write Single Register Register Adresse Hi 0x00 Register Adresse Lo 0x41 Bitrate und Parität 65 Regis...

Страница 4: ...0 28 V AC DC SELV Current consumption 100 mA AC 40 mA DC Relative duty cycle 100 Output Switching voltage 24 V AC to max 250 V AC Continuous current max 0 5 A Triac Switching current 30 s 0 8 A Making current 20 ms 10 A Housing Dimensions WxHxD 1 4 x 2 8 x 3 0 in 50 x 70 x 75 mm Weight 95 g Mounting position any Mounting standard rail TH35 per IEC 60715 Mounting in series the maximum quantity of m...

Страница 5: ...ve the front cover of the module 2 plug a jumper to the two middle pins of the 4 pole header between the red and green LED Á 3 set the desired parity and bit rate with the address switches  in accordance to the chart below 4 switch on the supply voltage of the module it is now perma nently saving the bit rate in an EEPROM 5 switch off the supply voltage of the module 6 remove the jumper from the ...

Страница 6: ...he EEPROM 06 0x06 Write Single Register Request Valid Register Address 0x41 65 Valid Register Value 2 Bytes Bit 15 8 Magic Number 0x53 83 as protection against accidental writing The command will be further analysed only with this number Response Echo of Request Example for a frame Slave address 0x12 Setting of rotary switch 18 Function 0x06 Write Single Register Register address Hi 0x00 Register ...

Отзывы: