Opened 13 years ago

Closed 13 years ago

#150 closed Aufgabe (fixed)

Modbus kompatibel zu ERG2000NG

Reported by: Melanie Hermann Owned by: Melanie Hermann
Priority: kurzfristig Milestone:
Component: Protokolle Version:
Severity: Verbesserung Keywords:
Cc:

Description

Modbus kompatibel zu ERZ2000NG implementieren.

Passt sich ERZ an GC an?
Oder passt sich GC an ERZ an?

Attachments (3)

Test_Byteorder.xls (66.0 KB ) - added by Melanie Hermann 13 years ago.
Test_Byteorder.2.xls (75.0 KB ) - added by Melanie Hermann 13 years ago.
Com-ASCII auch erfolgreich getestet
Test_Byteorder.3.xls (88.0 KB ) - added by Melanie Hermann 13 years ago.
RMGViewGC getestet

Download all attachments as: .zip

Change History (9)

comment:1 by Melanie Hermann, 13 years ago

Priority: mittelfristigkurzfristig

TODO:

  • Modbus(reihenfolge) aus ERZ in GC übernehmen
  • Bytereihenfolge auswählbar machen
  • Dieses als RMG-Standard definieren
  • MB-Tester um RMG-Standard erweitern
Version 0, edited 13 years ago by Melanie Hermann (next)

comment:2 by Melanie Hermann, 13 years ago

DONE:

  • Neue Matrixelemente zur Auswahl der Byteorder angelegt
  • Zugehörige Element-Funktionen angelegt, alle rufen SetMbVars() auf
  • Klasse CModbusSlave hat neue Member erhalten:
     enum eByteOrder
     {
        eRMGSTDORD,	// Bytereihenfolge wie ERZ (wird als RMG-Standard definiert)
        eGC9300ORD,	
     } m_modbusByteOrder;
    
  • Folgende Funktionen haben Unterscheidung erhalten:
    • Long_ToModbus()
    • Float_ToModbus()
    • Double_ToModbus()
    • String_ToModbus()
    • Long_FromModbus()
    • Float_FromModbus()
    • Double_FromModbus()
    • String_FromModbus()
  • ModbusTester angepasst (RMG-Standard eingebaut) und Tests damit durchgeführt
  • Hilfedateien für die neuen Matrixelemente erstellt
  • Fehler bez. Telegrammprüfung (Rx Com-ASCII) aus ModbusTester entfernt
  • Com-ASCII mit ModbusTester geprüft
  • RMGViewGC getestet
Last edited 13 years ago by Melanie Hermann (previous) (diff)

comment:3 by Melanie Hermann, 13 years ago

Nur Info...

Alle Funktionen, die Daten auf den Modbus ausgeben:

  • CModbusSlave::Colon_ToModbus()
  • CModbusSlave::Byte_ToModbus()
  • CModbusSlave::Int_ToModbus()
  • CModbusSlave::Long_ToModbus()
  • CModbusSlave::Float_ToModbus()
  • CModbusSlave::Double_ToModbus()
  • CModbusSlave::String_ToModbus()
  • CModbusSlave::CrLf_ToModbus()


Alle Funktionen, die Daten vom Modbus empfangen:

  • CModbusSlave::Int_FromModbus()
  • CModbusSlave::Long_FromModbus()
  • CModbusSlave::Float_FromModbus()
  • CModbusSlave::Double_FromModbus()
  • CModbusSlave::String_FromModbus()

comment:4 by Melanie Hermann, 13 years ago

GC:

short 2.Byte, 1.Byte
long 2.Byte, 1.Byte, 4.Byte, 3.Byte
float 2.Byte, 1.Byte, 4.Byte, 3.Byte
time 2.Byte, 1.Byte, 4.Byte, 3.Byte
double 2.Byte, 1.Byte, 4.Byte, 3.Byte, 6.Byte, 5.Byte, 8.Byte, 7.Byte
ASCII 2.Byte, 1.Byte, 4.Byte, 3.Byte, 6.Byte, 5.Byte, 8.Byte, 7.Byte, 10.Byte, 9.Byte, 12.Byte, 11.Byte, 14.Byte, 13.Byte, 16.Byte, 15.Byte, 18.Byte, 17.Byte, 20.Byte, 19.Byte
UNICODE 2.Byte, 1.Byte, 4.Byte, 3.Byte, 6.Byte, 5.Byte, 8.Byte, 7.Byte, 10.Byte, 9.Byte, 12.Byte, 11.Byte, 14.Byte, 13.Byte, 16.Byte, 15.Byte, 18.Byte, 17.Byte, 20.Byte, 19.Byte 22.Byte, 21.Byte, 24.Byte, 23.Byte, 26.Byte, 25.Byte, 28.Byte, 27.Byte, 30.Byte, 9.Byte, 32.Byte, 31.Byte, 34.Byte, 33.Byte, 36.Byte, 35.Byte, 38.Byte, 37.Byte, 40.Byte, 39.Byte


ERZ:

short 2.Byte, 1.Byte
long 4.Byte, 3.Byte, 2.Byte, 1.Byte
float 4.Byte, 3.Byte, 2.Byte, 1.Byte
time 4.Byte, 3.Byte, 2.Byte, 1.Byte
double 4.Byte, 3.Byte, 2.Byte, 1.Byte, 8.Byte, 7.Byte, 6.Byte, 5.Byte
ASCII -
UNICODE -

comment:5 by Melanie Hermann, 13 years ago

Last edited 13 years ago by Melanie Hermann (previous) (diff)

by Melanie Hermann, 13 years ago

Attachment: Test_Byteorder.xls added

by Melanie Hermann, 13 years ago

Attachment: Test_Byteorder.2.xls added

Com-ASCII auch erfolgreich getestet

by Melanie Hermann, 13 years ago

Attachment: Test_Byteorder.3.xls added

RMGViewGC getestet

comment:6 by Melanie Hermann, 13 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.