60
(3) Function
This instruction opens a connection specified in
.
The set values used for the open processing is selected in
+0.
The result of the SP.SOCOPEN instruction can be checked with the completion device,
+0 and
+1.
• Completion device
+0
Turns on in the END processing of the scan after completion of the SP.SOCOPEN instruction, and turns
off in the next END processing.
• Completion device
+1
Turns on or off according to the result of the SP.SOCOPEN instruction.
• A connection with no parameters (no protocol is specified) can be opened. In this case, specify 8000
H
for
+0 and configure open settings in
+2 to
+9.
(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
is other than 1 to 16.
(Error code: 4101)
• The device numbers specified for
and
exceed the device point range.
(Error code: 4101)
• An invalid device is specified.
(Error code: 4004)
State
Description
When completed Remains off.
When failed
Turns on in the END processing of the scan after the SP.SOCOPEN instruction is completed and turns off
in the next END processing.
S1
S2
D
D
D
D
Program
END processing
END processing
END processing
When failed
1 scan when
normally completed
OFF
ON
ON
Completion device D
SP.SOCOPEN instruction
SP.SOCOPEN instruction executed
Connection
open
OFF
Completion device D +1
+0
S2
S2
S2
S1
S2
D
Summary of Contents for MELSEC L Series
Page 1: ......
Page 2: ......
Page 19: ...17 CHAPTER 1 OVERVIEW 1 Memo ...
Page 116: ...114 Memo ...
Page 123: ......