93
CHAPTER 7 SOCKET COMMUNICATION FUNCTION
7
7.1 C
ommunication Usin
g TCP
(3) Program example for Passive open
The following shows a communication flow of a Passive open.
(a) Parameter setting
The following parameters are set for the sample program.
Project window
[Parameter]
[PLC Parameter]
[Built-in Ethernet Port Setting]
/
button
*1
*1
button can be used with the QnUDVCPU.
• For "Ethernet Conf.", drag and drop "Unpassive Connection Module" or "Fullpassive Connection Module"
from "Module List" to the left side on the window. Set the port numbers and IP address as mentioned below.
Item
Setting
PLC
Port No.
4096 (Setting range: 1 to 4999, 5010 to 65534)
Do not specify 5000 to 5009 because these ports are used by the system.
(
Sensor/Device
IP Address
Blank.
When "Fullpassive Connection Module" is selected, a value must be set.
(Setting range: 0.0.0.1 to 223.255.255.254)
Port No.
Blank.
When "Fullpassive Connection Module" is selected, a value must be set.
(Setting range: 1 to 65534)
Send or receive?
Send by the SP.SOCSND
instruction, or receive by
the SP.SOCRCV or
S.SOCRCVS instruction.
NO
Waiting for TCP connection in
Passive open state.
YES
Start
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: ......