Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Failed to send command
July 11, 2016
14:52, EEST
Avatar
ibrahim
Member
Members
Forum Posts: 75
Member Since:
August 20, 2014
sp_UserOfflineSmall Offline

Hi,
i’m trying to connect the ModbusServer to a Modbus/TCP SensorDevice. I’m getting the following error:

07/11/2016 13:50:43.965 WARN [a RUNNING] com.prosysopc.ua.app.mb2ua.modbus.a – Failed to send command ‘/192.168.101.23:502’ dataItem: DataItem ioType=IR register=0 count=2 dataType=REAL error: java.lang.ClassCastException: com.ghgande.j2mod.modbus.msg.ExceptionResponse cannot be cast to com.ghgande.j2mod.modbus.msg.ReadInputRegistersResponse

what does this mean??

Thanks

July 11, 2016
22:55, EEST
Avatar
jestun
New Member
Members
Forum Posts: 2
Member Since:
June 9, 2016
sp_UserOfflineSmall Offline

Hi Ibrahim,

are you trying to read one or two REAL tags? The count is per tag and not the amount of registers read, so your configuration is trying to read four registers into two REAL tags. The error message indicates that the server is trying to read from a register that doesn’t exist.

/Jesper

July 12, 2016
9:53, EEST
Avatar
ibrahim
Member
Members
Forum Posts: 75
Member Since:
August 20, 2014
sp_UserOfflineSmall Offline

Hi,
thanks for the answer. OK, maybe there is an error on the modbus device side. I will check that.

Ibrahim

October 21, 2016
23:14, EEST
Avatar
hbbend
Member
Members
Forum Posts: 9
Member Since:
October 21, 2016
sp_UserOfflineSmall Offline

Hi everyone,
I tryed Prosys Modbus UA Server with two PLCs, and I read digital inputs and outputs but i can’t write values to them.
Would you like to help me with this issue
Thanks in advance,

October 24, 2016
16:29, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1009
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Please, check the app.log in the settings directory (normally at c:\ProgramData\ProsysOPC\ModbusServer). It should provide some errors that are related to the failing writes. Can you write to the respective output signals with some other Modbus master?

October 24, 2016
23:17, EEST
Avatar
hbbend
Member
Members
Forum Posts: 9
Member Since:
October 21, 2016
sp_UserOfflineSmall Offline

Thank you Mr. Jouni,
Writing to outputs even using another OPC server was unsuccessful. However, I have found a way to do so, by writing to the address of the internal bits and allocate them to hardware outputs in my PLC programm.

October 25, 2016
10:51, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1009
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

OK, very good. Thanks for confirming that you got it working.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
18 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

ibrahim: 75

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 679

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6259

Newest Members:

DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com, aytule, rashadbrownrigg, christi10l, ahamad1, Flores Frederick

Moderators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1