Mitsubishi Electric Q03UDVCPU User Manual page 117

Qnucpu series (communication via built-in ethernet port)
Hide thumbs Also See for Q03UDVCPU:
Table of Contents

Advertisement

(3) Function
This instruction reads out received data of the connection specified in
data area in the END processing after execution of the SP.SOCRCV instruction.
Receive data
D1 +0
length
Receive data
D1 +1
D1 +2
Receive data
Receive data
D1 +n
The result of the SP.SOCRCV instruction can be checked with the completion device
• Completion device
Turns on in the END processing of the scan after completion of the SP.SOCRCV instruction, and turns off in
the next END processing.
• Completion device
Turns on or off according to the result of the SP.SOCRCV instruction.
State
When completed
Remains off
Turns on in the END processing of the scan after completion of the SP.SOCRCV instruction, and turns
When failed
off in the next END processing.
The following figure shows the timing of reception processing with the SP.SOCRCV instruction.
Open completion
signal (SD1282, n)
Sequence program
Reception status
signal (SD1286, n)
SP.SOCRCV
instruction
Completion
D2
device
Completion
D2
+1
device
CPU module
Socket communication
receive data area
Connection
No. specified by S1
SP.SOCRCV
(Reading receive data)
+0
D2
+1
D2
Data
Open
transmission
processing
processing
ON
OFF
END
processing
ON
ON
OFF
OFF
ON
OFF
ON
OFF
CHAPTER 7 SOCKET COMMUNICATION FUNCTION
from the Socket communication receive
S1
External device
Receiving
Description
Data read
processing
END
END
processing
processing
SP.SOCRCV instruction execution
1 scan
Abnormal termination
Data
read
ACK
processing
(TCP only)
+0 and
+1.
D2
D2
115
7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents