138
Ethernet module User’s Manual
Chapter 6 Socket Interface Communication
6
6.5.2
TCP socket sample programs
Two EN311 modules are mounted, one to Slot 6 and another to Slot 7 on the base. The
program for each module is to be registered as separate program.
• Transmission is performed via Slot 6, Socket 1 (Port number = 4000) ••• Active open
(timeout is 30 seconds) Æ Send Æ Close first
• Reception is performed via Slot 7, Socket 1 (Port number = 4001) ••• Passive open
(timeout is 30 seconds) Æ Receive Æ Close when RCLOSE is set to 1
• Number of send/receive words: 100 words
• Socket status address of Socket 1: 16 # 7E47 (word address)
(1) Initialization routine
Slot 6
Local station IP address: 133.113.90.10
Local station message transmission UDP port number: 4000
Slot 7
Local station IP address: 133.113.90.20
Local station message transmission UDP port number: 4001
Summary of Contents for V Series
Page 1: ...6F8C0904 Integrated Controller V Series Ethernet module EN311 User s Manual Sep 30 2004 ...
Page 12: ......
Page 16: ......
Page 34: ......
Page 40: ......
Page 106: ......
Page 180: ......
Page 199: ...6F8C0904 179 7 5 RAS Information Readout 7 Figure 7 1 Packet Format IP Datagram ...
Page 200: ...180 Ethernet module User s Manual Chapter 7 RAS Information 7 ...
Page 224: ......
Page 240: ......
Page 244: ......
Page 248: ......
Page 250: ......
Page 256: ......
Page 258: ......