General-Purpose Communication (Serial) - Panasonic GM1 User Manual

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

Advertisement

● 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 client connection processing
2 = Reception start processing
3 = Transmission processing
ClientAddr
The IP address of the destination unit is set.
Port
The port number of the destination unit is set.
TimeOut
A connection timeout period 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.
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_ClientError: Result of TCP client connection processing
● NBS_WriteError: Result of transmission processing
● NBS_ReadError: Result of reception start processing
Operation example
The TCP client connects to the TCP server.
● The value of "Process" is changed to 1.
The local unit is ready to receive data. In this state, the local unit can receive data from the
destination unit.
● The value of "Process" is changed to 2.
The local unit sends data to the destination unit. 10-byte data is sent to the destination unit.
● The value of "Process" is changed to 3.
WUME-GM1RTXOP-01
13.2 General-purpose Communication
13-7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gm1 series

Table of Contents