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.

Modbus Modul

Hard- und Softwarefragen rund Domiq-Module fürs LCN-System

DOMIQ
Fleißiges Mitglied
Fleißiges Mitglied
Beiträge: 252
Registriert: Sa 25. Apr 2009, 11:16
Kontaktdaten:

#11 RE: Modbus Modul

Beitragvon DOMIQ » So 1. Apr 2012, 07:43

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]


Themenersteller
norden
Fleißiges Mitglied
Fleißiges Mitglied
Beiträge: 269
Registriert: Do 20. Nov 2008, 07:46

#12 RE: Modbus Modul

Beitragvon norden » So 1. Apr 2012, 11:35

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]
Dateianhänge
423301lsw_msw.png
423301lsw_msw.png (3.4 KiB) 2379 mal betrachtet


DOMIQ
Fleißiges Mitglied
Fleißiges Mitglied
Beiträge: 252
Registriert: Sa 25. Apr 2009, 11:16
Kontaktdaten:

#13 RE: Modbus Modul

Beitragvon DOMIQ » So 1. Apr 2012, 11:42

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]


Themenersteller
norden
Fleißiges Mitglied
Fleißiges Mitglied
Beiträge: 269
Registriert: Do 20. Nov 2008, 07:46

#14 RE: Modbus Modul

Beitragvon norden » So 1. Apr 2012, 12:44

Hej Filip,

so it should be possible to configure it for any MODBUS device separate?

Bye
Dieter


DOMIQ
Fleißiges Mitglied
Fleißiges Mitglied
Beiträge: 252
Registriert: Sa 25. Apr 2009, 11:16
Kontaktdaten:

#15 RE: Modbus Modul

Beitragvon DOMIQ » Mo 2. Apr 2012, 17:35

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.


Themenersteller
norden
Fleißiges Mitglied
Fleißiges Mitglied
Beiträge: 269
Registriert: Do 20. Nov 2008, 07:46

#16 RE: Modbus Modul

Beitragvon norden » Mo 2. Apr 2012, 22:47

Thank you Filip,

i think that's a good way to handle this problem :thumbup:

Bye Dieter

Benutzeravatar

Thomas
Alleswisser
Alleswisser
Beiträge: 5728
Registriert: Mo 21. Apr 2008, 20:03
Hat sich bedankt: 19 Mal
Danksagung erhalten: 13 Mal

#17 RE: Modbus Modul

Beitragvon Thomas » Mi 4. Apr 2012, 15:44

Great Job, Filip.:rolleyes:
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


DOMIQ
Fleißiges Mitglied
Fleißiges Mitglied
Beiträge: 252
Registriert: Sa 25. Apr 2009, 11:16
Kontaktdaten:

#18 RE: Modbus Modul

Beitragvon DOMIQ » Mi 4. Apr 2012, 18:27

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?

Benutzeravatar

Thomas
Alleswisser
Alleswisser
Beiträge: 5728
Registriert: Mo 21. Apr 2008, 20:03
Hat sich bedankt: 19 Mal
Danksagung erhalten: 13 Mal

#19 RE: Modbus Modul

Beitragvon Thomas » Mi 4. Apr 2012, 21:44

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 -
lg Thomas

Benutzeravatar

Thomas
Alleswisser
Alleswisser
Beiträge: 5728
Registriert: Mo 21. Apr 2008, 20:03
Hat sich bedankt: 19 Mal
Danksagung erhalten: 13 Mal

#20 RE: Modbus Modul

Beitragvon Thomas » Sa 7. Apr 2012, 15:09

Hallo,

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