TCP communication between PC <-> PLC

i don't know

Member
Join Date
Nov 2023
Location
South Korea
Posts
3
Hi all, I don't have experience PLC programming so it might be a stupid question.

I made a socket request to PLC and there is no problem to read and write but whenever completing the connection, PLC always sends RST packet see the attachment.

I want to know if this behavior is normal or there is something wrong to complete the connection.

Thank you in advance.

Screenshot_20231102_112243.png
 
Welcome to the PLCTalk forum community !

What make and model of PLC controller are you using ?

Are you configuring and testing a commercial protocol driver, or writing your own ?
 
Welcome to the PLCTalk forum community !

What make and model of PLC controller are you using ?

Are you configuring and testing a commercial protocol driver, or writing your own ?

Thank you for your reply!

I'm not sure if this maker is known globally. Anyways it's LS electric and the model name is probably XGT series.

The below image is the protocol we are using i guess it's Modbus.

Screenshot_20231102_180955.png
 
Hello,

What "keepAlive" value do you specify when you open the socket on the PC?
 
Hi Mark.
I didn’t use keepalive option when i open the connection.

Without more data, I would test against another program/device and if I get the same result I would really check what I am doing (port opening variables/message format/timing/etc.).

It looks like it RST 4+ seconds after the last transfer. Perhaps that is configurable in the device.

We have a free MODBUS TCP slave simulator on the website.
 

Similar Topics

I am trying to establish communication between Siemens PLC 1500 and Matlab. I followed a tutorial on youtube at this link: But when I got to the...
Replies
0
Views
354
Good day Programmers I have a RSTi-EP CPE100 Standalone Controller from Emerson as well as a STXMBE001 (MODBUS TCP/IP) as a Modbus communication...
Replies
0
Views
639
Silly question: I would like to know if anyone has done TCP Socket communication between Logix controllers? I do know it works fine from any...
Replies
6
Views
4,330
Hello Experts, I am building an application in Matlab (on my PC) which has a TCP/IP toolbox to allow me to connect to Ethernet enabled devices...
Replies
2
Views
2,744
Hi, I've been struggling with this for the past two weeks now. As part of a bigger school project, I've been tasked with setting up several...
Replies
0
Views
3,797
Back
Top Bottom