LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using data socket with ni opc server exceeding the max connection number

we are now using data socket with ni opc server to communicate with S7 PLCs.

now we have totally 3200 connections built by data socket open vi, stored in DVR, but occasionally, the write operation is ok while the value in plc is not updated!

notice that in data socket server, the max connection number is 1000 and now we have 3200 connections.

at this time , how does the data socket server process  and whether this is the reason!

many thanks!

0 Kudos
Message 1 of 6
(1,939 Views)

@royceking wrote:

now we have totally 3200 connections built by data socket open vi, stored in DVR,


Why?

 

Or rather, why not open one connection, and read\write 3200 times over that connection?

0 Kudos
Message 2 of 6
(1,912 Views)

because we have 3200 items on the opc server

0 Kudos
Message 3 of 6
(1,910 Views)

@royceking wrote:

because we have 3200 items on the opc server


But you don't need 3200 connections. One connection can read\write 3200 items.

0 Kudos
Message 4 of 6
(1,904 Views)

curious about how? how one connection can read/write 3200 items.

maybe there is some misunderstand.

here, 3200 connections, i mean open datasocket with specific url 3200 times.

and you mean 3200 items use one tcp conneciton as this white paper says? 

http://www.ni.com/zh-cn/innovations/white-papers/06/datasocket-transfer-protocol--dstp--overview.htm...

The DataSocket server uses the same TCP connection for all DataSocket items that exist within the same process space.

0 Kudos
Message 5 of 6
(1,888 Views)

Ah. Sorry about that. The old DS does seem to require the URL at open time.

 

This DS stuff is old. In fact, IIRC, it's been announced obsolete for years now.

 

IIRC, you can access DS with either raw TCPIP and\or Shared Variables. You can open a SV connection and use it to read multiple URLs. I'm not sure if that resolves the limit though.

0 Kudos
Message 6 of 6
(1,880 Views)