When I connect TCP IP device just to SocketTest v 3.0.0, I receive string [1]T000000000003 in SocketTest as Client Then I connect separately PLC to SocketTest v 3.0.0. and I receive also string [1]T000000000003 on PLC Client and SocketTest as Server. But when I connect just PLC and TCP IP server device to read string on PLC, I receive in PLC on TCON block STATUS 16#7002 »Connection is being established (REQ irrelevant).« But connection is not established. TCP IP server device is connected directly to PLC. What could block the connection?
Hello Bro. I have followed your step but when i pressed "listening button", I couldn't have connection. A message pop up "cannot assign requested address jvm_bind". Many thanks ^^
Very good tutorial I have still one question. When i send a string then i see in the Sockettest terminal the same string with on the beginning 2 strings characters What is the reason, and how can i solve this issue? thanks in advance Frans
Siemens add some unprintable characters at begging of the string. Just figure out length of the string with LEN and then use command RIGHT with length size Length-2.
@@industrialautomation3470 Thanks for the fast response. I know how to use the right string command, but were must i place this command in my program that's now clear for me. also everywhere in the program i see the correct string without the 2 leading char., only in the sockettest window i see that 2 weird char. thanks in advance, Frans
@@fransvanenschot3286 Ok, you mean sending string from PLC to terminal. Try inserting new line at beginning of the string. Create new string variable with starting value '$L' and then CONCAT it with your variable.
@@angcao4166 It's Carriage return and Linefeed. You have to go back to the history of typerwrites, but those control characters are still used in these days, usually signaling end of the transfer. So they are added by device you are communicating with.
@@industrialautomation3470 thanks sir :D. Can you make a video about programming a tool such as sockettest by c#. I have tried to create connection tcp/ip between 2 terminals
Thanks so much for this video. I have some question, can you help me ? 1. Can We send string and character over socket tcp/ip only ? 2. I need send/received some bytes to/from PC. How to encoding and decoding bit in bytes ( Bit in bytes are command and information to/from PC)
Hi thanks for sharing this video. I have a problem that sockettest v3 is not connecting to the ip address of the virtual plc (plcsim). It accepts only the address of the localhost or the ip address of the pc. Is there any solution?
Hello thanks for your effort. My problem is tcon busy state turns true to false and there is no signal from tcon.done or tcon.error status changes from 7002 to 7000. Allowed port 29999 from firewall. Any idea ? Thanks
Sir,Thank you so much for the detailed explanation.In my application,I want to send commands to my external card from s71200 and waiting for response from it, before sending next command from PLC. By using your code,I can able to make communication but getting response but its not proper,Not giving exact response.Extra strings also coming with response.Kindly help.
Hi, generally I first test the communication with Socktet tester Windows app, to make sure, other device is communicating correctly and then switch to plc. I would connect just pc and your device, to isolate that string is not coming from some other device on the network.
Sir,I have checked code with socket test.Its working fine.but with PLC code it's not happening,Only telnet welcoming message came after that no response from third party device.
then problem is with your plc code. Try to compare commands going from socket tester versus plc. Plug plc into computer and watch commands from plc with socket tester.
@@industrialautomation3470 Sir, Issue got solved.Instead of sending string as input data,we tried with characters as input data.Its working fine now.Thank you so much.
It would've been great tutorial but SocketTest didn't work and that I meant I would have to waste more time troubleshooting more crap that had nothing to do with what I set out to do.
Thank you for your sharing. it is great information.
very instructive tutorial, thanks a lot
Thank you very much, you giving me a good guidance, hope good healthy for you.
thanks for this great video :))
Thank you for your work and video!
Thanks so much! Help me a lot.
Happy to help
thank you its really working
Very well explained sir
thanks ^^☺☺☺
I cant get connection. Do you have any idea why? Same adress and port on the socket test and tcon and it still it does not connect. Could you help me?
Me too
And if I want set my computer as client and the Siemens CPU 1200 as server how I can configurate?
hello sir, i did everytihng same but connection not establish. how can i find the way
Why I downloaded your program change to PLC S7-1515 2PN, and when I run it, The TCON outputs shows Busy and #TCONSTATUS=0x7002?
great
How do you now witch port is free? Or witch one to use?
THAK YOU SO MUCH
is it possible to implement ascii over tcpip using this method? do you have any video on that
Thanks for the video. Really good. Is there any way to conect the PLC to any Python aplication? thanks
Hi sir thank you for sharing tutorial. I have one question. Can i use this system for multiple program?
Sure, just change the address. This is basically same as computer network, you can have as many devices as how much of IP address you have.
One Question @@industrialautomation3470 if I want to Use another TCON block where is the best way to use it?
Hi bro, my english not well, can you tell me on s7 1200, how many blocks TCP Client can we use, thank so much
When I connect TCP IP device just to SocketTest v 3.0.0, I receive string [1]T000000000003
in SocketTest as Client
Then I connect separately PLC to SocketTest v 3.0.0. and I receive also string [1]T000000000003
on PLC Client and SocketTest as Server.
But when I connect just PLC and TCP IP server device to read string on PLC, I receive in PLC on TCON block STATUS 16#7002 »Connection is being established (REQ irrelevant).« But connection is not established. TCP IP server device is connected directly to PLC. What could block the connection?
Hi sir, can I use your code as a server ? I have a application need send a string from PLC (Server) to a app (Client) . Thank you !
Hello Bro. I have followed your step but when i pressed "listening button", I couldn't have connection. A message pop up "cannot assign requested address jvm_bind". Many thanks ^^
I get the same error. Any help?
Yes same problem
How can solve this problem
Very good tutorial
I have still one question.
When i send a string then i see in the Sockettest terminal the same string with on the beginning 2 strings characters
What is the reason, and how can i solve this issue?
thanks in advance
Frans
Siemens add some unprintable characters at begging of the string. Just figure out length of the string with LEN and then use command RIGHT with length size Length-2.
@@industrialautomation3470 Maybe a stupid question, but were must i place that right command?
thanks in advance
@@fransvanenschot3286 check the manual cache.industry.siemens.com/dl/files/465/36932465/att_106119/v1/s71200_system_manual_en-US_en-US.pdf , page 269
@@industrialautomation3470 Thanks for the fast response.
I know how to use the right string command, but were must i place this command in my program that's now clear for me.
also everywhere in the program i see the correct string without the 2 leading char., only in the sockettest window i see that 2 weird char.
thanks in advance,
Frans
@@fransvanenschot3286 Ok, you mean sending string from PLC to terminal. Try inserting new line at beginning of the string. Create new string variable with starting value '$L' and then CONCAT it with your variable.
After receiving string, Data receive had additional 2 characters $R and $L. How can i fix it, sir ?
Use string modification funtctions. For example MID, they can be find in TIA right panel under Insturctions/Extended instructions/String
@@petrbroza7029 Many thanks to u, but i wonder why did string have 2 characters mentioned at comment?
@@angcao4166 It's Carriage return and Linefeed. You have to go back to the history of typerwrites, but those control characters are still used in these days, usually signaling end of the transfer. So they are added by device you are communicating with.
@@industrialautomation3470 thanks sir :D. Can you make a video about programming a tool such as sockettest by c#. I have tried to create connection tcp/ip between 2 terminals
How did you fix the connection error with SocketTest? JVM_bind error
What are the application in realtime based on that ,
Siemens to modbus tcp/ip to Windowns
communication with cameras
Thanks so much for this video. I have some question, can you help me ?
1. Can We send string and character over socket tcp/ip only ?
2. I need send/received some bytes to/from PC. How to encoding and decoding bit in bytes ( Bit in bytes are command and information to/from PC)
Sure we can send a string, that's what we're doing in video! I'm not sure how numbers are encoded. I think it's just coded as ASCII char.
Hi thanks for sharing this video.
I have a problem that sockettest v3 is not connecting to the ip address of the virtual plc (plcsim).
It accepts only the address of the localhost or the ip address of the pc.
Is there any solution?
Hi, you have to use PLCSIM advanced. Sockettest is server it this case, it's accepting connection from PLC #12:38
Hello thanks for your effort.
My problem is tcon busy state turns true to false and there is no signal from tcon.done or tcon.error status changes from 7002 to 7000. Allowed port 29999 from firewall. Any idea ? Thanks
same here, may i know do you have any solution yet?
@@demopen7041 Same problem :(
Sir,Thank you so much for the detailed explanation.In my application,I want to send commands to my external card from s71200 and waiting for response from it, before sending next command from PLC. By using your code,I can able to make communication but getting response but its not proper,Not giving exact response.Extra strings also coming with response.Kindly help.
Hi, generally I first test the communication with Socktet tester Windows app, to make sure, other device is communicating correctly and then switch to plc. I would connect just pc and your device, to isolate that string is not coming from some other device on the network.
@@industrialautomation3470 Okay,I will check it again sir.
Sir,I have checked code with socket test.Its working fine.but with PLC code it's not happening,Only telnet welcoming message came after that no response from third party device.
then problem is with your plc code. Try to compare commands going from socket tester versus plc. Plug plc into computer and watch commands from plc with socket tester.
@@industrialautomation3470 Sir,
Issue got solved.Instead of sending string as input data,we tried with characters as input data.Its working fine now.Thank you so much.
when you enabled clock you must install that page if you dont install and fast make main your clock not work. sorry for my english
It would've been great tutorial but SocketTest didn't work and that I meant I would have to waste more time troubleshooting more crap that had nothing to do with what I set out to do.
Can't see anything clearly on your screen, which makes this video less useful.