Panasonic GM1 User Manual page 537

Motion controller controller rtex
Hide thumbs Also See for GM1:
Table of Contents

Advertisement

TCP SERVER processing example
The following is a processing example of data transmission / reception via TCP when the local
unit is TCP SERVER.
This processing example assumes the following operating environment.
Processing for data transmission / reception
The processing for data transmission / reception is as follows:
● TCP server open processing
● TCP connection processing
● Reception start processing
● Transmission processing
Explanation of variables
Process
When the value is rewritten, the following processing is executed. After the execution is
completed, the variable is set to 0 (invalid value).
1 = TCP server open processing
2 = TCP connection processing
3 = Reception start processing
4 = Transmission processing
MyAddr
The IP address of the local unit is set.
MyPort
The port number of the local unit is set.
SendData
Data to be sent is set.
RecvBuf
Received data is stored.
RecvCount
The number of receptions is stored.
RecvSize
The size of received data is stored.
sClientAddr
The IP address of the connected data destination is stored.
Result
The result of processing execution is stored. (TRUE: Error occurrence, FALSE: Normal
termination)
If the result of processing execution is abnormal, check the error code of each processing.
● NBS_ServError: Result of TCP server open processing
● NBS_ConErrorr: Result of TCP connection processing
WUME-GM1RTXOP-01
13.2 General-purpose Communication
13-11

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gm1 series

Table of Contents