Seite 2 von 3
#11 RE: Modbus Modul
Verfasst: So 1. Apr 2012, 07:43
von DOMIQ
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/Automatiza ... 290710.pdf
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.
#12 RE: Modbus Modul
Verfasst: So 1. Apr 2012, 11:35
von norden
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]
#13 RE: Modbus Modul
Verfasst: So 1. Apr 2012, 11:42
von DOMIQ
Yes, this is the problem. World would be a better place without this "low endian" Intel aberration. ;-)
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.
#14 RE: Modbus Modul
Verfasst: So 1. Apr 2012, 12:44
von norden
Hej Filip,
so it should be possible to configure it for any MODBUS device separate?
Bye
Dieter
#15 RE: Modbus Modul
Verfasst: Mo 2. Apr 2012, 17:35
von DOMIQ
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.
#16 RE: Modbus Modul
Verfasst: Mo 2. Apr 2012, 22:47
von norden
Thank you Filip,
i think that's a good way to handle this problem
Bye Dieter
#17 RE: Modbus Modul
Verfasst: Mi 4. Apr 2012, 15:44
von Thomas
Great Job, Filip.
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
#18 RE: Modbus Modul
Verfasst: Mi 4. Apr 2012, 18:27
von DOMIQ
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?
#19 RE: Modbus Modul
Verfasst: Mi 4. Apr 2012, 21:44
von Thomas
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.
gruss thomas -
#20 RE: Modbus Modul
Verfasst: Sa 7. Apr 2012, 15:09
von Thomas
Hallo,
Frage mich gerade, ob ich die Elsner RS485 auch "eingefangen" bekomme.
gruss thomas