ModBus Tester Problem

Failed to update the device control block

pvs-deck
PowerUser
Avatar
Gender:
Age: 53
Homepage: pvs-deck.de
Posts: 1341
Registered: 02 / 2009
Subject:

ModBus Tester Problem

 · 
Posted: 25.07.2012 - 10:41  ·  #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
Gender:
Location: Belgrade, Serbia
Age: 53
Homepage: rs.linkedin.com/in…
Posts: 653
Registered: 07 / 2002
Subject:

Re: ModBus Tester Problem

 · 
Posted: 25.07.2012 - 12:36  ·  #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
Gender:
Age: 53
Homepage: pvs-deck.de
Posts: 1341
Registered: 02 / 2009
Subject:

Re: ModBus Tester Problem

 · 
Posted: 10.09.2012 - 11:27  ·  #3
Hallo Rolf,

wann ist der Fehler beseitigt?

Gruß
Thorsten
pvs-deck
PowerUser
Avatar
Gender:
Age: 53
Homepage: pvs-deck.de
Posts: 1341
Registered: 02 / 2009
Subject:

Re: ModBus Tester Problem

 · 
Posted: 01.10.2012 - 01:23  ·  #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
Attachments
ModBusFehler
Filename: ModBusTester2.jpg
Filesize: 14.03 KB
Title: ModBusFehler
Download counter: 96
Avra
Schreiberling
Avatar
Gender:
Location: Belgrade, Serbia
Age: 53
Homepage: rs.linkedin.com/in…
Posts: 653
Registered: 07 / 2002
Subject:

Re: ModBus Tester Problem

 · 
Posted: 01.10.2012 - 08:29  ·  #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.
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 16 · Cache Hits: 15   89   104 · Page-Gen-Time: 0.030203s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI