NPORT5230编程要点:
服务器控制:
一、 初始化:Declare Function nsio_init “IPSerial.dll” () as long
NSIO_OK(0): OK;
石油是怎么形成的NSIO_SOCK_INIT_FAIL(-201): Socket initialize error.
NSIO_THREAD_ERR(-3):Create background thread fail.
二、 结束:Declare Function nsio_end "IPSerial.dll" () As Long
NSIO_OK(0): OK;
NSIO_SOCK_ERR(-202):Communication with NPort error
三、 复位:Declare Function nsio_retrver "IPSerial.dll" (ByVal rver_ip As String, ByVal password As String) As Long
房屋交易合同
NSIO_OK(0): OK;
NSIO_TIMEOUT(-203):Communication with NPort timeout
NSIO_NOT_ALIVE(-102):NPort is not alive. Maybe the NPort is power down or network cable is disconnected 天人互动
NSIO_SOCK_ERR(-202):Communication with NPort error
四、 是否活动:Declare Function nsio_checkalive "IPSerial.dll" (ByVal rver_ip As String, ByVal 党风廉政谈心谈话timeout As Long) As Long
rver_ip: NPort IP address, specified by null terminated string. Ex: "192.168.127.254".
timeout: The timeout value for connecting NPort in milliconds.
NSIO_OK(0): OK;
NSIO_SOCK_ERR(-202):Communication with NPort error
NSIO_TIMEOUT(-203):Communication with NPort timeout
恋空电影NSIO_NOT_ALIVE(-102):NPort is not alive. Maybe the NPort is power down or network cable is disconnected
端口控制:
一、 打开端口:Declare Function nsio_open "IPSerial.dll" (ByVal rver_ip As String, ByVal port_index As Long, ByVal 与的拼音timeouts As Long) As Long
rver_ip: NPort IP address, specified by null terminated string. Ex: "192.168.127.254".
port_index: The rial port number of the NPort. 1 for 1st port, 2 for 2nd port, and so on.
Timeouts: The timeout value for communicate with NPort in milliconds.
Succeed:Port id.
活字开头的成语NSIO_BADPARM(-2):Bad parameter
NSIO_MEMALLOCERR(-4):memory allocate error
NSIO_SOCK_INIT_FAIL(-201): Socket initialize error.
NSIO_CONNECT_FAIL(-200):Connect to NPort fail. Maybe the NPortis power down or network cable is disconnected.
樱花的季节NSIO_SOCK_ERR(-202):Communication with NPort error
NSIO_TIMEOUT(-203):Communication with NPort timeout