EasyManua.ls Logo

YASKAWA MP3000 Series - Page 340

YASKAWA MP3000 Series
435 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2.11 Communications with a Windows PC (FA-Server)
Using Automatic Reception with the MP3000 as a Slave
2-322
9.
In addition to the connection method, set up the
DDE*
or
OPC
properties just below
Interface
in
the tree view on the left side.
* For DDE, make sure that the Topic Name check box is selected on the Basic Setting Tab Page of the
Property Dialog Box.
This concludes the setup for the FA-Server. Set any other parameters as necessary, and then save the set-
tings.
Visual Basic Setup
Use the following procedure to create a Visual Basic program to access registers in the MP3000 via the
FA-Server.
A Visual Basic program can access FA-Server using either DDE (Dynamic Data Exchange) or OPC (OLE
for processing control).
Using DDE in Visual Basic
Turn ON the power to the MP3000 that you set up. Place the FA-Server that you set up in online status.
Start Visual Basic 6.0 and select
New Standard EXE
.
Place four TextBox controls from the toolbar onto the form.
Set the TextBox properties in the following order.
The current values of the device will be displayed.
Place four CommandButton controls from the toolbar onto the form.
Double-click the
CommandButton
Control and enter the following code.
In addition to DDE and OPC, IPLink can also be used to interface the Visual Basic and FA-Server.
Contact the Roboticsware, Inc. for further information.
TextBox Settings to Read the Value of T01 (MW00000)
Link Topic FASERVER
|
U01.F01
Link Item T01
Link Mode 1 - Automatic
CommandButton Settings to Write the Value in TextBox to T01 (MW00000)
Private Sub Command1_Click()
Text1.LinkPoke
End Sub
Note
Example
Example

Table of Contents

Other manuals for YASKAWA MP3000 Series

Related product manuals