4 Appendix
4.2. Sample program
This is the sample program of the Ethernet function.
4.2.1. Sample program of data link
The sample program to do the data link with Microsoft Visual Studio Express Visual Basic (hereafter written as VB) is
herein described.
The program creation is briefly introduced with the following procedure.
For details of VB operation and application producing method, refer to the instruction manual of this software.
(1) Preparation of Winsock control
(2) Production of form screen
(3) Program (Form1.frm)
There is the program following 2 passages. Use either according to the customer's system.
1) Program for the clients (when using the personal computer as the client and using the controller as the server).
2) Program for the server (when using the personal computer as the server and using the controller as the client).
* About the work of 1) 2), the client and the server are the same.
(1) Preparation of project
Create a Windows Forms application with VB.
4-2