Mitsubishi MELSEC L Series User Manual page 66

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

Advertisement

(3) Function
This instruction closes a connection specified in
The result of the SP.SOCCLOSE instruction can be checked with the completion device,
• Completion device
Turns on in the END processing of a scan after completion of the SP.SOCCLOSE instruction, and turns off in
the next END processing.
• Completion device
Turns on or off according to the result of the SP.SOCCLOSE instruction.
State
When
completed
When failed
Program
SP.SOCCLOSE instruction
Completion device D
Completion device D +1
(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.
Remark
Do not use Passive open for execution of the SP.SOCCLOSE instruction. Doing so will turn off the Open completion signal
and Open request signal of the connection and cause close processing, which disables data transfer.
64
+0
D
+1
D
Remains off.
Turns on in the END processing of a scan after completion of the SP.SOCCLOSE instruction, and turns off
in the next END processing.
OFF
+0
OFF
S1
and
S2
. (Disconnection of a connection)
S1
Description
END processing
END processing
SP.SOCCLOSE instruction executed
ON
ON
When failed
1 scan when
Connection
normally completed
close
is other than 1 to 16.
exceed the device point range.
D
+0 and
D
D
END processing
(Error code: 4101)
(Error code: 4101)
(Error code: 4004)
+1.

Advertisement

Table of Contents
loading

Table of Contents