PCI354-1022-38 模擬量輸入模塊 HYBR
PCI354-1022-38 模擬量輸入模塊 HYBR
PCI354-1022-38 作為TCP客戶端,轉(zhuǎn)換器上電時會主動向服務器請求連接,直到TCP連接建立為止,并且連接一旦建立將一直保持,連接建立后,數(shù)據(jù)服務器可以隨時向轉(zhuǎn)換器發(fā)送數(shù)據(jù),轉(zhuǎn)換器也可以隨時將數(shù)據(jù)發(fā)送到數(shù)據(jù)服務器。
3.UDP方式有兩種:
當C2000 工作在“UDP normal”模式時,C2000會回應所有的IP地址和端口發(fā)過來的數(shù)據(jù),并將返回的數(shù)據(jù)發(fā)送到一次發(fā)給它查詢請求的IP地址和端口。
當C2000 工作在“UDP Appointed”模式時,它能接收所有的IP地址和端口發(fā)過來的數(shù)據(jù),但只將返回的數(shù)據(jù)發(fā)送給的IP地址和端口。
b) 應用軟件可使用三種方式與轉(zhuǎn)換器通訊:
1.虛擬串口管理程序,將網(wǎng)絡(luò)數(shù)據(jù)重定向到虛擬串口,然后從虛擬串口讀取數(shù)據(jù);
2.用本公司開發(fā)的控件EDSockServer.ocx(或動態(tài)庫EDSockServer.dll);
3.使用Socket進行通訊。
PCI354-1022-38 As a TCP client, when the converter is powered on, it will actively request a connection from the server until the TCP connection is established, and the connection will remain once established. After the connection is established, the data server can send data to the converter at any time, and the converter can also send data to the data server at any time.
3. There are two UDP modes:
When C2000 works in "UDP normal" mode, C2000 will respond to the data sent by all IP addresses and ports, and send the returned data to the IP address and port sent to it for the last query request.
When the C2000 works in the "UDP approved" mode, it can receive data from all IP addresses and ports, but only send the returned data to the specified IP address and port.
b) The application software can communicate with the converter in three ways:
1. The virtual serial port management program redirects the network data to the virtual serial port, and then reads the data from the virtual serial port;
2. Use the control edsockserver developed by our company OCX (or dynamic library edsockserver. DLL);
3. Use socket for communication.