Mitsubishi MELSEC L Series User Manual page 75

Cpu module, built-in ethernet function
Hide thumbs Also See for MELSEC L Series:
Table of Contents

Advertisement

(2) Control data
Device
Item
System area
+0
S2
Completion
+1
S2
status
Send data length
+0
S3
+1
S3
to
Send data
+n
S3
*3
The "Set by" column indicates the following.
User: The data must be set before executing the SP.SOCSND instruction.
System: The CPU module stores the execution result of the SP.SOCSND instruction.
(3) Function
This instruction sends data set in
S3 +0
S3 +1
S3 +2
S3 +n
The result of the SP.SOCSND instruction can be checked with the completion device,
• Completion device
Turns on in the END processing of the scan after completion of the SP.SOCSND instruction, and turns off in
the next END processing.
• Completion device
Turns on or off according to the result of the SP.SOCSND instruction.
State
When completed Remains off.
Turns on in the END processing of the scan after completion of the SP.SOCSND instruction, and turns off
When failed
in the next END processing.
Program
SP.SOCSND instruction
Completion device D
Completion device D +1
Description
Completion status is stored.
0000
: Completed
H
Other than 0000
: Failed (Error code)
H
The length of send data is specified (in bytes).
Send data are specified.
to the target device of the connection specified by
S1
CPU module
Send data
length
Send data
Send data
SP.SOCSND
(Sending data)
Send data
+0
D
+1
D
END processing
SP.SOCSND instruction executed
OFF
+0
OFF
Data sending
CHAPTER 6 SOCKET COMMUNICATION FUNCTION
Setting range
-
1 to 2046
External device
Description
END processing
END processing
ON
ON
When failed
1 scan when
normally completed
*3
Set by
-
-
-
System
User
-
.
S3
+0 and
+1.
D
D
73
6

Advertisement

Table of Contents
loading

Table of Contents