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: 78
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: 78
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: 1026
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: 1026
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: 1919

Currently Online:
20 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 734

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1523

Posts: 6449

Newest Members:

christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, Thomassnism, biancacraft16, edgardo3518

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1