It seems it should work with the "Physical Address" numbers. According to documentation those are raw addresses that get included into the MODBUS frame (zero based). Some devices have in documentation logical address (one based), that need to be reduced by one to be entered in the Base.
http://www.enika.cz/download/Automatizac/ELEKTROMERYa%20ANALYZATORY/EM21%20CP%20V1R2%20ENG%20290710.pdf
[zitat]
1.1) “Modicom address”: it is the “6-digit Modicom” representation with Modbus function code 04 (Read Input Registers). It is possible to read the same values with function code 03 (Read Holding Registers) replacing the first digit (“3”) with the number “4”.
1.2) “Physical address”: it is the “word address” value to be included in the communication frame.
[/zitat]
Willkommen auf unserer neuen Forenplattform für das Bus-Profi Forum
Neue Felder für die persönlichen Daten
Man kann jetzt seine öffentlich einsehbare Daten genau bestimmen. Details findet ihr in in diesem Beitrag.
Durch die neue Forensoftware und die Portierung der Daten konnten die Passwörter aus dem alten Forum nicht übernommen werden, bitte lassen Sie sich ein neues Passwort über die Passwort vergessen Funktion zusenden. Sollte es zu Problemen kommen kontaktieren Sie das Bus-Profi Team per E-Mail.
Neue Felder für die persönlichen Daten
Man kann jetzt seine öffentlich einsehbare Daten genau bestimmen. Details findet ihr in in diesem Beitrag.
Durch die neue Forensoftware und die Portierung der Daten konnten die Passwörter aus dem alten Forum nicht übernommen werden, bitte lassen Sie sich ein neues Passwort über die Passwort vergessen Funktion zusenden. Sollte es zu Problemen kommen kontaktieren Sie das Bus-Profi Team per E-Mail.
Modbus Modul
#12 RE: Modbus Modul
Hej Filip
I have compared the transmission with IPS again. Here is the address of the EM24 documentation as requested.
01.04.2012 11:19:16.00 | Transmitted | 03 00 00 00 02
01.04.2012 11:19:16.00 | Transmitted | 03 00 0C 00 02
etc.
So 0 is 0 and 0C is 12. The difference is the swapping of the MSW / LSW. Perhaps this helps to success.
Bye Dieter
[img]1[/img]
I have compared the transmission with IPS again. Here is the address of the EM24 documentation as requested.
01.04.2012 11:19:16.00 | Transmitted | 03 00 00 00 02
01.04.2012 11:19:16.00 | Transmitted | 03 00 0C 00 02
etc.
So 0 is 0 and 0C is 12. The difference is the swapping of the MSW / LSW. Perhaps this helps to success.
Bye Dieter
[img]1[/img]
- Dateianhänge
-
- 423301lsw_msw.png (3.4 KiB) 2379 mal betrachtet
#13 RE: Modbus Modul
Yes, this is the problem. World would be a better place without this "low endian" Intel aberration.
[zitat]
For all the formats the byte order (inside the single word) is MSB->LSB. In INT32, UINT32 and UINT64 formats, the word order is LSW-> MSW.
[/zitat]
[zitat]
For all the formats the byte order (inside the single word) is MSB->LSB. In INT32, UINT32 and UINT64 formats, the word order is LSW-> MSW.
[/zitat]
#14 RE: Modbus Modul
Hej Filip,
so it should be possible to configure it for any MODBUS device separate?
Bye
Dieter
so it should be possible to configure it for any MODBUS device separate?
Bye
Dieter
#15 RE: Modbus Modul
In next version I will add new datatypes - uint32le and int32le - that will cover this encoding.
In your case, it is working only because you add 0 from previous register. It should work with uint16 every second address or something like that.
In your case, it is working only because you add 0 from previous register. It should work with uint16 every second address or something like that.
#16 RE: Modbus Modul
Thank you Filip,
i think that's a good way to handle this problem :thumbup:
Bye Dieter
i think that's a good way to handle this problem :thumbup:
Bye Dieter
-
- Alleswisser
- Beiträge: 5728
- Registriert: Mo 21. Apr 2008, 20:03
- Hat sich bedankt: 19 Mal
- Danksagung erhalten: 13 Mal
#17 RE: Modbus Modul
Great Job, Filip.:rolleyes:
Die Elsner liefert die Werte:thumbup: .
gruss thomas
DOMIQ hat geschrieben:You are fast!
A moment ago I also published Base update, that is needed for Elsner Weatherstation - now it is possible to use both function 3 and 4 in MODBUS.
So far we used only function 3, as in all devices we had before 3 and 4 did exactly the same thing...
Translation is being worked on, will be ready next week.
Die Elsner liefert die Werte:thumbup: .
gruss thomas
lg Thomas
#18 RE: Modbus Modul
We noticed one strange thing - weatherstation blinks error LED all the time, unless we touch wind sensor (hot!).
Does it work like that for you as well?
Does it work like that for you as well?
-
- Alleswisser
- Beiträge: 5728
- Registriert: Mo 21. Apr 2008, 20:03
- Hat sich bedankt: 19 Mal
- Danksagung erhalten: 13 Mal
#19 RE: Modbus Modul
Hi Filip,
ich habe nur auf dem Schreibtisch getestet, und den Windsensor "angepustet", er liefert Werte.
Die rote LED am Seriel-4MB blinkt immer, an der Elsner ist die rote LED aus.
Nur die gelbe LED blinkt, bei Daten.
Ich habe bei mir am Haus noch eine Elsner RS485 sitzen, die an einem Eigenbaumodul hängt, und könnte so, die Werte vergleichen.
Habe vorhin in der Firma, alle Werte der Elsner, in die "Koffer Visu" von Uwe gepackt, sieht alles gut aus.:thumbup:
gruss thomas -
ich habe nur auf dem Schreibtisch getestet, und den Windsensor "angepustet", er liefert Werte.
Die rote LED am Seriel-4MB blinkt immer, an der Elsner ist die rote LED aus.
Nur die gelbe LED blinkt, bei Daten.
Ich habe bei mir am Haus noch eine Elsner RS485 sitzen, die an einem Eigenbaumodul hängt, und könnte so, die Werte vergleichen.
Habe vorhin in der Firma, alle Werte der Elsner, in die "Koffer Visu" von Uwe gepackt, sieht alles gut aus.:thumbup:
gruss thomas -
lg Thomas
-
- Alleswisser
- Beiträge: 5728
- Registriert: Mo 21. Apr 2008, 20:03
- Hat sich bedankt: 19 Mal
- Danksagung erhalten: 13 Mal
#20 RE: Modbus Modul
Hallo,
Frage mich gerade, ob ich die Elsner RS485 auch "eingefangen" bekomme.
gruss thomas
Frage mich gerade, ob ich die Elsner RS485 auch "eingefangen" bekomme.
gruss thomas
lg Thomas
Zurück zu „Domiq-Module - DOMIQ Sp. z o.o.“
Wer ist online?
Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast