Mitsubishi Electric QJ71E71-100 User Manual page 411

Q corresponding ethernet interface module
Table of Contents

Advertisement

(c) Redundant setting
(4) Sample program on the connected device
The program example of the connected device accessing the Q25PRHCPU in the E71-mounted station is
described. When this program is executed, the contents of the following communication messages are displayed
in order:
• Version of used Winsock
• Test starting message
• Batch write command message in word units
• Batch read response message in word units
• Test end message
Remark
The following is an outline of how to compile a program created using Microsoft
• Start Visual C++
• Create a project. From [File][New][Project], select ".NET" in "Project Types" and "Empty Project" in
"Templates", and set the project name (e.g. QJSAMP) and location.
• Create a source file. Open Solution Explorer. Then right-click Source Files and select [Add][Add New Item]. Set
the file name (e.g. QJSAMP.cpp) and location, and create a program according to the program example.
• From the project setting window, get WSOCK32.LIB linked. Open Solution Explorer. Then right-click the project
name (QJSAMP) and select [Properties][Configuration Properties][Linker][Command Line]. Type
WSOCK32.LIB in Additional Options and press the OK button.
• On the Build menu, click Build Solution to create an execution file (QJSAMP.EXE).
• Exit Visual C++
• Execute QJSAMP.EXE.
®
.NET.
®
.NET.
APPENDICES
®
®
Corporation Visual C++
.NET.
A
409

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qj71e71-b5Qj71e71-b2

Table of Contents