123
CHAPTER 7 SOCKET COMMUNICATION FUNCTION
7
7.4 Socket Communication F
unction
Instr
uctions
7.4.5 Sen
ding d
ata (SP.SOCSND)
(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.
(Error code: 4002)
• The connection number specified for
is other than 1 to 16.
(Error code: 4101)
• The device numbers specified for
,
, and
exceed the device point range.
(Error code: 4101)
• An invalid device is specified.
(Error code: 4004)
(5) Program example
When M3000 is turned on, data (1234, 5678, and 8901) are sent to the target device using the socket
communication function.
• Devices used
• Program
Device number
Application
SD1282
Open completion signal
D3000
SP.SOCSND instruction control data
D300
Send data length and send data storage location
M300
SP.SOCSND instruction completion device
S1
S2
S3
D
Setting send data length
Sending data to
Connection No.1
Normal completion
Error completion
Setting send data
Содержание melsec q03ud(E)cpu
Страница 2: ......
Страница 11: ...9 Memo ...
Страница 209: ...207 APPENDICES A Appendix 4 Specifications Comparison with Ethernet Module Memo ...
Страница 213: ...211 Memo ...
Страница 219: ......