Technical Forum

Motion Control System SIMOTION

TCP connection between SIMOTION D & S7-300

Thread Starter: anxiao   Started: 5/16/2012 3:19 AM   Replies: 2

« Previous thread Next thread »
Page 1 of 1 (3 items)
  5/16/2012, 3:19 AM
Joined 11/3/2011
Last visit: 5/8/2013
Posts: 5
Rating:
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 

Dear Friends,

A  TCP connection was established between SIMOTION D & S7-300(CP343-1),
the S7-300 was server.  The system function : _tcpopenclient _tcpsend _tcpcloseconnection were used(Background task). And data was transfered successfully.
I turn off the PLC' power,then turn on the power. and the connection can't be established.
Enable  _tcpcloseconnection ,then enable _tcpopenclient again, a new connection can't be established,either.
It seems only if you restart the SIMOTION'CPU, the connection become normal.

How to make SIMOTION D reestablish the TCP connection automatically in condition of PLC power off then power on?

CF card  :  v4.2

Top
  5/21/2012, 9:39 AM
Joined 6/22/2006
Last visit: 5/21/2013
Posts: 109
Rating:
Rated: Excellent [4.38 out of 5 / rated 8 time(s)]. (8) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hi,

The LCom library is based on TCP/IP and simplifies the use of SIMOTION system functions.

You can find the library LCom on the DVD Utilities&Applications which is a content of the SCOUT delivery.

Regards
Manfred

Top
  5/21/2012, 10:43 AM
Joined 11/27/2007
Last visit: 5/23/2013
Posts: 844
Rating:
Rated: Outstanding [3.88 out of 5 / rated 59 time(s)]. (59) 
Rated: no ratings [0 out of 5 / rated 0 time(s)]. (0) 
Hello Anxiao,
what does the special diagnostic of CP343-1 show for the TCP connection? "passive connection establishment in progress" or anything else?
How did you parameterize the connection in NETPRO of S7-300? I recommend an unspecified connection (without IP address and port of the remote station).

Regards,
Kaulquappe
Top
Page 1 of 1 (3 items)
Actions