Mitsubishi L02CPU User Manual page 95

Melsec-l series
Hide thumbs Also See for L02CPU:
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
This device turns on during END processing of the scan where the SP.SOCCLOSE 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.SOCCLOSE instruction.
State
When
completed
Remains off.
normally
Turns on during END processing of the scan where the SP.SOCCLOSE instruction completes, and turns
When failed
off during the next END processing.
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.
. (Disconnection of a connection)
S1
+0
D
+1
D
END processing
SP.SOCCLOSE instruction executed
OFF
+0
OFF
Connection
close
is other than 1 to 16.
S1
and
exceed the device point range.
S2
D
CHAPTER 7 SOCKET COMMUNICATION FUNCTION
Description
END processing
END processing
ON
ON
When failed
1 scan when
normally completed
+0 and
+1.
D
D
7
(Error code: 4101)
(Error code: 4101)
(Error code: 4004)
93

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents