Socket Communications Flow - YASKAWA MP920 User Manual

Machine controller
Table of Contents

Advertisement

7 218IF Module

7.7.2 Socket Communications Flow

7.7.2

Socket Communications Flow

The following diagram shows the logical programming flow using a socket interface.
TCP
Master
Start
socket
Socket created
bind
IP address and port
No.allocation
Connection established
connect
Connected
send
Data sending
recv
Data receiving
Connection closed
close
Disconnected
UDP
Master
Start
socket
Socket created
bind
IP address and port
No. allocation
send to
Data sending
rev from
Data receiving
Connection closed
close
Disconnected
Note: With the 218IF Module, the sequence in the Master is automatically performed
by the MSG-SND system function, and the sequence in the Slave is automatically
performed by the MSG-RCV system function.
Slave
Start
socket
Socket created
bind
IP address and port
No.allocation
listen
Connection preparations
accept
Connected
recv
Data receiving
send
Data sending
close
Disconnected
Slve
Start
socket
Socket created
bind
IP address and port
No. allocation
rev from
Data receiving
send to
Data sending
close
Disconnected
7-34

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents