361
APPENDICES
A
Appendix 9 Sample Program on the Connected Device Side
Appendix 9.2 When Visual Basic
(R)
.NET is used
Appendix 9.2 When Visual Basic
(R)
.NET is used
This section describes the program execution environment, data communication details, and a sample program for
when Visual Basic
.NET is used on the program of the connected device.
(1) Execution environment of the program example
(a) CPU module side
(b) Connected device side
(c) Communication protocol
TCP/IP is used.
(2) Outline of the program example
(a) Program on the CPU module side
Because parameters are set on the programming tool, no program is required.
(b) Program on the connected device side
Data (D0 to D4) in the CPU module are read out.
Item Description
A model name of the LCPU in the E71-connected station L02CPU
E71 I/O signal X/Y00 to X/Y1F
E71 IP address
C0.00.01.FD
H
(192.00.01.253)
E71 port number
2000
H
Programming tool setting
Ethernet operation
setting
Refer to Page 362, Appendix 9.2 (3) (a).
Open setting Refer to Page 362, Appendix 9.2 (3) (b).
Item Description
Operation environment
Microsoft
Windows
XP Professional Operating System
Ver.2002 Service Pack2
Ethernet interface board model name WINSOCK compatible board
Software development environment
Visual Basic
.NET 2003 manufactured by Microsoft
Corporation
MAC address
This setting is not required because the ARP function can be
used.
IP address An arbitrary number is assigned.
Port number An arbitrary number is assigned.