SITEMAP   PRIVACY   JAPANESE
FAWEB
  JAPAN   HOME  |  Product  |  Support  |  Knowledge  |  Download  |  Sales  |  Company  |  Contact
DAServer

DAServer
Top Page
Feature
Datasheet
Introduction
Overview
Release Note
FAQ
Price
SAMPLE
   MELSEC-Q
   MELSEC-QnA
   MELSEC-A
   Visual Basic 6.0
   Visual C/C++ 6.0
   EXCEL
   InTouch
Manual/Demo

OnlineShop

You are Here : HOME > Product > DAServer > Visual Basic 6.0 Sample BACK

DAServer


DDE Client Sample for Visual Basic 6.0

It introduces the easy sample program that Microsoft Visual Basic 6.0 accesses the DAServer.
This sample project can be downloaded here.

NOTES Our company does neither any operation guarantee nor the support for the sample code and each explanation that has been opened to the public to this site. The function is recommended to be verified enough when used.


Sample of VB Form using
In this sample, it writes and the function of four is used, a connection to the DAServer, manual read operation, automatic read operation, manual poke operation.

DAServer VB Form

It can access the data of PLC only by arranging the text box control and the label control, etc. , and setting property "LinkTopic", "LinkItem", and "LinkMode" related to DDE.


VB Code Sample


DDE Test Client
The sample program of Visual Basic 6.0 is appended to the product version. To support DDE automatic DDE manual operation link/link, and to test most functions of our company DAServer, this sample is made.
DAServerTest Client

Operation
1. Define DDE Topic Name on the DAServer manager. 2. Start DAServer(Ex. "Takebishi.MelsecEthernet.1") on the DAServer manager.
3. Select AppName (application name) and TopicName (topic name) and press "Connect." Select using DAServer name such as "MelsecEthernet" for the application name, and enter the topic name defined on the DAServer manager.
4. Enter the tagname (device name) in Item Name and press "Request" to read the value. If you press "Auto Read," it reads the value regularly.
5. Enter a value in Data and press "Poke" to write the value to the PLC.
6. Select the device type if you wish to use ASCII and double word, for example, select the device number in Number, access points in Points, and access type in Type to enable regular read, automatic read, and write.
7. Press "DisConnect" to disconnect from the server.

BACK

Copyright © 1998-2006 TAKEBISHI Corporation All rights reserved.

FAWEB.NET
TAKEBISHI Corporation
29 Mamedacho Nishikyogoku Ukyoku Kyoto 615-8501, JAPAN
TEL: +81-75-325-2171 / FAX: +81-75-325-2273 fa-support@takebishi.co.jp