Mitsubishi L02CPU User Manual page 91

Melsec-l series
Hide thumbs Also See for L02CPU:
Table of Contents

Advertisement

(3) Function
This instruction opens a connection specified in
The set values used for the open processing is selected in
The result of the SP.SOCOPEN instruction can be checked with the completion device,
• Completion device
This device turns on during END processing of the scan where the SP.SOCOPEN instruction completes, and
turns off during the next END processing.
• Completion device
This device turns on or off according to the result of the SP.SOCOPEN instruction.
State
When completed
Remains off.
normally
Turns on during END processing of the scan where the SP.SOCOPEN instruction completes, and turns
When failed
off during the next END processing.
Program
SP.SOCOPEN instruction
Completion device D
Completion device D +1
• A connection with no parameters (no protocol is specified) can be opened. In this case, specify 8000
+0 and configure open settings in
S2
(4) Error
A detection of an operation error turns on the Error flag (SM0) and a corresponding error code is stored in SD0
when:
• The connection number specified for
• The device numbers specified for
• An invalid device is specified.
.
S1
+0
D
+1
D
END processing
SP.SOCOPEN instruction executed
OFF
+0
OFF
Connection
+2 to
+9.
S2
S2
is other than 1 to 16.
S1
and
exceed the device point range.
S2
D
CHAPTER 7 SOCKET COMMUNICATION FUNCTION
+0.
S2
Description
END processing
END processing
ON
ON
When failed
1 scan when
normally completed
open
+0 and
+1.
D
D
for
H
(Error code: 4101)
(Error code: 4101)
(Error code: 4004)
89
7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents