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: 70
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: 70
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: 851
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: 851
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: 267

Currently Online:
10 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 103

pramanj: 86

ibrahim: 70

kapsl: 57

gjevremovic: 49

TimK: 41

Fransua33: 39

fred: 38

Rainer Versteeg: 32

Thomas Reuther: 31

Member Stats:

Guest Posters: 0

Members: 1105

Moderators: 14

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1009

Posts: 4268

Newest Members:

user1290, gregp, mariohetheringto, normagalindo47, aurelia27u, isobel41d356980, michaeldegli, gqbdolores, kez1399, jaclynmcvay358

Moderators: Jouni Aro: 851, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 545, Heikki Tahvanainen: 402, Jukka Asikainen: 1, Teppo Uimonen: 20, Markus Johansson: 19, Matti Siponen: 53, Lusetti: 0

Administrators: admin: 0