ModBus Tester Problem

Failed to update the device control block

pvs-deck
PowerUser
Avatar
Geschlecht:
Alter: 54
Beiträge: 1344
Dabei seit: 02 / 2009
Betreff:

ModBus Tester Problem

 · 
Gepostet: 25.07.2012 - 10:41 Uhr  ·  #1
Hallo Leute,

ich habe immer wieder ein Problem mit einer Fehlermeldung vom ModBus Tester.

Was will mir das Tool mit der Meldung sagen: "Failed to update the device control block"

Irgendwann kommt die Meldung und plötzlich ist sie auch wieder für Tage verschwunden???
Ohne das irgendwas geändert wurde

Gruss
Thorsten
Avra
Schreiberling
Avatar
Geschlecht:
Herkunft: Belgrade, Serbia
Alter: 54
Homepage: rs.linkedin.com/in…
Beiträge: 653
Dabei seit: 07 / 2002
Betreff:

Re: ModBus Tester Problem

 · 
Gepostet: 25.07.2012 - 12:36 Uhr  ·  #2
Check if you see something strange in compiler generated pmbl file, and see if you can fix it by hand as a workaround (if I remember number of bits and similar was wrong). After recent XMEGA compiler changes, I have notified Rolf about compiler sometimes writing bad pmbl file and he is aware of that problem, which will be addressed after necessary XMEGA MODBUS RTU compiler extension is finished.

Btw, as an alternative tool for MODBUS testing you can use MODPOLL, or ModLink testing tool from the 1st link on this page: http://www.ozm.cz/ivobauer/modlink/downloads.htm
pvs-deck
PowerUser
Avatar
Geschlecht:
Alter: 54
Beiträge: 1344
Dabei seit: 02 / 2009
Betreff:

Re: ModBus Tester Problem

 · 
Gepostet: 10.09.2012 - 11:27 Uhr  ·  #3
Hallo Rolf,

wann ist der Fehler beseitigt?

Gruß
Thorsten
pvs-deck
PowerUser
Avatar
Geschlecht:
Alter: 54
Beiträge: 1344
Dabei seit: 02 / 2009
Betreff:

Re: ModBus Tester Problem

 · 
Gepostet: 01.10.2012 - 01:23 Uhr  ·  #4
Hello Avra,
Hello Rolf,

What's the Problem with this Message?

('' is not a valid integer value.)
Delphi Message? StrToInt() or IntToStr() ??

It come on every scan, if this Message come up, there is is no Ser. Data send on the Port.

Bye
Thorsten
Der an diesem Beitrag angefügte Anhang ist entweder nur im eingeloggten Zustand sichtbar oder die Berechtigung Deiner Benutzergruppe ist nicht ausreichend.
Avra
Schreiberling
Avatar
Geschlecht:
Herkunft: Belgrade, Serbia
Alter: 54
Homepage: rs.linkedin.com/in…
Beiträge: 653
Dabei seit: 07 / 2002
Betreff:

Re: ModBus Tester Problem

 · 
Gepostet: 01.10.2012 - 08:29 Uhr  ·  #5
Things haven't changed and my previous answer is still valid. Compiler generates bad PMBL file, and it will be addressed after Rolf's compiler changes for XMEGA MODBUS RTU. As a workaround you can use mentioned free command line utility MODPOLL for testing, or dig your old compiler EXE before big XMEGA changes (sorry, I don't know which version was that) where PMBL file was still generated without this bug, and use it just once to generate PMBL. Then you can copy it over your new file after each compile (or before using tester by making a BAT which first copies PMBL and then starts modbus tester), or you can try to see if making the file read only would prevent compiler to overwrite it. You can also try to open PMBL file in editor and try to find string value where modbus tester expects a number to fix it by hand. I do not remember but I think it was something like having a string instead of number for COM port, or something like that.
Gewählte Zitate für Mehrfachzitierung:   0

Registrierte in diesem Topic

Aktuell kein registrierter in diesem Bereich

Die Statistik zeigt, wer in den letzten 5 Minuten online war. Erneuerung alle 90 Sekunden.
MySQL Queries: 15 · Cache Hits: 14   88   102 · Page-Gen-Time: 0.047292s · Speichernutzung: 2 MB · GZIP: ein · Viewport: SMXL-HiDPI