Mitsubishi MELSEC L Series User Manual page 62

Cpu module, built-in ethernet function
Hide thumbs Also See for MELSEC L Series:
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
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
Turns on or off according to the result of the SP.SOCOPEN instruction.
State
When completed Remains off.
When failed
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.
60
+0
D
+1
D
Turns on in the END processing of the scan after the SP.SOCOPEN instruction is completed and turns off
in the next END processing.
OFF
+0
OFF
S2
S1
and
S2
.
S1
+0.
S2
Description
END processing
END processing
SP.SOCOPEN instruction executed
ON
ON
When failed
1 scan when
Connection
normally completed
open
+2 to
+9.
S2
is other than 1 to 16.
exceed the device point range.
D
+0 and
+1.
D
D
END processing
(Error code: 4101)
(Error code: 4101)
(Error code: 4004)
for
H

Advertisement

Table of Contents
loading

Table of Contents