[?]: S7 PLC<=> ISO on TCP/IP<=>PC VS/VB/C++/C#

SIMATIC S7-200/300/400, Step7, PCS7, CFC, SFC, PDM, PLCSIM,
SCL, Graph, SPS-VISU S5/S7, IBHsoftec, LOGO ...
Post Reply
TitusII
Posts: 12
Joined: Mon Feb 12, 2007 8:59 am
Location: Europe

[?]: S7 PLC<=> ISO on TCP/IP<=>PC VS/VB/C++/C#

Post by TitusII » Thu Apr 09, 2009 1:05 pm

I try to connect a CPU319-3PN/DP via ISO on TCP/IP to a PC.
On CPU-Side i use the "open TCP/IP Kommunikation" with FB63/64/65 (TCON,...)
On PC-Side i use Visual Studio 2008, but the TCPListener can not connect with ISO on TCP/IP, only with TCP/IP native and UDP.

Has anybody an Idea or a source code for VS 2005/2008 VB/C++/C# for me? :D

pylades
Posts: 23
Joined: Fri Jun 29, 2007 6:19 am
Location: Europe

Post by pylades » Thu Apr 09, 2009 2:43 pm


zxcslo
Posts: 50
Joined: Wed Aug 16, 2006 8:49 pm
Location: Europe

Post by zxcslo » Thu Apr 09, 2009 5:09 pm

Why can't you use OPC?
It's very simple to use OPC in VS6/2005/2008.

Another way is to use FETCH/WRITE connections on PLC side (if you don't need very quick connections - less than 100 ms).

I use both (OPC and FETCH/WRITE) and until now I didn't need more than 1460 byte's in one package...

Regards

santosh0705
Posts: 5
Joined: Mon May 25, 2009 1:38 am
Location: India

Post by santosh0705 » Mon May 25, 2009 4:07 am

zxcslo wrote:Why can't you use OPC?
It's very simple to use OPC in VS6/2005/2008.

Another way is to use FETCH/WRITE connections on PLC side (if you don't need very quick connections - less than 100 ms).

I use both (OPC and FETCH/WRITE) and until now I didn't need more than 1460 byte's in one package...

Regards
Pls give some sample source code to communicate with OPC server using VS6/2008.

Tnx. in advance...

zxcslo
Posts: 50
Joined: Wed Aug 16, 2006 8:49 pm
Location: Europe

Post by zxcslo » Wed May 27, 2009 9:45 am

I always use Kepware OPC server, because is much better than Siemens. On Kepware web site ( http://www.kepware.com/KEP_KB/default.a ... oDo=browse ) you will find everything you need (including examples) to make connections from VB6/2005 to OPC server. It is realy very simple.

All the examples works also with other OPC servers (you just need to change the name of OPC server you wish to connect to).

You can download complete Kepware OPC server with all drivers (for connections to your PLC) for free, but it works only for two hours, then you must restart the OPC server. For testing is more than enough. It also have built-in OPC client, so you can test your OPC server configuration.

The thing I like most with Kepware is, that you can change the configuration of OPC server (tags, names, rates, drivers,...) ONLINE... you don't need to stop OPC server, make changes and start OPC server. You can make all changes online.

Regards...

Post Reply