109
CHAPTER 7 SOCKET COMMUNICATION FUNCTION
7
7.4 Socket Communication F
unction
Instr
uctions
7.4.1 Establishing a connection
(SP.SOC
O
PEN)
(5) Program examples
(a) Opening a connection using parameter settings
When M1000 is turned on, connection No.1 is opened using the parameters set in "Open settings" of PLC
parameter.
• Devices used
• Program
(b) Opening a connection using control data settings
When M1000 is turned on, connection No.1 is opened using control data.
• Devices used
• Program
Device number
Application
SD1282
Open completion signal
SD1284
Open request signal
SD1288
Connection state signal
D100
SP.SOCOPEN instruction control data
M100
SP.SOCOPEN instruction completion device
Device number
Application
SD1282
Open completion signal
SD1284
Open request signal
SD1288
Connection state signal
D100
SP.SOCOPEN instruction control data
M100
SP.SOCOPEN instruction completion device
Setting Execution/
completion type to 0
H
Normal completion
Error completion
Connection No.1 open
Setting Execution/
completion type to 8000
H
Setting Application area
to 200
H
(TCP/IP, Active open)
Normal completion
Setting port No. of target
device to 4096
Connection No.1 open
Setting port No. of host
station to 4096
Setting target IP address
to 10.97.79.14
Error completion
Summary of Contents for melsec q03ud(E)cpu
Page 2: ......
Page 11: ...9 Memo ...
Page 209: ...207 APPENDICES A Appendix 4 Specifications Comparison with Ethernet Module Memo ...
Page 213: ...211 Memo ...
Page 219: ......