Chapter 6 Applied Instructions connection procedure is performed. After the socket has been connected, M0 will is switched OFF and M1 will be ON. 6. When M1 is ON, whether the socket has been connected and no data is being sent is checked. If the socket has been connected, and no data is being sent, the data will be sent. If the socket has not been connected, the instruction is not executed. After the sending of the data is complete, M1 will be switched OFF and M2 will be ON. 7. When M2 is ON, whether the socket has been connected and no data is being received is checked. If the socket has been connected, and no data is being received, the data will be received.
If the socket has not been connected, the instruction is not executed. After the sending of the data is complete, M2 will be switched OFF and M3 will be ON. 8. When M3 is ON, whether the socket has been connected is checked. If the socket has been connected, the connection will be closed. If the socket has not been connected, the instruction is not executed. After the connection is closed, M3 will be switched OFF. 6-507