Sample Program - Mitsubishi Electric CR750-Q Instruction Manual

Cr750/cr751/cr760 series
Hide thumbs Also See for CR750-Q:
Table of Contents

Advertisement

Reply data-type specification
addition 3
RecvType3
Reservation 3
Reserve3
Data addition 3
pos / jnt / pls

7.1.2 Sample program

This is the sample program of the Ethernet interface.
(1) Sample program of data link
The sample program to do the data link with Microsoft Visual Basic 5.0/6.0 (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 soft-
ware.
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.
a) Program for the clients (when using the personal computer as the client and using the controller as the
server).
b) 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.
Here, VB requires either Professional Edition or Enterprise Edition. Learning Edition can not be used since
Winsock
(Windows Socket) control is not appended.
1) Preparation of Winsock control
Winsock control is added to the project.
Start-up VB, newly open standard EXE and click "component" of "project" menu, and the window will be dis-
played as follows. And, check "Microsoft Winsock Control **". (Lower left drawing ** represents the version)
"Winsock" is added to the tool box. (Lower right drawing)
unsigned short
It is the same as reply data-type specification (RecvType).
(2-byte)
Don't use it for instructions.
unsigned short
Not used.
(2-byte)
Any of POSE/
It is the same as data of pos/jnt/pls.
JOINT/PULSE.
Don't use it for instructions.
(40-byte)
Real-time external control function Appendix-591
7Appendix

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr750Cr751-qCr751-dCr760-dCr760-qCr750-d

Table of Contents