Mitsubishi Electric Q03UDVCPU User Manual page 113

Qnucpu series (communication via built-in ethernet port)
Hide thumbs Also See for Q03UDVCPU:
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 Remains off.
Turns on in the END processing of a scan after completion of the SP.SOCCLOSE instruction, and turns
When failed
off in 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 instruction is executed in the QnUDE(H)CPU with a serial number (first five digits) of "11011" or earlier
or a CPU module other than the Built-in Ethernet port QCPU.
• 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
(Error code: 4002)
(Error code: 4101)
(Error code: 4101)
(Error code: 4004)
111
7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents