Forum Home › Forums › Communicating with Devices › Modbus › Error state on device
- This topic has 10 replies, 3 voices, and was last updated 8 months, 4 weeks ago by
abedi.
-
AuthorPosts
-
July 14, 2020 at 6:13 am #7017
abedi
ParticipantHello Mikhail,
I want to read modbus values from a plc using kpmodbus through LAN port.
I can ping the plc ip from computer.
In rapidscada:
a)communication channel type is TCP client, tcp port:502.
b)device call number is set to the computer ip.
c)channel is created.
d) line state is running.but: device state is: error.
How can I solve this issue?
Thanks a lot for help.July 14, 2020 at 3:00 pm #7018Mikhail
ModeratorHello,
Please provide a part of communication line log.
July 15, 2020 at 4:48 am #7019abedi
Participant2020-07-15 09:16:09 Establish a TCP connection with 172.27.1.210:502
Error establishing TCP connection: No connection could be made because the target machine actively refused it 172.27.1.210:5022020-07-15 09:16:10 Unable to communicate with Device 1 “wp” because connection is not established
2020-07-15 09:16:11 Attempt to establish TCP connection can not be earlier than 5 seconds after the previous.
2020-07-15 09:16:11 Unable to communicate with Device 1 “wp” because connection is not established
2020-07-15 09:16:11 Attempt to establish TCP connection can not be earlier than 5 seconds after the previous.
2020-07-15 09:16:11 Unable to communicate with Device 1 “wp” because connection is not established
2020-07-15 09:16:11 Attempt to establish TCP connection can not be earlier than 5 seconds after the previous.
…explanation: server ip: 172.27.1.210
cpu LAN port ip: 172.27.1.211
ThanksJuly 15, 2020 at 1:40 pm #7022Mikhail
ModeratorError establishing TCP connection: No connection could be made because the target machine actively refused it 172.27.1.210:502
This message means that the PLC is not available by the IP 172.27.1.210 and port 502.
You should check the PLC.July 16, 2020 at 4:48 am #7028abedi
ParticipantThanks for the reply. Do you have any idea that how I can check the PLC? there is no special setting in it. Or shall I change the port? or sth else?
Thanks again.
July 16, 2020 at 9:40 am #7029abedi
ParticipantI tried to check the settings.
The new communication line log:2020-07-16 14:07:56 Establish a TCP connection with 172.27.1.211:502
2020-07-16 14:07:56 Communication session with the Device 1 “wp”, type: KpModbus, address: 2, call number: 172.27.1.211
Request element group “g1”
Send (12): 00 55 00 00 00 06 02 03 00 00 00 01
2020-07-16 14:07:56 Error communicating with Device 1 “wp”: Error reading data: Timeout can be only be set to ‘System.Threading.Timeout.Infinite’ or a value > 0.
Parameter name: value2020-07-16 14:07:56 Disconnect from 172.27.1.211
July 16, 2020 at 11:31 am #7031hicode
Participanthi,
are you sur that your device adress is good ? i see “2” for you, have you try with 1 ?July 16, 2020 at 3:33 pm #7033Mikhail
ModeratorTimeout can be only be set to ‘System.Threading.Timeout.Infinite’ or a value > 0.
Please make a screenshot of the device properties in Communicator.
July 18, 2020 at 5:09 am #7041abedi
ParticipantThanks:
The screen shot image link:
https://1drv.ms/u/s!ArUszYM3qWAukCmmsWVLtkTl311DJuly 18, 2020 at 7:27 am #7043Mikhail
ModeratorSorry, I mean:
Open Line 2 Parameters – Request Sequence, select the device 1 and then make a screenshot.July 18, 2020 at 7:44 am #7044abedi
ParticipantHere is the needed screenshot
https://1drv.ms/u/s!ArUszYM3qWAukCqydeOvfE7HE-lm?e=GyvQrr -
AuthorPosts
- You must be logged in to reply to this topic.