Technical Forum

Communication / Networks

TCP communication between CPU 414-2 + CP: 443-1 Advanced and PC

Erstellt von Georgio am 16.05.2012 11:25 (2 Antworten)

« Vorheriges Thema Nächstes Thema »
Seite 1 von 1 (3 Objekte)
  16.05.2012, 11:25
Beigetreten am: 28.10.2008
Letzter Besuch: 21.03.2013
Beiträge: 54
Bewertung:
Bewertung: Exzellent [4,67 von 5 / 6 mal bewertet]. (6) 
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
Hi.

I would like to ask for TCP communication between CPU 414-2 + CP: 443-1 Advanced and PC.
PLC is passive - server.

I have searched the manuals etc. and I have found a lot of materials concerning ISO-ON-TCP communication between
CPU 414-2 + CP: 443-1 Advanced and PC and TCP communication between CPU 414-2 PN/DP and PC. I have never read about TCP communication between CPU 414-2 DP + CP: 443-1 Advanced and PC. Is it possible to communicate like this ? Because when I use Open communication wizzard and I want to use TCP communication there is only CPU414 I can use for communication. When I choose iso-on-tcp than I have possibility to choose CP Advanced. I tried to use TCP in NetPro, I set the communication but I couldnt connect with windows telnet to the PLC server.

I also tried to use TCON, TDISCON, TSEND and TRCV for TCP communication, but also with no success.
In help for TCON for T_CON_PAR is:

***********************
4    connection_type    BYTE    B#16#11    Protocol variant:
B#16#11: TCP
B#16#12: ISO on TCP
B#16#01: TCP (compatibility mode)


6    local_device_id
BYTE    B#16#02
B#16#00: Communication via CP 443-1EX4x (with S7-400, however, only with connection_type = B#16#12)
B#16#01: Communication via IE interface in interface slot 1 (IF1) with WinAC RTX (TCP only)·    B#16#02: Communication via the integrated IE interface with CPUs 315-2 PN/DP and 317-2 PN/DP
B#16#03: Communication via the integrated IE interface on the CPU 319-3 PN/DP·    B#16#05: Communication over the integrated IE interface with CPUs 414-3 PN/DP, 416-3 PN/DP and 416-3F PN/DP
B#16#06: Communication via the IE interface in interface slot 2 (IF2) with WinAC RTX (TCP only)·
B#16#0B. Communication via the IE interface in interface slot 3 (IF3) with WinAC RTX (TCP only)· B#16#0F: Communication via the IE interface in interface slot 4 (IF4) with WinAC RTX (TCP only)

**********************

So if i want to use TCP and Advanced CP, than I have to choose what
local_device_id ??
Because B#16#00 is only for connection type B#16#12: ISO on TCP !!!

Some time ago I established TCP connection PLC S7 300 + CP343 with PC, and it works. I used NetPro. Now in help I can see that there is no connection local_device_id for CP343 !!

We established connection between PLC and PC via iso-on-tcp. But we want to use TCP, it si more comfortable for us. If there is some reason why use iso-on-tcp rather than TCP, than we can think about it...

Now I am really confused about communication possibilities in range of Siemens devices....

Thank you for your help.

Best regards.

Jiri



=== Edited by O_Moderator @ 5/21/2012 9:24 AM [GMT ] ===
new subject after splitting from PC - PLC+CP open TCP communication

Top
  30.05.2012, 10:48
Beigetreten am: 17.06.2011
Letzter Besuch: 24.05.2013
Beiträge: 1283
Bewertung:
Bewertung: Exzellent [4,06 von 5 / 82 mal bewertet]. (82) 
Benutzer mit speziellen Fachkenntnissen, die einzelne Konferenzen betreuen
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
Hello Georgio,

i hope i can help a little bit.

1. If you use CP cards you should use Netpro for configuring a connection

2. OC Wizard is only for use with on Board Ethernet interfaces of CPU and much more complex than NetPro.

3. Advanced CP is the biggest cp card you can get in PLC. TCP connection is the same as on other CP443-1 cards.

4. The biggest difference between TCP and ISOonTCP is a problem with variable data length on regular TCP. Refer for this following FAQ: transferring data (with FC5 "AG_SEND" and FC6 "AG_RECV") with variable message lengths via the TCP protocol

5. In Netpro you have to choose the connection Type TCP-Connection. Choose the right ports and call FC5 and FC6 for communication. FC6 will receive only data if you have sent enough data for one job. Try first with some bytes at the parameter RCV in length of your receive block and sent it via hyper terminal.

Gruß / best regards
Rated X
Top
  25.11.2012, 16:51
Beigetreten am: 28.10.2008
Letzter Besuch: 21.03.2013
Beiträge: 54
Bewertung:
Bewertung: Exzellent [4,67 von 5 / 6 mal bewertet]. (6) 
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
Hi Rated X.

Thank you for your reply. I was not able to solve my problem so I had to stay at iso-on-tcp communication. We had no time to study and establish TCP communication in our case, we had to finish our work. So we used existing and functional solution in this particular case - iso-on-tcp. In another cases I of course try to use TCP connections..

By the way, if you want to communicate with Matlab by TCP (I think that maybe there was some questions about this here on forum), it can easily done nowadays. Matlab always had TCPIP object for communication. But now, from version 2011b, you can set client or server property to this object so communication establishment is easier now...

Georgio
Top
Seite 1 von 1 (3 Objekte)
Aktionen