Mitsubishi Electric Q03UDVCPU User Manual page 110

Qnucpu series (communication via built-in ethernet port)
Hide thumbs Also See for Q03UDVCPU:
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
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 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.
108
+0
D
+1
D
Remains off.
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: 4002)
(Error code: 4101)
(Error code: 4101)
(Error code: 4004)
for
H

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents