Forum Home › Forums › Communicating with Devices › Modbus › Modbus simulator
- This topic has 3 replies, 2 voices, and was last updated 9 years, 1 month ago by Mikhail.
-
AuthorPosts
-
January 29, 2015 at 10:47 pm #69telecoParticipant
Hello,
I am using a Modbus software simulator. The connection parameters of the simulator are:
LOCAL IP: localhost
Server connections: 1
Port (502): 502
Alternate port: 501
Station ID: 1The communication messages are:
Socket 404 listen thread ID=[6048] running
[6048] Listen for connection…I want to simulate the default ADAM-6015 Server room, so, in order to establish a connection I select SCADA-Communicator -> Line 1 “Server room” -> Request Sequence -> Call number = localhost:502. Then, I restart the SCADA-Communicator service but in Communication Line State -> Active Devices the message continues: “error”.
Which parameters do I have to modify in SCADA-Communicator for Modbus connection?
January 30, 2015 at 7:40 am #72MikhailModeratorSwitch to Communication Line log tab.
Read the log carefully, usually it contains information about the cause.
Firstly, realize is the connection established or not.February 1, 2015 at 12:03 pm #79telecoParticipantCall number = localhost:502
The same with localhost, pcname, 127.0.0.1 with and without 502Every time I change the “call number” in Request Sequence, I press the apply button and then the Restart SCADA-Communicator service button. I don´t know what is the problema. I use the Modbus simulator from http://www.plcsimulator.org/downloads, which doesn´t need any kind of installation or setup.
Communication Line Log tab:
2015-02-01 12:52:13 Communication session with Device 11 “ADAM-6015 Server room”, type: KpModbus, call number: MANUEL
Establish a TCP connection with MANUEL
Error establishing TCP connection: An invalid IP address was specified.2015-02-01 12:52:13 Communication session with Device 11 “ADAM-6015 Server room”, type: KpModbus, call number: MANUEL
Attempt to establish TCP connection can not be earlier than 5 seconds after the previousFebruary 1, 2015 at 7:06 pm #80MikhailModeratorI’ve tried the same as you did.
Call numbers localhost and computer name don’t work, because of wrong IP address format.Call number 127.0.0.1 is OK:
2015-02-01 21:57:56 Communication session with Device 11 “ADAM-6015 Server room”, type: KpModbus, call number: 127.0.0.1
Establish a TCP connection with 127.0.0.1During testing I uncheck “Use SCADA-Server” checkbox in SCADA-Communicator. If you do not uncheck it the call number specified in the configuration database is used.
Try 127.0.0.1 again. If it doesn’t work post a part of log here.
-
AuthorPosts
- You must be logged in to reply to this topic.