744
10 BUILT-IN ETHERNET FUNCTION INSTRUCTIONS
10.2 Socket Communications Function Instructions
■
Control data
*1 System: The CPU module stores the execution result of the instruction.
• When the SP.SOCRCV instruction is executed, reading data from the socket communication receive data
area is executed with the END processing. Thus, executing the SP.SOCRCV instruction extends the scan
time.
• When the data of odd-number of bytes is received, invalid data is stored in the higher byte of the device
where the last receive data is stored.
Processing details
In the END processing after the execution of the SP.SOCRCV instruction, the receive data of the connection specified by (s1)
is read from the socket communication receive data area.
The completion of the SP.SOCRCV instruction can be checked using the completion devices (d2)+0 and (d2)+1.
• Completion device (d2)+0: Turns ON during the END processing for the scan in which the SP.SOCRCV instruction is
completed, and turns OFF during the next END processing.
• Completion device (d2)+1: Turns ON or OFF depending on the status when the SP.SOCRCV instruction is completed.
Device
Item
Description
Setting range
Set by
(s2)+0
System area
(s2)+1
Completion status
The status at the completion of the instruction is stored.
0000H: Completed successfully
Other than 0000H: Completed with an error (error code)
For error codes, refer to
MELSEC iQ-F FX5 User's Manual
(Ethernet Communication).
System
(d1)+0
Receive data length
The data length of the data read from the socket communication
receive data area is stored. (Number of bytes)
0 to 2046
System
(d1)+1 to
(d1)+n
Receive data
The data read from the socket communication receive data area is
sequentially stored.
System
Status
Description
When completed normally
The device does not change (remains OFF).
When completed with an error
The device turns ON during the END processing for the scan in which the SP.SOCRCV instruction is completed, and turns
OFF during the next END processing.
(d1)+0
(d1)+1
(d1)+2
(d1)+n
CPU module
Receive data
length
SP.SOCRCV
(reading
receive data)
Socket communications
receive data storage area
Connection number
specified by (s1)
Receive data
Receive data
Receive data
External device
Receiving
data
Содержание MELSEC iQ-F FX5
Страница 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Страница 2: ......
Страница 17: ...15 CONTENTS ...
Страница 24: ...22 MEMO ...
Страница 25: ...23 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW 2 PRECAUTIONS ON PROGRAMMING ...
Страница 126: ...124 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 132: ...130 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 140: ...138 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 191: ...7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions 189 7 Operation error There is no operation error ...
Страница 202: ...200 7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions Operation error There is no operation error ...
Страница 278: ...276 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 280: ...278 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 915: ...18 TYPE CONVERSION FUNCTIONS 18 13 Converting DWORD to WORD 913 18 Operation error There is no operation error ...
Страница 917: ...18 TYPE CONVERSION FUNCTIONS 18 14 Converting DWORD to INT 915 18 Operation error There is no operation error ...
Страница 932: ...930 18 TYPE CONVERSION FUNCTIONS 18 26 Converting DINT to WORD Operation error There is no operation error ...
Страница 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Страница 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Страница 1107: ...I 1105 MEMO ...
Страница 1111: ......