KV COM+ Library Manual
KV COM+ Library Manual
Programming
Chapter 2 Technique
Data Collection/Transfer・Monitoring Software KV-DH1LE
Property Page
Chapter 3 Setting Method
Device List
Error Message Lists
Please read this Manual before use.
Keep this Manual in a safe place for later reference.
This manual describes function, operation procedures, precautions, etc. of KV COM+ Library. Be sure
to carefully read and fully understand this manual before use. In addition, keep this manual in an easy-
to-reach place so that you can use it from time to time.
Related manuals
Read the following manuals when using KV COM+ Library.
Make contact with our branch offices at the back of this manual to request those manuals.
Symbols
The following symbols are used to understand important matters at one view. Be sure to read below.
DANGER Failure to follow the matters described in this manual will result in death or sever injury.
WARNING Failure to follow the matters described in this manual may result in death or severe injury.
CAUTION Failure to follow the matters described in this manual may result in moderate or minor injury.
Failure to follow the matters described in this manual will cause a damage to the product
NOTICE
itself as well as other properthe’s.
Reference Useful information or information that helps understanding of descriptions in this manual.
General Precaution
• Proceed with care when modifying this product, or when using it in a manner that falls out of the
range indicated in its specifications, since KEYENCE is unable to guarantee device functionality or
performance in such situations.
• Use this product in combination with other devices only after careful consideration, since the product
may fail to satisfy its functionality and performance capabilities as a result of the conditions and
environment in which it is used.
• Part or all of this manual can not be used or copied without prior consent of KEYENCE.
• Information in this manual may be changed without prior notice.
• Company names and product names described in this manual are registered trademarks or
trademarks of each company.
• Microsoft, Windows, Visual Studio, Visual Basic, Visual C++, Excel, Access are registered
trademarks or trademarks of Microsoft Corporation in the United States or other respective countries.
96118E 1
Software License Agreement
By using or copying all or any portion of KV COM+ Library (hereinafter referred to as “This Software”),
you accept all the terms and conditions of this Software License Agreement (hereinafter referred to as
“This Agreement”).
1. Definition
1.1 “use” or “using” means to access, install, download, copy, or otherwise benefit from using the
functionality of This Software.
1.2 “This Software” means the software and all associated documentation provided by KEYENCE.
2. Grant of License.
2.1 As long as you comply with all of the terms and conditions of This Agreement, KEYENCE grants
to you a non-exclusive license to use This Software.
2.2 You may install This Software on a single computer (in the case of KV-DH1LE-5: 5 computers) in
order to use the products produced by KEYENCE.
3. Limitation on Copying.
3.1 You may make one copy of this software for backup purposes only.
4. Restrictions.
4.1 Other than installation of updates or new functions provided by KEYENCE, you may not modify or
add any functions to This Software.
4.2 You may not reverse engineer, decompile, or disassemble This Software.
4.3 You may not create derivative works based on This Software.
4.4 Other than expressly stated by KEYENCE, you may not resell, retransfer, rent, or otherwise
redistribute This Software to any third parties.
5. Copyright.
5.1 This Software is the property of KEYENCE. Other than expressly stated herein, This Agreement
does not grant you any intellectual property rights.
6. Disclaimer.
6.1 This Software is being delivered to you “AS IS” and KEYENCE makes no warranty as to its use or
performance. In no event will KEYENCE or its suppliers be liable to you for any damages, claims,
costs, or any lost profits caused by using This Software.
7. Termination.
7.1 This Agreement will automatically expire when you stop using This Software.
7.2 The license will terminate if you fail to comply with the terms and conditions of This Agreement.
KEYENCE may terminate the license by notifying you that your continued use of This Software is
prohibited. In the event the license is terminated for any reason, you must destroy This Software
including its backup copy.
7.3 You will compensate KEYENCE for costs or any lost profits caused by your violation of This
Agreement.
8. Governing Law.
8.1 This Agreement will be governed by Japanese laws and regulations.
8.2 If any part of This Agreement is found void and unenforceable, it will not affect the validity of the
balance of This Agreement, which shall remain valid and enforceable according to its terms and
conditions.
1
The chapter describes programming technique using KV 2
Chapter 2 Programming
Technique
COM+ Library for each language supported.
3
The chapter describes how to set property pages. 4
Chapter 3 Property Page
Set value of property can be easily set on property pages.
Setting Method
5
This chapter describes properties, methods and events of A
Chapter 4 Property Method
Event
KV COM+ Library.
Preface ....................................................................................................................0
Safety Precautions .................................................................................................1
Software License Agreement ................................................................................2
How This manual Is Organized .............................................................................3
Contents .................................................................................................................4
Conventions Used In This Manual .....................................................................10
Terminology ......................................................................................................... 11
Symbols ............................................................................................................... 11
1 Before Use
1-1 Overview ....................................................................................................1-2
1-2 Operation Environment and System Configuration ..............................1-3
Operation Environment ......................................................................................1-3
System Configuration .........................................................................................1-4
1-3 Software Installation .................................................................................1-5
Before Installation of KV COM+ Library .............................................................1-5
Installation of KV COM+ Library .........................................................................1-6
1-4 Safety Precautions .................................................................................1-10
2 Programming Technique
2-1 Configuration and Function .....................................................................2-2
Configuration of KV COM+ Library .....................................................................2-2
How to Use KV COM+ Library ............................................................................2-5
2-2 Program Creation on Visual Studio ........................................................2-6
Use of KV COM+ Library (on Visual Basic 2005) ..............................................2-6
Program Example - Switching Operation Mode of KV Series PLC ....................2-8
Program Example - Synchronous Monitor .......................................................2-14
Program Example - Asynchronous Monitor ......................................................2-20
Program Example - Device Trigger ..................................................................2-28
Use of KV COM+ Library (When Using Visual C++) ........................................2-38
2-3 Use of KV COM+ Library on Excel ........................................................2-41
Use on a Worksheet .........................................................................................2-41
Use on User Form ............................................................................................2-43
2-4 Use of KV COM+ Library on Access .....................................................2-45
Appendices
1 USB Driver Installation ............................................................................ A-2
Install on Windows 7/Vista ................................................................................ A-2
Install on Windows XP ....................................................................................... A-2
2 Device List ................................................................................................ A-4
3 Bit Specification of Word Device ........................................................... A-8
4 Model Change .......................................................................................... A-9
5 Error Message Lists .............................................................................. A-10
ActiveX ............................................................................................................ A-10
Each object ................................................................................................. A-10
During communication ................................................................................. A-12
Other .......................................................................................................... A-14
DLL .................................................................................................................. A-15
6 About Compatibility ............................................................................... A-20
7 Index ....................................................................................................... A-21
Chapter title This section explains how to set the basic functions of KV COM+ for Excel.
Function Part
Monitor Mid-heading
Index for each 2
At the occurrence of a trigger (that can be set by cycle, time, device, or button), the PLC device value
is written into a set cell. It is also possible to write a cell value into a PLC device at the occurrence of
chapter
a trigger or at the confirmation of input.
Sub-heading
Setting Basic Functions
4 better understanding
operations in procedure Select a device type and enter a device number.
Term Description
Refers to the overall system of a programmable logic controller; it contains a base
PLC unit and CPU unit with each units mounted. The word PLC here represents the
overall system.
PC Stands for personal computer.
KV STUDIO Indicates KV STUDIO Ladder Support Software.
Ladder program Indicates programs compiled with KV STUDIO Ladder support software.
Symbols
Menus and buttons in this manual are indicated using the following marks and symbols.
Symbol Description
[ ] Menu item, which can be selected from menu.
" " - Name of dialog box or item.
- Buttons with text description on dialog box in various operations (such as performing
and canceling).
Ctrl CTRL key on keyboard.
Before Use
Before Use 1
KV COM+ Library supports ActiveX control* which makes it easier to handle PLC information with user
applications including Microstate Excel.
Since most properties can be easily set on property pages not requiring complex communication
programs, the coding amount is significantly reduced. KV COM+ Library is the most suitable for
1 programmers who want to create original programs to deal with PLC information or who are not
satisfied with KV COM+ for Excel.
Overview
PC
KV COM+ Library
KV-5000
KV STUDIO
simulator Communication
Before Use
This section describes operation environment and system configuration of KV COM+ Library.
Operation Environment
1
The following environment is required for operation of KV COM+ Library.
《PLC》
KV COM+ Library supports the following PLC.
• KV-5500
• KV-5000
• KV-3000
• KV-1000
• KV-700
System Configuration
1
Operation Environment and System Configuration
VT3 series
Routing setting (VT/DT)
KV-3000/1000/700/L20V
Ethernet switch
Ethernet connection
Ethernet connection
(STP/UTP straight cable)
Ethernet connection
(STP/UTP cross cable)
Serial connection
㧔RS-232CޔRS-422A㧕
Ethernet KV-5500/5000/LE20V/LE21V/EP21V
Routing setting (FL-net) KV-5000/KV-FL20V
(VT/DT) KV-3000/1000/700/L20V
Bluetooth USB connection
(EtherNet/IP) KV-5500/KV-EP21V
connection
Serial KV-3000/1000/700/L20V
USB KV-5500/5000/3000/1000/700
Bluetooth KV-5500/5000*1/3000 (Ver.2 above)
(* For 1 KV-5000, Ver.1.1 above)
Before Use
This section explains installation and uninstallation of KV COM+ Library.
“KV COM+ Library installation CD” also includes both ActiveX and DLL.
Software Installation
Check the following items before starting the installation of KV COM+ Library.
● USB Port
To connect each device with USB, USB port on the PC must be able to detect the device. For setting
details, refer to the PC manual.
USB connection requires USB driver for each connected device.
"USB Driver Installation"(A-2 page)
● Ethernet Port
To connect each device with USB, USB port on the PC must be able to detect the device. For setting
details, refer to the PC manual or ask your network administrator.
● Bluetooth
To connect each device with USB, USB port on the PC must be able to detect the device. For setting
details, refer to the PC manual.
This section describes how to install KV COM+ Library on Windows 7 with the following drive
1 1
configuration.
Point • Shut down all other software running on the PC before starting installation. If antivirus
software is running, installation may take more time.
• Only the administrator, users with rights to change the system, can install this software;
administrator login is necessary.
2 Place “KV COM+ Library installation CD” in the CD-ROM drive on the PC.
“KV COM+ Library installation CD” starts automatically due to automatic execution system. If the
installation program is automatically activated, go to step 5. If not, go to step 3.
Before Use
Progress bar shows preparation progress for setup.
Software Installation
6 When the next dialog box is displayed, click “Next (N)” button. To cancel setup, click “Cancel”
button.
7 When the next dialog box is displayed, read the software licensing. If you agree, click the radio
button for “I accept the terms in the license agreement” and click “Next (N)” button.
8
Before Use
Enter user name, Organization, Serial Number and click "Next (N)" button.
The serial number is on "License certificate" included in the package.
1
Software Installation
10 When the next dialog box is displayed, click "Install" button. To quit setup, click "Cancel"
button.
11 When setup is finished successfully, a message comes up to indicate the end of the setup
Before Use
procedure.
Click "Finish" button to finish installation.
Software Installation
This section describes the notes when using KV COM+ Library. Be sure to read carefully.
● Interface of PC
Make sure that devices connected to serial, USB, Ethernet port or Bluetooth is detected by the PC. If
1 not set properly, devices do not work. For setting details, refer to the PC manual.
During communication, do not turn off the connected devices or pull the connection cable out to avoid
communications errors.
This section describes the overview of configuration and function of KV COM+ Library as well as how to
use KV COM+ Library.
2 KV COM+ Library supports ActiveX control which makes it possible easy handling of information in
PLCs through communication with KV series PLC, is composed of 7 control objects and has other 15
objects.
Configuration and Function
DATABUILDERAXLibLB
Management Reference
DBTriggerManager
DBMemcardAccess DBCommManager DBDeviceManager
Management
Management Reference
DBTriggers
DBDevices
Creation/
Management
Creation/Management Reference
DBRTLoggingManager DBTrigger
DBDevice
Reference Creation/
Management Management
DBRTLoggingDataCollection DBTriggerParamInterval
Management
DBTriggerParamTimeAt
DBRTLoggingData
Management DBTriggerParamTimeSpan
DBRTLoggingDataValue
DBTriggerParamLogical
DBTriggerParamCustom
DBTriggerParamDevice
Data Conversion
DBValueConverterEx
ActiveX Control
DBCommandButton
DBBarMeter
DBFanMeter
Programming Technique
Function of Each Control Object
KV COM+ Library has 7 control objects; "DBCommManager", "DBDeviceManager",
"DBTriggerManager", "DBRTLoggingManager", "DBCommandButton", "DBBarMeter" and
"DBFanMeter".
“DBDevice”
"DBDevice Object"(4-6 page)
Represents DBTrigger collection
“DBTriggers” Creates/manages DBTrigger object.
"DBTriggers Object"(4-7 page)
Represents triggers
Creates/manages the following trigger condition objects:
DBTriggerParamTimeSpan
DBTriggerParamLogical
“DBTrigger” DBTriggerParamCustom
DBTriggerParamInterval
DBTriggerParamTimeAt
DBTriggerParamDevice
"DBTrigger Object"(4-8 page)
Represents trigger conditions. Able to set 6 types of cycle, time, time
“DBTriggerParamInterval” range, device combination and custom.
“DBTriggerParamTimeAt” "DBTriggerParamInterval Object"(4-9 page)
“DBTriggerParamTimeSpan” "DBTriggerParamTimeAt Object"(4-9 page)
“DBTriggerParamDevice” "DBTriggerParamTimeSpan Object"(4-10 page)
“DBTriggerParamLogical” "DBTriggerParamDevice Object"(4-12 page)
“DBTriggerParamCustom” "DBTriggerParamLogical Object"(4-10 page)
"DBTriggerParamCustom Object"(4-11 page)
Represents access to memory card. Manages files in the memory card.
“DBMemcardAccess”
"DBMemcardAccess Object"(4-39 page)
“DBRTLoggingDataCollection” Manages data acquired by real time logging
“DBRTLoggingData” "DBRTLoggingDataCollection Object"(4-160 page)
"DBRTLoggingData Object"(4-162 page)
“DBRTLoggingDataValue” "DBRTLoggingDataValue Object"(4-166 page)
Executes mutual conversion of data for character string type and value
“DBValueConverterEx” type.
"DBValueConverterEx Object"(4-187 page)
Programming Technique
How to Use KV COM+ Library
KV COM+ Library enables PLC information handling with DBCommManager control alone. For
handling of multiple nonsequential devices or read and write at more complex timing, combination of
DBDeviceManager control and DBTriggerManager control is used.
Connected
DBCommManager
device
Reference
DBDeviceManager DBTriggerManager
DBRTLoggingManager
Reference
Connected
DBCommManager
device
Communication
This section describes how to create program on Visual Studio using KV COM+ Library.
2 Select “File (F)” -> "New Project (P)" from the menu bar to display "New project" dialog box.
3 Select "Windows Forms Application" and click "OK" button to create a new project.
4 Select "Tools (T)" -> "Choose Toolbox item (X)" from the menu bar.
Click COM components tab to open. Select an item, then click "Browse (B)" button.
Programming Technique
5 Check the following items from COM component as necessary and click "OK" button.
This program switches operation mode of KV-5000. Upon starting the program, KV-5000 is connected
to the PC and operation mode of acquired KV-5000 is reflected on the option button.
2
Program Creation on Visual Studio
Programming Technique
Procedures to Create Program
(1) Allocate AxDBCommManager Class control on a form of the project and select the control to
create "AxDBCommManager1".
(3) Click "Property page" button on the property window of "AxDBCommManager1". "Property
page" dialog box comes up.
(6) To edit the configuration of the form, select "View (V)" -> "Code (C)" from the menu.
Other procedure
Double-click the form to display a code window.
Programming Technique
(7) Write the following code in "Form_Load" procedure.
Detail: To start communication with KV-5000 upon the start of the program.
"Connect"(4-26 page)
(3) To edit the text "RadioButton1", select "View (V)" -> "Code (C)" from the menu.
Other procedure
Double-click "RadioButton1" to display the code window.
(1) Create "RadioButton2" and change "Text" to "PROGRAM" as described in the procedure above.
End Sub
Code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _
MyBase.Load
AxDBCommManager1.Connect() ' Start communication.
If AxDBCommManager1.GetMode Then
RadioButton1.Checked = True
Else
RadioButton2.Checked = True
End If
End Sub
Programming Technique
To create with Visual C++ (Switching PLC operation mode)
This program reads device values at each click of the “Read” button.
It also writes input values at each click of the “Write” button.
2
Program Creation on Visual Studio
Programming Technique
Program Creation Procedure
(1) Allocate AxDBCommManager Class control on a form of the project and select the control to
create "AxDBCommManager1".
(3) Click "Property page" button on the property window of "AxDBCommManager1". "Property"
dialog box comes up.
(6) To edit the configuration of the form, select "View (V)" -> "Code (C)" from the menu.
Other procedure
Double-click the form to display the code window.
Programming Technique
3 Allocate TextBox control.
(1) Allocate Label control on the form and change "Text" to "DM0".
(3) To edit the text "Button1", select "View (V)" -> "Code (C)" from the menu.
Other procedure
Double-click "Button1" to open the code window.
(3) To edit the text of "Button2", select "View (V)" -> "Code (C)" from the menu.
Other procedure
Double-click "Button2" to display a code window.
AxDBCommManager1.WriteDevice(DATABUILDERAXLibLB.DBPlcDevice.DKV5000_DM, _
"0", CLng(TextBox1.Text))
End Sub
Code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _
MyBase.Load
AxDBCommManager1.Connect() ' Start communication.
End Sub
Programming Technique
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _
Button1.Click
TextBox1.Text = AxDBCommManager1.ReadDevice _
(DATABUILDERAXLibLB.DBPlcDevice.DKV5000_DM, "0")
End Sub
Programming Technique
Program Creation Procedure
(1) Allocate AxDBCommManager Class control on a form of the project and select the control to
create "AxDBCommManager1".
(3) Click "Property page" button on the property window of "AxDBCommManager1". "Property"
dialog box comes up..
(6) To edit the configuration of the form, select "View (V)" -> "Code (C)" from the menu.
Other procedure
Double-click the form to open the code window.
Programming Technique
3 Allocate AxDBTriggerManager Class control.
(1) Allocate AxDBTriggerManager Class control on a form of the project and select the control to
create "AxDBTriggerManager1".
(4) Set a trigger period as shown below and click "Finish" button.
"Trigger setting for period"(3-10 page)
→ →
The current dialog box is closed and "Property" dialog box comes up. Set trigger is displayed on the list.
(2) Click "Property page" button on the property window of "AxDBDeviceManager1". "Property"
dialog box comes up.
(5) Click "Add" button. "Device setting" dialog box comes up..
Programming Technique
(6) Set values as shown below and click "OK" button.
(8) Select trigger setting at the time of read from a drop-down list of "Read Trigger". Select
"AxDBTriggerManager1.Trigger1" here.
2
Program Creation on Visual Studio
Programming Technique
6 Allocate Label control.
(1) Allocate Label control on a form of the project and change “Text” to “DM0”, “DM1”, “DM2”,
“DM3”.
Code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _
MyBase.Load
AxDBCommManager1.Connect() ' Start communication.
This program reads and displays device values while CR2006 (1 second clockpulse) of KV-5000 is ON.
The program does not read the values while CR2006 is OFF.
2
Device value display
Program Creation on Visual Studio
Programming Technique
Program Creation Procedure
(1) Allocate AxDBCommManager Class control on a form of the project and select the control to
create "AxDBCommManager1".
(3) Click "Property page" button in the property window of "AxDBCommManager1". "Property"
dialog box comes up.
(6) To edit the configuration of the form, select "View (V)" -> "Code (C)" from the menu.
Other procedure
Double-click the form to open the code window.
Programming Technique
3 Allocate AxDBTriggerManager Class control.
(1) Allocate AxDBTriggerManager Class control on a form of the project and select the control to
create "AxDBTriggerManager1".
→ →
→ →
"Trigger setting" dialog box is closed and go back to "Property" dialog box. The trigger is displayed in
2 the list.
Program Creation on Visual Studio
Programming Technique
4 Allocate the first AxDBDeviceManager Class control.
(1) Allocate AxDBDeviceManager Class control on a form of the project and select the control to
create "AxDBDeviceManager1".
(5) Click "Add" button. "Device setting" dialog box comes up.
"Device setting" dialog box is closed and the device is added to the list on the "Property" dialog box.
2
Program Creation on Visual Studio
(8) Select trigger setting at the time of reading from "Read Trigger" list. Select
"AxDBTriggerManager1.Trigger2" here.
(4) Right-click the arbitrary point on the form to display the short cut menu.
Programming Technique
(5) Select and click "Paste".
(1) Allocate Label control on the form and change “Text” to “DM0”, “DM1”, “DM2”, “DM3”.
(1) Allocate AxDBDeviceManager Class control on a form of the project and select the control to
create "AxDBDeviceManager2".
2
Program Creation on Visual Studio
(2) Click "Property page" button on the property window of "AxDBDeviceManager2" to display
"Property" dialog box.
Programming Technique
"Device setting" dialog box is closed and the device is added to the list on "Property" dialog box.
2
(7) Double-click "Trigger" tab.
Code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _
MyBase.Load
AxDBCommManager1.Connect() ' Start communication.
AxDBTriggerManager1.Active = True ' Enable trigger.
End Sub
This section describes the procedures to make KV COM+ Library available on Visual C++.
2 2 Select "File (F)" -> "New project (P)" from the menu bar. "New project" dialog box comes up.
Program Creation on Visual Studio
3 Select "Windows Form Application" and click "OK" button to Create a new project.
Programming Technique
Right-click component of Toolbox window and select "Choose item (I)". "Selection of toolbox item"
dialog box comes up.
6 Check the following items from COM component as necessary and click "OK" button.
When items are successfully added, component is shown in the toolbox window.
2
Program Creation on Visual Studio
Point Visual C++ does not enable you to associate property connection targets and triggers. Use
code to set an association.
Programming Technique
This section describes how to use KV COM+ Library on Excel.
Use on a Worksheet
This section describes the procedure to make KV COM+ Library available on a worksheet of Excel.
2
Use of KV COM+ Library on Excel
5 Drag the control on the sheet. The control of KV COM+ Library is created as shown below.
Programming Technique
Use on User Form
This section describes the procedure to make KV COM+ Library available on a user form of Excel.
2 Select "Developer" -> "Visual Basic" from the menu bar to open Microsoft Visual Basic Editor. 2
4 Select "Tool (T)" -> "Other control (A)" from the menu bar.
Other procedure
Right-click a toolbox and select "Additional control (A)" to display "Additional control" dialog box.
2
Use of KV COM+ Library on Excel
8 Drag the control on the form to create control of KV COM+ Library on the form.
Programming Technique
This section describes how to use KV COM+ Library on Microsoft Access.
This section describes the procedure to make KV COM+ Library available on user form of Access.
2 Select "Design" -> "ActiveX control" from the menu bar to display "Insert ActiveX control"
2
dialog box.
Access does not enable you to associate property connection targets and triggers. Use VBA code to
set an association.
MEMO
2
Use of KV COM+ Library on Access
This section describes how to set the property page of DBCommManager control. The communication
with device to be connected is set in this section.
3
DBCommManager Control
"Apply" button
Determines "Communication
setting".
"OK" button "Cancel" button
Determines "Communication Closes the dialog box without determining
setting" and closes the dialog box. "Communication setting".
Reference The following property can be set on the property page of DBCommManager object.
DBCommManager object
Property name Reference page
Peer 4-21
Point Set connection model setting (PLC property) in the "Property" window of
DBCommManager object.
"PLC"(4-19 page)
Reference When changing connection model with already set device existing, the device is
automatically changed to the model after the setting.
1 Click "Setup" button on "Property page" dialog box to display "Comm settings" dialog box.
DBCommManager Control
Point "Modem" mode cannot be used.
Item Description
Selects a COM port for the connection cable. The default is "COM1". COM port is a
COM port serial port; communication is through RS-232C interface. The COM port Nos. are
displayed according to the PC model.
Selects baud rate. The selection range and default values for baud rate are shown
as follows.
Unit No. “Unit No.” setting dialog box comes up when “Unit No.” setting button is clicked.
* Serial communication unit KV- L20V is required to connect KV-5500/5000 by serial connection.
Item Description
IP Address Enters the IP address for connecting KV-5500/5000/3000/1000/700 PLC.
(Search destination) Searches for the KV-5500/5000/3000/1000/700 connected to Ethernet.
Port No. Enters the port No. for connecting KV-5500/5000/3000/1000/700 PLC.
Sends a Ping instruction to the port No. to which an IP address has been
(Connection test)
entered, and tests the connection status.
DBCommManager Control
Item Description
Enters identification name set to KV-BT1 of connection destination. Able to
register by connection destination search. Identification name is "(PLC
Identification name
name)(single-byte space)(identification name set by unit editor)".
Identification name can be also checked at the access window of PLC.
Enters BD address of KV-BT1 of connection destination. Able to register by
BD Address connection destination search. BD address can be also checked at the
access window of PLC.
Enters the passkey placed in KV-BT1 of connection destination.
Passkey
(Default value: 0000)
"Connection destination Displays "Connection destination search" dialog box. Executes search to
search" find connectable KV-BT1.
COM port No. Bluetooth adapter uses. Manual input of the port No. is
Port No.
possible.
Serial port manual Specifies COM port No. for Bluetooth communication when the checkbox is
allocation on.
• Routing setting
3
DBCommManager Control
Item Description
Communication destination Selects the PLC model to be routed to PC.
via VT/DT (2-port) Checks when VT/DT routing (2-port function) is used.
VT/DT model Selects the model to be routed.
Connection to KV Selects the model to be routed and PLC connection method.
Checks when connected through network routing and selects FL-net,
via network
EtherNet/IP.
Routing unit select Selects the unit to be routed.
(When selecting FL-net through network routing)
Communication destination
Specifies the node No. of connection equipment (KV-5000 or KV-
node No.
FL20V) to be routed.
(When selecting EtherNet/IP through network routing)
Communication destination
Specifies IP address of connection equipment (KV-5500 or KV-EP21V)
IP address
to be routed.
Communication route Displays the connection state of PLC connected to PC.
Selects the method of communication for the directly connected
(Communication method)
equipment to be routed to PC.
Tests the state of PLC and PC connection under current setting. If
"Connection test" connection fails, verify communication setting and cable connection
status.
When checking "Connect to KV STUDIO simulator mode", communication with KV STUDIO starts.
DBCommManager Control
KV STUDIO Communication COM server
PC
USB PLC
KV COM+
This section describes how to set the property page of DBTriggerManager control. A trigger that the
determines timing of each behavior is set in this section.
"Add" button
Adds trigger setting.
3 Trigger list
Displays trigger
"Change" button
Changes selected trigger
setting. setting.
DBTriggerManager Control
"Delete" button
Deletes selected trigger
setting.
1 Click "Add" button on "Property" dialog box to display "Trigger setting" dialog box.
DBTriggerManager Control
• To set a trigger for period
"Trigger setting for period"(3-10 page)
• To set a trigger for time and time range
"Trigger Setting at time and time range"(3-11 page)
• To set a trigger for device
"Trigger Setting for device"(3-15 page)
• To set a trigger by combining already set trigger
"Trigger Setting to combine into already set trigger"(3-18 page)
• To set a random trigger
"Set any trigger"(3-20 page)
Example
To set a trigger at 100 milliseconds
Trigger ON
Trigger OFF
100 milliseconds 100 milliseconds 100 milliseconds
3 Starts communication
1
DBTriggerManager Control
Time/ ↑ (Edge)
Executes a function once at every set time for each condition.
Example
To set a trigger at 12:30 (*Conditions for other items are ignored.)
Trigger ON
Trigger OFF
12:30
3
DBTriggerManager Control
Time/ ON (Level)
Executes a function continuously during the set time for each condition.
Example
To set a trigger at 12:30 (*Setting for other items are "Ignore conditions")
Trigger ON
Trigger OFF
12:30 12:31
Trigger occurs at 12:30 every day and continues for one minute.
Example
To set a trigger at 30 seconds (*Setting for other items are "Ignore conditions".)
Trigger ON
Trigger OFF
30 seconds 31 seconds 30 seconds 31 seconds
Time range
Executes a function during the set time range.
Example
To set a trigger the time range from 9:00 to 17:00
Trigger ON
Trigger OFF
9:00 17:00
Point Use with other single trigger because PC becomes overloaded with continuous triggers
which occurs when time ON (level) and time range triggers are set separately for each
function.
"Trigger Setting to combine into already set trigger"(3-18 page)
Setting procedures
3
DBTriggerManager Control
3 Select "Time" or "Time range" from "Type" drop-down list. The display changes according to
the selection.
"Condition"
Selects trigger occurrence conditions.
"Up (Edge)"
Trigger occurs once every set time for each
condition.
"ON (Level)"
3
Trigger occurs continuously during the set time
for each condition.
"Ignore"
DBTriggerManager Control
Check to ignore items at the left of each check
box.
Example
To make a trigger occur at 15 min. To make triggers occur once at 12 o'clock
for 1 min. on week days.
Time range
3
DBTriggerManager Control
Example
Setting for a continuous trigger from 9:00:00 to 17:00:00
Reference Time range including 24 o’clock (0:00 AM) such as 23:00:00~3:00:00 can be set.
DBTriggerManager Control
3 Select "Communication Target" and "Target Device".
Reference Only bit device (or bit-data compliant word device) can be selected.
4 Select "Condition".
↑ (Rising edge)
When the condition of specified device changes from OFF to ON, trigger occurs.
Device ON
Device OFF
Trigger ON
Trigger OFF
Trigger occurs. Trigger occurs.
Reference Since trigger bit changes when detecting trigger by resetting trigger bit, detection of
trigger can be confirmed on the side of PLC.
"↑" …When detecting trigger, trigger bit becomes OFF.
"↓" …When detecting trigger, trigger bit becomes ON.
↓ (Falling edge)
When the condition of specified bit device changes from ON to OFF, trigger occurs.
Device ON
Device OFF
Trigger ON
3 Trigger OFF
Trigger occurs. Trigger occurs.
DBTriggerManager Control
↑↓ (Both edges)
When the condition of specified bit device changes from OFF to ON or from ON to OFF,
trigger occurs.
Device ON
Device OFF
Trigger ON
Trigger OFF
Trigger occurs. Trigger occurs. Trigger occurs. Trigger occurs.
ON (Level)
Trigger occurs continuously while the condition of the specified bit device is ON.
Device ON
Device OFF
Trigger ON
Trigger OFF
OFF (Level)
Trigger occurs continuously while the condition of the specified bit device is OFF
Device ON
Device OFF
Trigger ON
Trigger OFF
DBTriggerManager Control
7 Click "Finish" button.
3
DBTriggerManager Control
Setting
Description
name
AND Trigger occurs when both trigger conditions set for "Target 1" and "Target 2" are ON.
Trigger occurs when either or both of trigger conditions set for "Target 1" and "Target 2" are
OR
ON.
NOT Trigger occurs when trigger conditions set for "Target 1" is ON.
DBTriggerManager Control
6 Enter "Name" and "Comment" as necessary.
3
DBTriggerManager Control
3 Change trigger setting in the same way described in "Addition of Trigger Setting"(3-9 3
page).
DBTriggerManager Control
Deletion of Trigger Setting
This section describes how to set the property page of DBDeviceManager control. After selecting
DBCommManager to refer, device is registered in this section. Trigger for read and write can be also
selected.
"Apply" button
Applies the setting.
"OK" button
"Cancel" button
Saves the setting and closes
Closes the dialog box without
the dialog box.
saving the setting.
Reference The following property can be set on the property page of DBDeviceManager control.
DBDeviceManager object
Property name Reference page
CommManager 4-50
TriggerRead 4-52
TriggerWrite 4-53
DBDevices object
Property name Reference page
Count 4-63
Item 4-64
DBDevice object
Property name Reference page
Kind 4-73
No 4-74
Name 4-74
This section describes how to operate the dialog box of "Communication manager object".
DBDeviceManager Control
"Target"
Selects DBCommManager control of Target.
Device
"Add" button
Adds devices.
3 Device list
Displays a device
"Modify" button
Changes the selected device
list.
DBDeviceManager Control
"Delete" button
Deletes the selected device.
• To add devices
"Addition of device"(3-25 page)
• To change selected device
"Change of device"(3-27 page)
• To delete selected device
"Deletion of device"(3-28 page)
• To delete all devices
"Deletion of all devices"(3-28 page)
Point Select com management object (DBCommManager) to refer before adding devices.
"3-1 DBCommManager Control"(3-2 page)
1 Click "Add" button on "Device" dialog box to display "Device setting" dialog box.
DBDeviceManager Control
Device Device No.
Selects device type. Inputs device No.
Data count
Inputs quantity of devices to
be created with serial
numbers beginning from
the input device No.
Description
Displays description for
each device.
3
DBDeviceManager Control
DBDeviceManager Control
Device Device No.
Selects device type. Inputs device No.
Data count
Cannot enter the quantity
when changing.
Description
Displays description of
each device.
3 Select "Device".
Deletion of device
1 Click a device to be deleted from the device list.
3
DBDeviceManager Control
Point Allocate DBTriggerManager control on the same form and configure for triggers
beforehand.
"3-2 DBTriggerManager Control"(3-8 page)
DBDeviceManager Control
Read trigger
Selects a trigger setting for reading
data.
Sets triggers on the property page of
DBTriggerManager control.
Write trigger
Selects a trigger setting for writing
data.
Sets triggers on the property page of
DBTriggerManager control.
3
DBDeviceManager Control
DBRTLoggingManager Control
"Apply" button
Applies the setting.
"Cancel" button
"OK" button Closes the dialog box without saving the setting.
Saves the setting and closes the dialog box.
Reference The following property can be set on the property page of DBRTLoggingManager control
Commanagement Object
This section describes how to operate the dialog box of "Commanagement object".
1 Click "Communication manager object" tab to display "Commanagement object" dialog box.
3
DBRTLoggingManager Control
"Target"
Selects DBCommManager control of Target.
"Add" button
Adds devices.
Device list
Displays device
"Modify" button
Changes the selected 3
list. device.
DBRTLoggingManager Control
"Delete" button
Deletes the selected
device.
• To add devices
"Addition of device"(3-25 page)
• To change selected device
"Change of device"(3-27 page)
• To delete selected device
"Deletion of device"(3-28 page)
• To delete all devices
"Deletion of all devices"(3-28 page)
Addition of device
Point Select Communication manager object to add in this process before adding devices.
"3-1 DBCommManager Control"(3-2 page)
1 Click "Add" button on "Device" dialog box to display "Device setting" dialog box.
3
DBRTLoggingManager Control
DBRTLoggingManager Control
Change of device
1 Click device to be changed from the device list.
3
DBRTLoggingManager Control
Data count
Not able to enter the
quantity for changing.
Description
Displays description of
each device.
DBRTLoggingManager Control
2 Click "Delete" button.
A message to confirm the deletion is displayed.
PLC Trigger
DBRTLoggingManager Control
Select a word device.
Select the relation between word device values and trigger condition values.
Select combination type of trigger conditions of a bit device and a word device.
Trigger
Point Allocate DBTriggerManager control on the same form and configure for triggers
beforehand.
"3-2 DBTriggerManager Control"(3-8 page)
Start trigger
Select a trigger setting to start
logging.
Configure triggers on the property
page of DBTriggerManager control
before starting this procedure.
Stop trigger
Select a trigger setting to stop
logging.
Configure triggers on the property
page of DBTriggerManager control
before starting this procedure.
DBRTLoggingManager Control
This section describes how to set the property page of DBCommandButton control.
Displays style.
3 display style..
DBCommandButton Control
"Cancel" button
Closes the dialog box
without saving the style.
Sets preview conditions. "OK" button
Saves the style and closes the
dialog box.
Reference The following property can be set on the property page of DBCommandButton object.
DBCommandButton object
DBCommandButton Control
1 Click "Select style" button to display "Style setting" dialog box.
This section describes how to set the property page of DBBarMeter control.
"Display" tab
"Basic" tab Sets display.
Selects upper and "Scale" tab
lower limits of range Sets scale.
values such as input
range.
3
DBBarMeter Control
Reference The following property can be set on the property page of DBBarMeterobject.
DBBarMeter object
Reference
Property name
page
InputValue 4-172
InputRangeLowerLimit 4-173
InputRangeUpperLimit 4-173
DisplayRangeLowerLimit 4-175
DisplayRangeUpperLimit 4-175
AlarmRangeLowerLimit 4-176
AlarmRangeUpperLimit 4-176
ShowOptimumValue 4-179
OptimumValue 4-177
ShowLowerAlarm 4-178
ShowUpperAlarm 4-178
ScaleMarkingColor 4-180
ScaleMarkingLowerAlarmColor 4-181
ScaleMarkingUpperAlarmColor 4-181
DBBarMeter Control
Sets ideal values.
"Ideal line"
Check the box to set values for ideal
line.
"Alarm range"
Check the box to set upper and lower
limits for alarm range.
"Display range"
"Draw again" "Auto draw"
Check the box to set upper and lower
For manual drawing of Check the box to make a preview
limits for display range.
the preview when automatically drawn.
"Auto draw" function is
not used.
Display
Selects data
DBBarMeter Control
DBBarMeter Control
Confirm the setting by preview.
Scale
"Draw again" Check the box to apply desired value to the scales.
For manual drawing Check the box to apply desired value to the auxiliary
of the preview when scales.
"Auto draw" function Check the box to display the main scale.
is not used. "Auto draw"
Check the box to make a
preview automatically
drawn.
"Display" tab
"Basic" tab Sets display.
Selects upper and "Scale" tab
lower limits of range Sets a scale.
values.
DBFanMeter Control
"OK" button "Cancel" button
Saves the setting and closes Closes dialog box without saving
the dialog box. the setting.
Reference The following property can be set on the property page of DBFanMeter object.
DBFanMeter object
Reference
Property name
page
InputValue 4-172
InputRangeLowerLimit 4-173
InputRangeUpperLimit 4-173
DisplayRangeLowerLimit 4-175
DisplayRangeUpperLimit 4-175
AlarmRangeLowerLimit 4-176
AlarmRangeUpperLimit 4-176
ShowOptimumValue 4-179
OptimumValue 4-177
ShowLowerAlarm 4-178
ShowUpperAlarm 4-178
ScaleMarkingColor 4-180
ScaleMarkingLowerAlarmColor 4-181
ScaleMarkingUpperAlarmColor 4-181
Basic
"Ideal line"
Check the box to set values for ideal
line.
"Alarm range"
Check the box to set upper and lower
limits for alarm range.
Sets preview
conditions
Selects needle shape.
3
"Image Frame"
DBFanMeter Control
Check the box to apply desired style for
an image frame.
3
DBFanMeter Control
Selects scale
3
Opens color setting
Sets preview position. window.
conditions
DBFanMeter Control
Sets spaces for main scales.
Sets spaces for auxiliary scales.
MEMO
3
DBFanMeter Control
DBCommManager Object
Property Method Event
4 Properties
Property Value
Description Value setting Reference
Lists of Properties/Methods/Events
name acquisition
Obtains or sets connected
PLC Yes Yes 4-19
equipment type.
Obtains or configures
Peer Yes Yes 4-21
communication setting.
Obtains communication status
Active Yes No 4-24
with connected devices.
Method
Method name Description Reference
Displays the dialog box to change communication route to
CommPeer 4-25
connected devices.
Connect Starts communication with connected devices. 4-26
Disconnect Terminates communication with connected devices. 4-27
GetMode Obtains operation mode/status of connected devices. 4-28
SetMode Sets operation mode/status of connected devices. 4-29
GetErrorNumber Gets error number retained by connected devices. 4-30
ClearError Clears error retained by connected devices. 4-31
ReadDevice Reads value of any one devices. 4-32
WriteDevice Writes any value into any one device. 4-36
Reads string with a specified number of characters from the
ReadText 4-37
specified first device of the connected equipment.
Writes string with a specified number of characters to the specified
WriteText 4-38
first device of the connected equipment.
DBCommManager DBMemcardAccess
DBMemcardAccess Object
Methods
Method name
FileCopyFrom
Description
Copies files on a memory card to path on PC.
Reference
4-39
4
FileCopyTo Copies files on PC to path on a memory card. 4-41
Lists of Properties/Methods/Events
FileState Obtains file status on a memory card. 4-42
FileDelete Deletes files on a memory card. 4-43
Rename Renames files on a memory card. 4-44
MakeDirectory Creates directory on a memory card. 4-45
RemoveDirectory Deletes directory on a memory card 4-46
Obtains the number of files and file names in directory of a
RefleshFileListInDirectory 4-47
memory card and updates file list.
FileNamesInDirectory Obtains file names in directory on a memory card. 4-48
Space Obtains free space in a memory card. 4-49
DBDeviceManager
DBDeviceManager Object
This object allows bulk read and write with multiple devices asynchronously.
Property Method Event
It retains DBDevices collection and connects to the device specified with CommManager property.
Reads and writes asynchronously into the retained device collection with ReadAll and WriteAll
methods.
AfterRead and AfterWrite events notify the completion of asynchronous read/write process.
Setting TriggerRead and TriggerWrite properties also enable to read/write when each trigger occurs.
(References) DBDevices, DBDevice
Properties
4 Property
Description
Value Value
Reference
name acquisition setting
Lists of Properties/Methods/Events
Methods
Method name Description Reference
IsReading Obtains asynchronous reading status of an object. 4-54
IsWriting Obtains asynchronous writing status of an object. 4-55
Reads the value of the registered device from the connected
ReadAll 4-56
equipment.
Writes the value specified with ValueWrite property into the
WriteAll 4-57
registered device of the connected equipment.
Events
Event name Description Reference
Occurs at the occurrence of read triggers and execution of ReadAll
BeforeRead method, and before actual execution of the read process to the 4-58
connected equipment.
Occurs after reading a value of the registered device from the
AfterRead 4-59
connected equipment.
Occurs at the occurrence of write triggers and execution of WriteAll
BeforeWrite method, and before actual execution of the write process to the 4-60
connected equipment.
Occurs after writing a value to the registered device of the
AfterWrite 4-61
connected equipment.
Occurs at occurrence of an error during the asynchronous write
Error 4-62
process with the connected equipment.
DBDeviceManager DBDevices
DBRTLoggingManager DBDevices
DBDevices Object
Properties
Value Value
Property name Description Reference
acquisition setting
Obtains the number of devices
Count Yes No 4-63
included in the collection.
Obtains the device registered in
4
Item Yes No 4-64
the specified index.
Lists of Properties/Methods/Events
Methods
Method name Description Reference
Add Adds new device to the collection. 4-65
Insert Inserts a device into the specified index in the collection. 4-66
Remove Removes the specified device from the collection. 4-67
Clear Clears all devices in the collection. 4-68
AddRTL Adds a device for real-time logging to the collection. 4-69
InsertRTL Inserts a device for real-time logging to the collection. 4-71
DBDevice Object
Properties
Value
Value Refere
Property name Description acquisitio
setting nce
n
4 Kind Obtains device type. Yes No 4-73
No Obtains device number. Yes No 4-74
Lists of Properties/Methods/Events
DBTriggerManager
DBTriggerManager Object
This control (object) manages triggers that determine timings for DBDeviceManager to read/write, and
Properties
Property Value Value
Description Reference
name acquisition setting
Active
Obtains or sets whether trigger is
valid or invalid.
Yes Yes 4-84 4
Triggers Obtains DBTriggers collection. Yes No 4-85
Lists of Properties/Methods/Events
Events
Event name Description Reference
Occurs every time trigger condition within DBTriggers collection is
Fire 4-86
established.
DBTriggers Object
Properties
Value Value
Property name Description Reference
acquisition setting
Obtains the number of triggers
Count Yes No 4-87
included in the collection.
Obtains the trigger of the specified
Item Yes No 4-88
index.
Methods
Method name Description Reference
Add Adds new triggers to the collection. 4-89
Remove Removes the specified trigger from the collection. 4-90
Clear Removes all triggers from the collection. 4-91
FindByName Searches for the trigger within the collection by name. 4-92
DBTrigger Object
Properties
Property Value Value
Description Reference
name acquisition setting
4 Name Obtains or sets trigger name. Yes Yes 4-93
Type Obtains or sets trigger types. Yes Yes 4-94
Lists of Properties/Methods/Events
Events
Event name Description Reference
Fire Occurs every time trigger condition is established. 4-104
Error Occurs when a communication error occurs in a device trigger. 4-129
DBTriggerParamInterval Object
Properties
Value Value
Property name Description Reference
acquisition setting
IntervalMSec
Obtains or sets interval of trigger
occurrence by millisecond.
Yes Yes 4-105 4
Lists of Properties/Methods/Events
DBTriggerParamTimeAt Object
Properties
Property Value Value
Description Reference
name acquisition setting
Year Obtains or sets the year condition. Yes Yes 4-106
Month Obtains or sets the month condition. Yes Yes 4-107
Day Obtains or sets the day condition. Yes Yes 4-108
Hour Obtains or sets the hour condition. Yes Yes 4-109
Minute Obtains or sets the minute condition. Yes Yes 4-110
Second Obtains or sets the second condition. Yes Yes 4-111
Obtains or sets the day-of-week
DayOfWeek Yes Yes 4-112
condition.
Obtains or sets the condition that
Edge Yes Yes 4-113
trigger occurs (edge or level).
DBTriggerParamTimeSpan Object
A trigger occurs from the start time to the end time based on the time of computer.
This can be obtained by Param or AsTimeSpan property when DBTrigger object type is a time range
trigger.
(Reference) DBTrigger
Properties
Property Value Value
Description Reference
name acquisition setting
4 TimeFrom
Obtains or sets the start time of trigger
Yes Yes 4-114
occurrence.
Lists of Properties/Methods/Events
DBTriggerParamLogical Object
Properties
Property Value Value
Description Reference
name acquisition setting
Obtains or sets the logical condition of
Type Yes Yes 4-116
combination.
Obtains or sets trigger1 to be
Trigger1 Yes Yes 4-117
combined.
Obtains or sets trigger2 to be
Trigger2 Yes Yes 4-118
combined.
DBTriggerParamCustom Object
Properties
Property Value Value
Description Reference
name acquisition setting
Obtains or sets the automatic OFF
OneShot Yes Yes 4-119
setting of any trigger.
4
Methods
Lists of Properties/Methods/Events
Method name Description Reference
SetState Sets any trigger to ON. 4-120
DBTriggerParamDevice Object
This can be obtained with Param or AsDevice property when DBTrigger object type is a device trigger.
(Reference) DBTrigger
Properties
Property Value Value
Description Reference
name acquisition setting
Obtains or sets the Commanagement
Methods
Method name Description Reference
ClearError Clears communication error status of a device trigger. 4-127
SetDevice Sets the "target device" used for a device trigger. 4-128
DBRTLoggingManager
DBRTLoggingManager Object
This is an object to ensure real-time logging function to log within PLC of KV series.
Lists of Properties/Methods/Events
Properties
Value Value
Property name Description Reference
acquisition setting
Obtains or sets the referred Com
CommManager Yes No 4-130
management object.
Obtains or sets the DBDevices
Devices Yes Yes 4-132
collection.
TriggerStart Obtains or sets the start trigger. Yes Yes 4-133
TriggerStop Obtains or sets the stop trigger. Yes Yes 4-134
Obtains or sets the sampling
SamplingCycle Yes Yes 4-135
cycle.
LastID Obtains the obtained data ID. Yes No 4-136
Obtains the latest sampled data
TopID Yes No 4-137
ID.
Obtains the data ID with PLC
TriggerID Yes No 4-138
trigger.
LoggingDataCollec Obtains the DBRTLoggingData
Yes No 4-139
tion collection.
Obtains or sets the data amount
TriggerDataRatio Yes Yes 4-140
(%) after trigger.
TrgParamBitEnabl Obtains or sets the trigger
Yes Yes 4-141
e1 - 4 condition of bit device 1-4.
Obtains or sets the index number
TrgParamBitIndex1 of DBDevices collection which
Yes Yes 4-142
-4 stores bit device specified as
trigger condition (bit device 1-4).
TrgParamBitOn1 - Obtains or sets ON/OFF of bit
Yes Yes 4-143
4 device 1-4.
TrgParamBitLogic Obtains or sets the bit device
Yes Yes 4-144
Operator condition (AND/OR).
TrgParamWordLog Obtains or sets the logic operator
Yes Yes 4-145
icOperator of word device.
TrgParamWordEna Obtains or sets the trigger
Yes Yes 4-146
ble condition of word device.
DBRTLoggingManager
Value Value
Property name Description Reference
acquisition setting
Obtains or sets the index number
TrgParamWordInd of DBDevices collection which
Property Method Event
Methods
4
Method name Description Reference
Lists of Properties/Methods/Events
Events
Event name Description Reference
Occurs before actual reading of data from the equipment after
BeforeRead 4-158
executing ReadData method.
AfterRead Occurs after reading values. 4-159
DBRTLoggingManager
DBRTLoggingDataCollection Structure
Example) Among sampled data, data ID 5000 - 5499 are read with ReadData method.
IsSuccess=DBRTLogginManager.ReadData(5000,500)
Data ID
Devices.Item(1)
DM0
Devices.Item(2)
DM10
•••••
Devices.Item(10)
DM100
••••• 4
Data ID
Lists of Properties/Methods/Events
0 18543 14256 ••••• 35201 •••••
1 18546 14246 ••••• 35198 •••••
2 : : :
: : : :
5032 18556 14249 ••••• 35210 •••••
5033 18549 14251 ••••• 35206 •••••
5034 18550 14253 ••••• 35194 •••••
: : : :
Read data by ReadData is sorted beginning from the index 0 by each sampling device within
DBRTLoggingDataCollection.
Therefore, index and sampling device must be specified to read in order to obtain specific data.
Example) When 10th DM 100 data of sampling device with index 126 is read:
value=DBRTLoggingManager1.LoggingDataCollection.Item(126).DataValues(10).Value
Sampling device
Devices.Item(1) Devices.Item(2) Devices.Item(10)
••••• •••••
DM0 DM10 DM100
Data ID Index
5000 0 18541 14261 ••••• 35208 •••••
5001 1 18552 14244 ••••• 35192 •••••
5002 2 : : :
: : : :
5125 125 18562 14251 ••••• 35208 •••••
5126 126 18548 14256 ••••• 35201 •••••
127 18546 14249 ••••• 35195 •••••
: : : :
DBRTLoggingData
(DBRTLoggingManager1.LoggingDataCollection.Item(126))
DBRTLoggingDataValue
(DBRTLoggingManager1.LoggingDataCollection.Item(126).DataValues(10))
DBRTLoggingManager DBRTLoggingDataCollection
DBRTLoggingDataCollection Object
Properties
4 Property Value Value
Description Reference
name acquisition setting
Lists of Properties/Methods/Events
DBRTLoggingData Object
Properties
Property
name
Description
Value
acquisition
Value
setting
Reference 4
Id Obtains data ID. Yes No 4-162
Lists of Properties/Methods/Events
DateTime Obtains date and time of sampling. Yes No 4-163
Stores whether data includes PLC
PLCTrigger Yes No 4-163
trigger or not.
Obtains the number of devices (up to
DeviceCount Yes No 4-164
128).
DeviceValues Obtains device data collection. Yes No 4-165
DBRTLoggingDataValue Object
Properties
Property Value Value
Description Reference
4 name
Obtains device type.
acquisition setting
Properties
PLC Property 4
Obtains or sets the connected equipment type.
Details of Properties/Methods/Events
Reference This property can be set in the property window.
Communication Value
Value setting
status acquisition
Communication
Yes Yes
suspended
Communicating Yes No (Runtime error occurs)
● Syntax
When obtaining: value = DBCommManager. PLC
When setting: DBCommManager. PLC = value
DBCommManager
● Explanation
Obtains or sets a value to be set for the connected equipment type.
This property is set before starting communication.
Runtime error occurs when a value is set during communication.
Property Method Event
The connected equipment type is automatically changed to the device of the equipment type after the
change when the change is to already set devices.
"Model Change"(A-9 page)
● References
“DBCommManager.Active”(4-24 page)
"Connect"(4-26 page)
4
"Disconnect"(4-27 page)
● Usage Example
Details of Properties/Methods/Events
DBCommManager
Peer Property
* Configuration changed during communication becomes valid from the next communication.
4
Details of Properties/Methods/Events
● Syntax
When obtaining: text = DBCommManager. Peer
When setting: DBCommManager. Peer = text
DBCommManager
setting
setting
Sets communication route.
Communicate with PLC connected with serial:
DLLTYPE_SERI (1)
Communicate with PLC connected with USB:
DLLTYPE_USB (2)
Communicate with PLC connected via Ethernet:
DLLTYPE_IP (4)
4 Configuration
Communicate via VT connected with serial:
DLLTYPE_VTSERI (7)
Communicate via VT connected with USB:
value of
Details of Properties/Methods/Events
DBCommManager
● Explanation 4
Obtains or sets strings to indicate the configuration of communication with the connected equipment.
Details of Properties/Methods/Events
This property is configured before starting communication.
If configuration is changed during connection, it is valid from the next connection.
● References
"PLC"(4-19 page)
"CommPeer"(4-25 page)
"Connect"(4-26 page)
"Disconnect"(4-27 page)
● Usage Example
See the Usage Example in "PLC"(4-19 page).
DBCommManager
Active Property
Obtains status of communication with the connected equipment but does not set.
● Syntax
value = DBCommManager. Active
4 value
Boolean value to represent status of communication
with the connected equipment.
Boolean
Details of Properties/Methods/Events
Keyword Description
True Communicating
False Communication suspended
● Explanation
Obtains status of communication with the connected equipment but cannot set.
Returns "True" when "Connect" method is executed until "Disconnect" method is executed.
Also returns "True" when communication is not actually established yet or a communication error
occurs after "Connect" method is executed.
● References
"Connect"(4-26 page)
"Disconnect"(4-27 page)
● Usage Example
DBCommManager
Methods
CommPeer Method
* Configuration changed during communication becomes valid from the next communication.
● Syntax
DBCommManager.CommPeer()
4
Details of Properties/Methods/Events
● Description
Displays communication setting dialog box to change Peer property.
● References
"Peer"(4-21 page)
● Usage Example
DBCommManager
Connect Method
● Syntax
DBCommManager. Connect
● Explanation
● References
"PLC"(4-19 page)
"Peer"(4-21 page)
"Disconnect"(4-27 page)
“DBCommManager.Active” (4-24 page)
● Usage Example
See Usage Example in "PLC"(4-19 page).
DBCommManager
Disconnect Method
● Syntax
DBCommManager.Disconnect
● Explanation
Terminates communication when communicating with the connected equipment.
Nothing is executed when communication is suspended. 4
An error at the time communication stops results in runtime error.
Details of Properties/Methods/Events
● References
"PLC"(4-19 page)
"Peer"(4-21 page)
“DBCommManager.Active” (4-24 page)
● Usage Example
See Usage Example in “DBCommManager.Active” (4-24 page).
DBCommManager
GetMode Method
● Syntax
value = DBCommManager.GetMode
4 value
Boolean value to represent operation
mode/status.
Boolean
Details of Properties/Methods/Events
Keyword Description
True Connected equipment: RUN mode
False Connected equipment: PROGRAM mode
● Explanation
Obtains operation mode/status of the connected equipment.
Works only during communication.
Execution while communication is suspended or a problem occurs at the time of execution results in
runtime error.
● References
“DBCommManager.Active” (4-24 page)
"Connect"(4-26 page)
"SetMode"(4-29 page)
● Usage Example
DBCommManager
SetMode Method
● Syntax
DBCommManager.SetMode (value)
value
Boolean value to represent operation
mode/status.
Boolean
4
Details of Properties/Methods/Events
Keyword available for value
Keyword Description
True Connected equipment: RUN mode
False Connected equipment: PROGRAM mode
● Explanation
Sets operation mode/status of the connected equipment.
Works only during communication.
Execution while communication is suspended or a problem occurs at the time of execution results in
runtime error.
● References
“DBCommManager.Active” (4-24 page)
"Connect"(4-26 page)
"GetMode"(4-28 page)
● Usage Example
See Usage Example in "GetMode"(4-28 page).
DBCommManager
GetErrorNumber Method
● Syntax
value= DBCommManager. GetErrorNumber
● Explanation
Details of Properties/Methods/Events
● References
“DBCommManager.Active” (4-24 page)
"Connect"(4-26 page)
"ClearError"(4-31 page)
● Usage Example
DBCommManager
ClearError Method
● Syntax
DBCommManager. ClearError
● Explanation
Clears error information held by the connected equipment.
Works only during communication. 4
Execution while communication is suspended or a problem occurs at the time of execution results in
Details of Properties/Methods/Events
runtime error.
● References
“DBCommManager.Active” (4-24 page)
"Connect"(4-26 page)
"GetErrorNumber"(4-30 page)
● Usage Example
DBCommManager
ReadDevice Method
● Syntax
value=DBCommManager.ReadDevice(device, strNo)
4 value
device
Read value of device
Specifies device type
Long
DBPlcDevice or Long
strNo Specifies device number String
Details of Properties/Methods/Events
Device type
Device number Description
Constant Value
00000 - 99915
DKV5000_RLY_B 0 Relay
(Last two digits are 0 - 15)
0000 - 3915
DKV5000_CR 10 Control relay
(Last two digits are 0 - 15)
Bit DKV5000_T 7 0000 - 3999 Timer (contact point)
DKV5000_C 8 0000 - 3999 Counter (contact point)
DKV5000_CTC 9 0-3 CTC (contact point)
0000000 - 6553415
DKV5000_DM_B 30 Data memory (treated as bit)
(Last two digits are 0 - 15)
DKV5000_DM 18 00000 - 65534 Data memory
00000 - 99900 Relay
DKV5000_RLY_W 25
(Last two digits are 00) (00000 - 99900)
0000 - 3900 Control relay
DKV5000_CR_W 100
(Last two digits are 00) (0000 - 3900)
DKV5000_TM 19 000 - 511 Temporary data
DKV5000_TRM 20 0 - 7 Trimmer
Word DKV5000_TS 21 0000 - 3999 Timer (configured value)
DKV5000_TC 22 0000 - 3999 Timer (current value)
DKV5000_CS 23 0000 - 3999 Counter (configured value)
DKV5000_CC 24 0000 - 3999 Counter (current value)
DKV5000_CTH 16 0-1 Hi-speed counter (current value)
DKV5000_CTC_W 17 0-3 CTC (configured value)
DKV5000_CM 29 00000 - 5999 Control memory
DBCommManager
For KV-3000:
Device type
Device number Description
Constant Value
DKV3000_DM_B 30
0000000 - 6553415
(Last two digits are 0 - 15)
Data memory (treated as bit) 4
DKV3000_DM 18 00000 - 65534 Data memory
Details of Properties/Methods/Events
00000 - 99900 Relay
DKV3000_RLY_W 25
(Last two digits are 00) (00000 - 99900)
0000 - 3900 Control relay
DKV3000_CR_W 100
(Last two digits are 00) (0000 - 3900)
DKV3000_TM 19 000 - 511 Temporary data
DKV3000_TRM 20 0 - 7 Trimmer
Word DKV3000_TS 21 0000 - 3999 Timer (configured value)
DKV3000_TC 22 0000 - 3999 Timer (current value)
DKV3000_CS 23 0000 - 3999 Counter (configured value)
DKV3000_CC 24 0000 - 3999 Counter (current value)
DKV3000_CTH 16 0-1 Hi-speed counter (current value)
DKV3000_CTC_W 17 0-3 CTC (configured value)
DKV3000_CM 29 00000 - 5999 Control memory
For KV-1000:
Device type
Device number Description
Constant Value
00000 - 59915
DKV1000_RLY_B 0 Relay
(Last two digits are 0 - 15)
0000 - 3915
DKV1000_CR 10 Control relay
(Last two digits are 0 - 15)
Bit DKV1000_T 7 0000 - 3999 Timer (contact point)
DKV1000_C 8 0000 - 3999 Counter (contact point)
DKV1000_CTC 9 0 -3 CTC (contact point)
0000000 - 6553415
DKV1000_DM_B 30 Data memory (treated as bit)
(Last two digits are 0 - 15)
DBCommManager
Device type
Device number Description
Constant Value
DKV1000_DM 18 00000 - 65534 Data memory
Property Method Event
4 DKV1000_TC
DKV1000_CS
22
23
0000 - 3999
0000 - 3999
Timer (current value)
Counter (configured value)
Details of Properties/Methods/Events
For KV-700:
Device type
Device number Description
Constant Value
00000 - 59915
DKV700_RLY_B 0 Relay
(Last two digits are 0 - 15)
0000 - 3915
DKV700_CR 10 Control relay
(Last two digits are 0 - 15)
● Explanation
Reads the device value specified as argument from the connected equipment.
DBCommManager
● References
● Usage Example
Details of Properties/Methods/Events
DBCommManager
WriteDevice Method
Write any value into any one device of connected equipment type.
● Syntax
DBCommManager. WriteDevice (device, strNo, value)
4 device
strNo
Specifies device type.
Specifies device number.
DBPlcDevice or Long
String
value Specifies device value to be written. Long
Details of Properties/Methods/Events
● Explanation
Writes the value specified for one device specified with argument of the connected equipment.
Works only during communication.
Execution while communication is suspended or a problem occurs at the time of execution results in
runtime error.
● References
“DBCommManager.Active” (4-24 page)
"Connect"(4-26 page)
"ReadDevice"(4-32 page)
● Usage Example
DBCommManager
Reads the specified number of strings from the starting device specified in the connected equipment.
● Syntax
DBCommManager.ReadText(device,strNo,lMaxlen,strText)
(DBCommManager.ReadTextEx(device,strNo,lMaxlen,strText) (When using VBScript))
Value Description Type
device Specifies device type. DBPlcDevice 4
strNo Specifies device number. String
Details of Properties/Methods/Events
Specifies maximum string length (by
word) to be read.
Two ASCII characters can be stored for
lMaxlen Long
one word device.
Up to 128-word devices (256 characters)
can be specified.
String ("Variant" when using
strText Strings to be read
VBscript.)
● Explanation
Reads stored string data led by specified device type and device number. The number of strings can be
read to the maximum string length (word base) (two 1-byte characters for one word). Strings are read
until the first NULL from the beginning is detected and the read strings are stored. When there is no
NULL in the maximum string length (word base) a string with NULL is stored after the maximum length
of strings is read.
When there is a value which cannot be converted as a string, runtime error occurs.
● Usage Example
AxDBCommManager1.Connect()
AxDBCommManager1.ReadText(DATABUILDERAXLibLB.DBPlcDevice.DKV5000_DM, "0", 1, _
strRText)
TextBox1.Text = strRText
AxDBCommManager1.Disconnect()
End Sub
DBCommManager
WriteText Method
Reads strings containing a specified number of characters from the first device of the connected
equipment.
Property Method Event
● Syntax
DBCommManager.WriteText(device,strNo,lMaxlen,strText)
● Explanation
Reads stored string data led by specified device type and device number.
The number of strings that can be written is the maximum string length (word base) or less including
trailing NULL (one byte). (Two 1-byte characters can be written for one word.)
If written data contains no NULL before reaching the maximum string length, NULL is attached to the
(maximum string length x 2-1)th character from the beginning when the data is written.
In addition, runtime error occurs if there is any value that cannot be converted as a string.
● Usage Example
AxDBCommManager1.Connect()
strWText = TextBox1.Text
AxDBCommManager1.WriteText(DATABUILDERAXLibLB.DBPlcDevice.DKV5000_DM, "0", 10, _
strWText)
AxDBCommManager1.Disconnect()
End Sub
DBCommManager DBMemcardAccess
DBMemcardAccess Object
FileCopyFrom Method
Details of Properties/Methods/Events
Reference Up to 256 MB can be copied for one file.
● Syntax
ret = FileCopyFrom(strPathMemcard, strPathLocal, Flag)
● Explanation
Copies file stored in a memory card within PLC to path of PC.
Works only during communication.
Execution while communication is suspended or a problem occurs at the time of execution results in
runtime error.
(* Only available when the connected PLC is KV-5500/5000/3000)
● References
“DBCommManager.Active” (4-24 page)
"Connect"(4-26 page)
"FileCopyTo"(4-41 page)
DBCommManager DBMemcardAccess
● Usage Example
PLCFileName ="Test.csv"
PCFileName = " C:\Users\Public\Documents\Sample\Test.csv"
err = AxDBCommManager1.MemcardAccess.FileCopyFrom(PLCFileName, PCFileName, _
DATABUILDERAXLibLB.DBMemFlag.mfOverWriteProtect)
End Sub
4
Details of Properties/Methods/Events
DBCommManager DBMemcardAccess
FileCopyTo Method
● Syntax
ret = FileCopyTo(strPathLocal, strPathMemcard, Flag)
Details of Properties/Methods/Events
strPathLocal Specifies path of copy source. String
Specifies path in a memory card of copy
strPathMemcard destination. String
* Specifies after (IP address) /MMC.
Flag Specifies operation condition. DBMemFlag
● Explanation
Copies file on PC to a memory card within PLC.
Works only during communication.
Execution while communication is suspended or a problem occurs at the time of execution results in
runtime error.
(* Only available when the connected PLC is KV-5500/5000/3000)
● References
“DBCommManager.Active” (4-24 page)
"Connect"(4-26 page)
"FileCopyFrom"(4-39 page)
● Usage Example
PLCFileName = "Sample"
PCFileName = " C:\Users\Public\Documents\Sample\Test.csv"
err = AxDBCommManager1.MemcardAccess.FileCopyTo(PCFileName, PLCFileName, _
DATABUILDERAXLibLB.DBMemFlag.mfOverWriteArrow)
End Sub
DBCommManager DBMemcardAccess
Communication suspended No
Communicating Yes
● Syntax
ret = FileState(strPathMemcard, pvLastAccessTime, pvCreationTime, pvLastWriteTime, plFileSize,
plIsDirectory)
(ret = FileStateEx(strPathMemcard, pvLastAccessTime, pvCreationTime, pvLastWriteTime,
● Explanation
Obtains file status on a memory card within PLC.
Works only during communication.
Execution while communication is suspended or a problem occurs at the time of execution results in
runtime error.
(* Only available when the connected PLC is KV-5500/5000/3000)
● References
“DBCommManager.Active” (4-24 page)
"Connect"(4-26 page)
● Usage Example
FileName = TextBox5.Text
err = AxDBCommManager1.MemcardAccess.FileState(FileName, LastAccessTime, CreationTime, _
LastWriteTime, FileSize, f)
TextBox1.Text = LastAccessTime
TextBox2.Text = CreationTime
TextBox3.Text = LastWriteTime
TextBox4.Text = FileSize
End Sub
DBCommManager DBMemcardAccess
FileDelete Method
● Syntax
ret = FileDelete(strPathMemcard, Flag)
strPathMemcard
See "Error Message Lists"(A-10 page).
Specifies file in a memory card to be deleted.
lAxError
String
4
* Specifies after (IP address) /MMC.
Details of Properties/Methods/Events
Flag Specifies operation condition. DBMemFlag
Keyword Value
mfDeleteExceptReadOnly 3 Restricts deleting when a deleted file is ReadOnly.
mfDeleteForce 2 Allows deleting when a deleted file is ReadOnly.
-- (Others) - Invalid parameter error occurs.
● Explanation
Deletes files on a memory card within PLC.
Works only during communication.
Execution while communication is suspended or a problem occurs at the time of execution results in
runtime error.
(* Only available when the connected PLC is KV-5500/5000/3000)
● References
“DBCommManager.Active” (4-24 page)
"Connect"(4-26 page)
● Usage Example
DBCommManager DBMemcardAccess
Rename Method
Communication suspended No
Communicating Yes
● Syntax
ret = Rename(strFileName, strNewFileName)
4 ret
strFileName
See "Error Message Lists"(A-10 page).
Specifies the current file name.
lAxError
String
* Specifies after (IP address) /MMC.
Details of Properties/Methods/Events
● Explanation
Rename file on a memory card within PLC.
Works only during communication.
Execution while communication is suspended or a problem occurs at the time of execution results in
runtime error.
(* Only available when the connected PLC is KV-5500/5000/3000)
● References
“DBCommManager.Active” (4-24 page)
"Connect"(4-26 page)
● Usage Example
OldFileName = "Test.csv"
NewFileName = "Test0614.csv"
err = AxDBCommManager1.MemcardAccess.Rename(OldFileName, NewFileName)
End Sub
DBCommManager DBMemcardAccess
MakeDirectory Method
● Syntax
ret = MakeDirectory(strPathDirectory)
strPathDirectory
See "Error Message Lists"(A-10 page).
Specifies directory path to be created.
lAxError
String
4
* Specifies after (IP address) /MMC.
Details of Properties/Methods/Events
● Explanation
Creates directory on a memory card within PLC.
Works only during communication.
Execution while communication is suspended or a problem occurs at the time of execution results in
runtime error.
(* Only available when the connected PLC is KV-5500/5000/3000)
● References
“DBCommManager.Active” (4-24 page)
"Connect"(4-26 page)
"RemoveDirectory"(4-46 page)
● Usage Example
err = AxDBCommManager1.MemcardAccess.MakeDirectory("Sample")
End Sub
DBCommManager DBMemcardAccess
RemoveDirectory Method
Communication suspended No
Communicating Yes
● Syntax
ret = RemoveDirectory(strPathDirectory, Flag)
● Explanation
Removes directory on a memory card within PLC.
Works only during communication.
Execution while communication is suspended or a problem occurs at the time of execution results in
runtime error.
(* Only available when the connected PLC is KV-5500/5000/3000)
● References
“DBCommManager.Active” (4-24 page)
"Connect"(4-26 page)
"MakeDirectory"(4-45 page)
● Usage Example
err = AxDBCommManager1.MemcardAccess.RemoveDirectory _
("Sample",DATABUILDERAXLibLB.DBMemFlag.mfDeleteEmpty)
End Sub
DBCommManager DBMemcardAccess
Obtains the number of files and file name included in directory of a memory card and updates the file
list.
● Syntax
ret = RefleshFileListInDirectory(strPathDirectory, lCount)
(ret = RefleshFileListInDirectoryEx(strPathDirectory, lCount)(When using VBScript))
Details of Properties/Methods/Events
Specifies directory path on a memory card.
* Specifies after (IP address) /MMC. String ("Variant" when
strPathDirectory
When specifying a root directory, specify it in using VBscript.)
double quotation marks ("").
lCount Specifies the number of files. Long
● Explanation
Obtains the number of files and file name included in directory of a memory card within PLC and
updates the file list. Use FileNamesInDirectory method to actually obtain file name from the updated file
list.
Works only during communication.
Execution while communication is suspended or a problem occurs at the time of execution results in
runtime error.
(* Only available when the connected PLC is KV-5500/5000/3000)
● References
“DBCommManager.Active” (4-24 page)
"Connect"(4-26 page)
"FileNamesInDirectory (EX)"(4-48 page)
● Usage Example
DBCommManager DBMemcardAccess
Communication suspended No
Communicating Yes
● Syntax
ret = FileNamesInDirectory(strPathDirectory, lIndex, strFileName)
(ret = FileNamesInDirectoryEx(strPathDirectory, lIndex, strFileName)(When using VBScript))
● Explanation
Obtains file name included in directory on a memory card within PLC. Because
RefleshFileListInDirectory is used to obtain file name from the updated file list, execute
RefleshFileListInDirectory method before executing FileNamesInDirectory method.
Works only during communication.
Execution while communication is suspended or a problem occurs at the time of execution results in
runtime error.
(* Only available when the connected PLC is KV-5500/5000/3000)
● References
“DBCommManager.Active” (4-24 page)
"Connect"(4-26 page)
"RefleshFileListInDirectory (EX)"(4-47 page)
● Usage Example
See usage example of "RefleshFileListInDirectory (EX)"(4-47 page).
DBCommManager DBMemcardAccess
Space Method
● Syntax
ret = Space(lHiTotalSize, lLowTotalSize, lHiFreeSize, lLowFreeSize)
ret
See
page).
"Error Message Lists"(A-10
lAxError
4
lHiTotalSize Specifies total space (high 32 bit). Long
Details of Properties/Methods/Events
lLowTotalSize Specifies total space (low 32 bit). Long
lHiFreeSize Specifies free space (high 32 bit). Long
lLowFreeSize Specifies free space (low 32 bit). Long
● Explanation
Obtains total and free space of a memory card within PLC by byte.
Works only during communication.
Execution while communication is suspended or a problem occurs at the time of execution results in
runtime error.
(* Only available when the connected PLC is KV-5500/5000/3000)
● References
“DBCommManager.Active” (4-24 page)
"Connect"(4-26 page)
● Usage Example
AxDBCommManager1.Connect()
err = AxDBCommManager1.MemcardAccess.Space(a, b, c, d)
TextBox1.Text = b / 1024 / 1024
TextBox2.Text = d / 1024 / 1024
AxDBCommManager1.Disconnect()
End Sub
DBDeviceManager
DBDeviceManager Object
Properties
Property Method Event
CommManager Property
4 Communication status
Communication suspended
Value acquisition
Yes
Value setting
Yes
Details of Properties/Methods/Events
● Syntax
When obtaining: Set dbcomm=DBDeviceManager. CommManager
When setting: Set DBDeviceManager. CommManager = dbcomm
● Explanation
Obtains or sets referred Commanagement object.
ReadAll and WriteAll methods are executed to the connected equipment that object specified with this
property communicate with.
Use GetOcx* method when referring to control object.
Device is converted when configuration is changed.
For more information, see "Model Change"(A-9 page).
* Use object property if you use Visual Basic 6.0.
● References
“DBCommManager.Active” (4-24 page)
"Peer"(4-21 page)
"Connect"(4-26 page)
● Usage Example
dbcomm = AxDBDeviceManager1.CommManager
'If communicating with the connected equipment of DBCommManager1, connection determination is
changed to
‘ the connected equipment of DBCommManager2.
If dbcomm Is AxDBCommManager1.GetOcx Then
AxDBDeviceManager1.CommManager = AxDBCommManager2.GetOcx
ElseIf dbcomm Is AxDBCommManager2.GetOcx Then
AxDBDeviceManager1.CommManager = AxDBCommManager1.GetOcx
End If
End Sub
DBDeviceManager
Devices Property
● Syntax
Set devices=DBDeviceManager.Devices
Details of Properties/Methods/Events
Obtains DBDevices collection but does not set them.
● Usage Example
DBDeviceManager
TriggerRead Property
"Trigger"(3-29 page)
● Syntax
● Explanation
Obtains or sets DBTrigger object as a read trigger.
If conditions of the specified trigger are met, device value is read accordingly.
● References
"BeforeRead"(4-58 page)
"AfterRead"(4-59 page)
"Param"(4-97 page)
“DBTrigger.Fire” (4-104 page)
● Usage Example
Trigger = AxDBDeviceManager1.TriggerRead
If Trigger Is Nothing Then
Call MsgBox("TriggerRead is empty")
Exit Sub
End If
If Trigger.Type = DATABUILDERAXLibLB.DBAxTriggerType.ttInterval Then
Call MsgBox("TriggerRead is Interval Trigger")
Else
Call MsgBox("TriggerRead is not Interval Trigger")
End If
End Sub
DBDeviceManager
TriggerWrite Property
● Syntax
When obtaining: Set trigger = DBDeviceManager.TriggerWrite
When setting: Set DBDeviceManager.TriggerWrite = trigger 4
Value Description Type
Details of Properties/Methods/Events
trigger DBTrigger object for writing DBTrigger
● Explanation
Obtains or sets DBTrigger object as a write trigger.
If conditions of the specified trigger is met, device value is written accordingly.
● References
"BeforeRead"(4-58 page)
"AfterRead"(4-59 page)
"Param"(4-97 page)
“DBTrigger.Fire” (4-104 page)
● Usage Example
DBDeviceManager
Methods
IsReading Methods
Property Method Event
● Syntax
4 value = DBDeviceManager.IsReading
Keyword Description
True Reading asynchronously
False Not reading asynchronously
● Explanation
Indicates whether object is being read asynchronously.
● Usage Example
DBDeviceManager
IsWriting Method
● Syntax
value = DBDeviceManager.IsWriting
value
Boolean value to indicate asynchronous
writing
Boolean
4
Details of Properties/Methods/Events
Value for ‘value’
Keyword Description
True Writing asynchronously
False Not writing asynchronously
● Explanation
Indicates whether object is being written asynchronously.
● Usage Example
DBDeviceManager
ReadAll Method
● Syntax
DBDeviceManager.ReadAll
● Explanation
● References
"CommManager"(4-50 page)
"WriteAll"(4-57 page)
"BeforeRead"(4-58 page)
"AfterRead"(4-59 page)
"Error"(4-62 page)
● Usage Example
DBDeviceManager
WriteAll Methods
Writes specified values into each registered device of the connected equipment.
● Syntax
DBDeviceManager.WriteAll
● Explanation
Writes values of device into the connected equipment.
Works only during communication. 4
Execution while communication is suspended, Commanagement object (CommManager) is not
Details of Properties/Methods/Events
registered, or a problem occurs at the time of execution results in runtime error.
No "Error" event occurs if runtime error occurs.
Use ValueWrite method of DBDevice object to specify device value.
● References
"CommManager"(4-50 page)
"ReadAll"(4-56 page)
“DBDevice.BeforeWrite” (4-60 page)
"AfterWrite"(4-61 page)
"Error"(4-62 page)
“DBDevice.ValueWrite” (4-76 page)
● Usage Example
DBDeviceManager
Events
BeforeRead Event
Property Method Event
Occurs at the occurrence of a read trigger and execution of ReadAll method before performing actual
read process to the connected equipment.
● Syntax
Sub DBDeviceManager_BeforeRead()
● Explanation
Occurs at the occurrence of a read trigger and execution of ReadAll method before performing actual
4 read process to the connected equipment.
● References
Details of Properties/Methods/Events
"AfterRead"(4-59 page)
"ReadAll"(4-56 page)
"TriggerRead"(4-52 page)
● Usage Example
DBDeviceManager
AfterRead Event
Occurs after reading values of registered device from the connected equipment.
● Syntax
● Explanation
Occurs after reading values of registered device from the connected equipment.
DBDeviceManager.Error event occurs when a device not contained in the connected equipment is
included as the device to be read.
● References
"BeforeRead"(4-58 page) 4
"ReadAll"(4-56 page)
Details of Properties/Methods/Events
"TriggerRead"(4-52 page)
"Error"(4-62 page)
● Usage Example
DBDeviceManager
BeforeWrite Event
Occurs at the occurrence of a write trigger and execution of WriteAll method before performing actual
read process to the connected equipment.
Property Method Event
● Syntax
Sub DBDeviceManager_BeforeWrite()
● Explanation
Occurs at the occurrence of a write trigger and execution of WriteAll method before performing actual
read process to the connected equipment.
● References
4 "AfterWrite"(4-61 page)
"WriteAll"(4-57 page)
Details of Properties/Methods/Events
"TriggerWrite"(4-53 page)
● Usage Example
DBDeviceManager
AfterWrite Events
● Syntax
● Explanation
Occurs after writing device values from the connected equipment.
DBDeviceManager.Error event occurs when device not contained in the connected equipment is
included as the device to be written.
● References
“DBDevice.BeforeWrite” (4-60 page) 4
"WriteAll"(4-57 page)
Details of Properties/Methods/Events
"TriggerWrite"(4-53 page)
"Error"(4-62 page)
● Usage Example
See usage example of “DBDevice.BeforeWrite” (4-60 page).
DBDeviceManager
Error Event
Occurs when error occurs during process of asynchronous read/write with the connected equipment.
● Syntax
Property Method Event
Sub DBDeviceManager_Error(lErrkind,lErrcode)
● Explanation
Occurs when error occurs during process of asynchronous read/write with the connected equipment.
For details on error number and description, see "Error Message Lists"(A-10 page).
● References
"ReadAll"(4-56 page)
"WriteAll"(4-57 page)
● Usage Example
DBDeviceManager DBDevices
DBDevices Object
Properties
Details of Properties/Methods/Events
value = DBDevices.Count
● Explanation
Obtains the number of devices included in collection but cannot set.
● Usage Example
See usage example in “DBDevice.BeforeWrite” (4-60 page).
DBDeviceManager DBDevices
Item Property
● Syntax
Set device = Item(index)
or
Set device = DBDevices(index)
● Explanation
Obtains device where index identifies.
The beginning of index is 1.
Runtime error occurs if index out of range is specified or if device is not registered.
● Usage Example
DeviceNum = Devices.Count
strDevices = "DBDevices information= " + Str(DeviceNum) + vbCrLf
For iCounter = 1 To DeviceNum
strDevices = strDevices + "Index = " + Str(iCounter) + vbCrLf
Device = Devices.Item(iCounter)
strDevices = strDevices + Device.Name + vbCrLf
Next
DBDevicesGetSetting = strDevices
End Function
corDev = AxDBDeviceManager1.Devices
MsgBox(DBDevicesGetSetting(corDev).ToString)
End Sub
DBDeviceManager DBDevices
Methods
Add Methods
Details of Properties/Methods/Events
Set device = DBDevices.Add(kind, no)
● Explanation
Generates a device.
Can only generate a device of the connected equipment identified by PLC property of
Commanagement object referred by CommManager property of DBDeviceManager object.
Runtime error occurs if CommManager property is not set or if device type or number not contained in
the connected equipment is specified.
* Add method cannot be used for DBDevice object of DBRTLoggingManager. Use AddRTL method instead.
● References
"CommManager"(4-50 page)
"PLC"(4-19 page)
“DBDevices.Remove” (4-67 page)
"Insert"(4-66 page)
“DBDevices.Item” (4-64 page)
“DBDevices.Count” (4-63 page)
● Usage Example
Device = AxDBDeviceManager1.Devices.Add(DATABUILDERAXLibLB.DBPlcDevice.DKV5000_DM, _
"0")
Device.ReadEnabled = True
Device.WriteEnabled = False
End Sub
DBDeviceManager DBDevices
Insert Method
● Syntax
Set device = DBDevices.Insert(index, kind, no)
4 device
Device object for asynchronously
reading/writing
DBDevice
● Explanation
Generates and inserts a device into the place identified by index.
Beginning of index is 1. If index is 1 or smaller, the device is inserted at the beginning. If index is larger
than the number of devices (obtained by Count property), it is inserted at the end.
Can only generate a device of the connected equipment identified by PLC property of
Commanagement object referred by CommManager property of DBDeviceManager object.
Runtime error occurs if CommManager property is not set or if device type or number not contained in
the connected equipment is specified.
* Insert method cannot be used for DBDevice object of DBRTLoggingManager. Use InsertRTL method
instead.
● References
"CommManager"(4-50 page)
"PLC"(4-19 page)
“DBDevices.Add” (4-65 page)
“DBDevices.Remove” (4-67 page)
“DBDevices.Item” (4-64 page)
“DBDevices.Count” (4-63 page)
● Usage Example
DBDeviceManager DBDevices
Remove Method
● Syntax
Remove device
4
Value Description Type
Details of Properties/Methods/Events
Device object for asynchronous reading/
device DBDevice
writing
● Explanation
Removes the specified device.
Runtime error occurs if device created by other DBDevices object is specified.
● References
“DBDevices.Add” (4-65 page)
"Insert"(4-66 page)
“DBDevices.Clear” (4-68 page)
“DBDevices.Item” (4-64 page)
“DBDevices.Count” (4-63 page)
● Usage Example
DBDeviceManager DBDevices
Clear Method
● Syntax
4 Clear
● Explanation
Details of Properties/Methods/Events
● References
“DBDevices.Add” (4-65 page)
"Insert"(4-66 page)
“DBDevices.Remove” (4-67 page)
● Usage Example
DBDeviceManager DBDevices
AddRTL Method
● Syntax
Set device=DBDevices.AddRTL(PlcDevice,strNo,RTLDataSize,DeviceType,DispType,Reserved)
Details of Properties/Methods/Events
device Device object DBDevice
PlcDevice Device type DBPlcDevice or Long
strNo Device number String
RTLDataSize Device length Integer
DeviceType Device type Integer
DispType Display type Integer
Reserved System reservation (0) Long
● Explanation
Generates a device used for real time logging.
Can only generate a device of the connected equipment identified by PLC property of
Commanagement object referred by CommManager property of DBRTLoggingManager object.
Runtime error occurs if CommManager property is not set or if device type or number not contained in
the connected equipment is specified.
* AddRTL method cannot be used for DBDevice object of DBDeviceManager. Use Add method instead.
DBDeviceManager DBDevices
● References
"CommManager"(4-50 page)
"PLC"(4-19 page)
Property Method Event
● Usage Example
(DATABUILDERAXLibLB.DBPlcDevice.DKV5000_DM, "0",1,1,11,0)
End Sub
DBDeviceManager DBDevices
InsertRTL Method
Inserts a device used for real time logging into the specified index.
Reference This method can be executed during designing in the property page.
● Syntax
Set device=DBDevices.InsertRTL(Idx,PlcDevice,strNo,RTLDataSize,DeviceType,DispType,Reserved)
Details of Properties/Methods/Events
device Device object DBDevice
Idx Index Long
PlcDevice Device type DBPlcDevice or Long
strNo Device number String
RTLDataSize Device length Integer
DeviceType Device type Integer
DispType Display type Integer
Reserved System reservation Long
DBDeviceManager DB Devices
● Explanation
Generates and inserts a device used for real time logging into the place identified by index.
Beginning of index is 1. If index is 1 or smaller, the device is inserted at the beginning. If index is larger
than the number of devices (obtained by Count property), it is inserted at the end.
Property Method Event
Can only generate a device of the connected equipment identified by PLC property of
Commanagement object referred by CommManager property of DBRTLoggingManager object.
Runtime error occurs if CommManager property is not set or if device type or number not contained in
the connected equipment is specified.
* InsertRTL method cannot be used for DBDevice object of DBDeviceManager. Use Insert method instead.
● References
"CommManager"(4-50 page)
4 "PLC"(4-19 page)
“DBDevices.Remove” (4-67 page)
Details of Properties/Methods/Events
● Usage Example
DBDevice Object
Properties
Details of Properties/Methods/Events
value = DBDevice.Kind
● Explanation
Obtains device type but cannot set.
"List of device type and device number"(4-32 page)
● Usage Example
Device = AxDBDeviceManager1.Devices.Item(1)
'Read device type.
DevKind = Device.Kind
'Read device.
strDevNo = Device.No
'Read device type and device.
strDevName = Device.Name
strResult = Str(DevKind) + " " + strDevNo + " " + strDevName
Call MsgBox(strResult)
End Sub
No Property
● Syntax
text = DBDevice.No
● Explanation
Details of Properties/Methods/Events
● References
"Kind"(4-73 page)
Name Property
Obtains a string consisting of the one indicating device type and device number but cannot set it.
● Syntax
text = DBDevice.Name
● Explanation
Obtains a string consisting of the one indicating device type and device number but cannot set it.
● References
"Kind"(4-73 page)
● Usage Example
See usage example described in "Kind"(4-73 page).
ValueRead Property
● Syntax
value = DBDevice. ValueRead
Details of Properties/Methods/Events
Obtains device value read from the connected equipment but cannot set it.
● References
"ReadAll"(4-56 page)
● Usage Example
ValueWrite Property
● Syntax
When obtaining: value = DBDevice. ValueWrite
When setting: DBDevice. ValueWrite = value
● Explanation
Obtains or sets values written into device.
Configured value is not immediately reflected on the connected equipment, but is written when a write
trigger occurs and WriteAll method of DBDeviceManager object is executed.
● References
"WriteAll"(4-57 page)
● Usage Example
See usage example of "ValueRead"(4-75 page).
IsValueReadValid Property
Obtains whether the value of ValueRead is actually read from the connected equipment, but cannot set
it.
● Syntax
value = DBDevice. IsValueReadValid
value
Boolean value to indicate whether it is actually
Boolean
4
read
Details of Properties/Methods/Events
Value for ‘value’
Keyword Description
True Actually read from the connected equipment
False Not actually read from the connected equipment
● Explanation
Identify the validity of ValueRead property. The value is True if it is actually read from the connected
equipment, and it is False if it is the initial value, but cannot set it.
● References
"ValueRead"(4-75 page)
"ReadAll"(4-56 page)
● Usage Example
See usage example in "ValueRead"(4-75 page).
ReadEnabled Property
● Syntax
When obtaining: value = DBDevice. ReadEnabled
When setting: DBDevice. ReadEnabled = value
Keyword Description
True Enabled
False Disabled
● Explanation
In the reading process of DBDeviceManager, the value is read from the connected equipment if this
value is True, but not if it is False. Only some values of registered device can be read because read
processing of this object can be disabled temporarily by specifying value to False.
● References
"ValueRead"(4-75 page)
"ReadAll"(4-56 page)
● Usage Example
Device = AxDBDeviceManager1.Devices.Item(iItemNo)
If (Device.ReadEnabled = True) Then
strReadEnable = "ReadEnable"
Else
strReadEnable = "ReadDisable"
End If
Device_IsReadEnable = strReadEnable
End Function
WriteEnabled Property
● Syntax
When obtaining: value = DBDevice.WriteEnabled
When setting: DBDevice.WriteEnabled = value
value
Boolean value to indicate whether writing
Boolean
4
is enabled or disabled
Details of Properties/Methods/Events
Keyword available for value
Keyword Description
True Enabled
False Disabled
● Explanation
In the writing process of DBDeviceManager, value is written into the connected equipment if this value
is True, but not if it is False. Only some values of registered device can be written because writing
process of this object can be disabled temporarily by specifying value to False.
● References
“DBDevice.ValueWrite” (4-76 page)
"WriteAll"(4-57 page)
● Usage Example
Device = AxDBDeviceManager1.Devices.Item(iItemNo)
If (Device.WriteEnabled = True) Then
strWriteEnable = "WriteEnable"
Else
strWriteEnable = "WriteDisable"
End If
Device_IsWriteEnable = strWriteEnable
End Function
RTLDataSize Property
Obtains data size of the device used for real time logging.
● Syntax
When obtaining: value=DBDevice.RTLDataSize
Value Description
1 One word
2 Two words
● Explanation
Obtains data size of the device but cannot set it.
● References
“DBDevices.AddRTL” (4-69 page)
“DBDevices.InsertRTL” (4-71 page)
● Usage Example
RTLDataType Property
Obtains data type of the device used for real time logging.
● Syntax
When obtaining: value=DBDevice.RTLDataType
Details of Properties/Methods/Events
Constant Value Description
dtBit 0 Bit device
dtWord 1 Word device (16-bit)
dtDWord 2 Device (32-bit)
● Explanation
Obtains data type of the device but cannot set it.
● References
“DBDevices.AddRTL” (4-69 page)
“DBDevices.InsertRTL” (4-71 page)
● Usage Example
See usage example of "RTLDataSize"(4-80 page).
RTLDispType Property
Obtains display type of the device used for real time logging.
● Syntax
When obtaining: value=DBDevice.RTLDispType
● Explanation
Obtains display type of the device but cannot set it.
● References
“DBDevices.AddRTL” (4-69 page)
“DBDevices.InsertRTL” (4-71 page)
● Usage Example
See usage example of "RTLDataSize"(4-80 page).
RTLManageIndex Property
● Syntax
When obtaining: value=DBDevice.RTLManageIndex
Details of Properties/Methods/Events
Obtains the management ID number of device but cannot set it.
● References
“DBDevices.AddRTL” (4-69 page)
“DBDevices.InsertRTL” (4-71 page)
● Usage Example
See usage example of "RTLDataSize"(4-80 page).
DBTriggerManager
DBTriggerManager Object
Properties
Property Method Event
Active Property
● Syntax
Details of Properties/Methods/Events
Keyword Description
True Active
False Inactive
● Explanation
Obtains or sets whether a trigger is active/inactive.
If “True,”a trigger occurs when trigger conditions are met.
If “False,”a trigger does not occur even when trigger conditions are met.
Whether a trigger is active/inactive can be set for entire Triggers collection.
● Usage Example
DBTriggerManager
Triggers Property
● Syntax
Set triggers = DBTriggerManager.Triggers
Details of Properties/Methods/Events
Obtains DBTriggers collection. Cannot set it.
DBTriggers collection (object) is a collection of all triggers (DBTrigger) of DBTriggerManager.
● Usage Example
a = AxDBTriggerManager1.Triggers
MsgBox(a.Count)
End Sub
DBTriggerManager
Events
Fire Event
Property Method Event
Occurs every time when each trigger condition in DBTriggers collection is met.
● Syntax
Sub DBTriggerManager_Fire( )
4 ● Explanation
Occurs every time when each trigger condition in DBTrigger collection is met.
Can obtain trigger object which trigger occurred.
Details of Properties/Methods/Events
● References
“DBTrigger.Type” (4-94 page)
“DBTrigger.Fire” (4-104 page)
● Usage Example
DBTriggerManager DBTriggers
DBTriggers Object
Properties
Obtains the number of triggers included in collection but cannot set it.
Details of Properties/Methods/Events
value = Count
● Explanation
Obtains the number of triggers included in collection but cannot set it.
● Usage Example
a = AxDBTriggerManager1.Triggers
MsgBox(a.Count)
End Sub
DBTriggerManager DBTriggers
Item Property
● Syntax
Set trigger = DBTriggers.Item(index)
or
Set trigger = DBTriggers(index)
● Explanation
Obtains a trigger in the place identified by index.
The beginning of index is 1.
Runtime error occurs if index out of range is specified.
● References
“DBTriggers.Add” (4-89 page)
“DBTriggers.Remove” (4-90 page)
“DBTriggers.Count” (4-87 page)
● Usage Example
Triggers = AxDBTriggerManager1.Triggers
For iCounter = 1 To Triggers.Count
Trigger = Triggers.Item(iCounter)
'Display name and comment of trigger.
MsgBox(Trigger.Name + " " + Trigger.Description + vbCrLf)
Next
End Sub
DBTriggerManager DBTriggers
Methods
Add Method
Active Operation
True (active trigger) Yes
False (inactive trigger) Yes
4
● Syntax
Details of Properties/Methods/Events
Set trigger = Add(value)
Trigger type
● Explanation
Adds a new trigger.
● References
“DBTriggers.Remove” (4-90 page)
“DBTriggers.Clear” (4-91 page)
“DBTriggers.Item” (4-88 page)
“DBTriggers.Count” (4-87 page)
● Usage Example
NewTrigger = AxDBTriggerManager1.Triggers.Add _
(DATABUILDERAXLibLB.DBAxTriggerType.ttInterval)
NewTrigger.Name = "trgInterval"
NewTrigger.Description = "New cycle trigger"
NewTrigger.AsInterval.IntervalMSec = 3500
End Sub
DBTriggerManager DBTriggers
Remove Method
Removes a trigger.
Reference This method can be executed during designing in the property page.
Property Method Event
Active Operation
True (active trigger) Yes
False (inactive trigger) Yes
● Syntax
4 Remove(trigger)
● Explanation
Removes a trigger.
Runtime error occurs if a trigger created by other DBTriggers object is specified.
● References
“DBTriggers.Add” (4-89 page)
“DBTriggers.Clear” (4-91 page)
● Usage Example
RemoveTrigger = AxDBTriggerManager1.Triggers.Item(4)
Call AxDBTriggerManager1.Triggers.Remove(RemoveTrigger)
End Sub
DBTriggerManager DBTriggers
Clear Method
Active Operation
● Syntax
DBTriggers.Clear
● Explanation
Removes all triggers.
4
● References
Details of Properties/Methods/Events
“DBTriggers.Add” (4-89 page)
“DBTriggers.Remove” (4-90 page)
● Usage Example
DBTriggerManager DBTriggers
FindByName Method
Active Operation
Property Method Event
● Syntax
Set trigger = DBTriggers.FindByName(name)
4 name
trigger
Name of searched trigger
Trigger object. Nothing is returned if name does not match.
String
DBTrigger
Details of Properties/Methods/Events
● Explanation
Finds a trigger by name.
Nothing is returned if the name does not match.
● Usage Example
FindTrigger = AxDBTriggerManager1.Triggers.FindByName(TextBox1.Text)
If FindTrigger Is Nothing Then
Exit Sub
End If
Call MsgBox(" Trigger is found." + FindTrigger.Name)
End Sub
DBTrigger Object
Properties
Details of Properties/Methods/Events
"Set any trigger"(3-20 page)
● Syntax
When obtaining: text = DBTrigger.Name
When setting: DBTrigger.Name = text
● Explanation
Obtains or sets trigger name.
Duplicated name cannot be specified in a single DBTriggerManager.
● Usage Example
NewTrigger = AxDBTriggerManager1.Triggers.Add _
(DATABUILDERAXLibLB.DBAxTriggerType.ttInterval)
NewTrigger.Name = "trgInterval"
NewTrigger.Description = " New Cycle Trigger"
NewTrigger.AsInterval.IntervalMSec = 3500
End Sub
Type Property
● Syntax
4 When obtaining: value = Type
When setting: Type =value
Details of Properties/Methods/Events
● Explanation
Obtains and sets a trigger type.
All trigger conditions set are removed if different type till then is specified.
● References
“DBTrigger.Fire” (4-104 page)
"Param"(4-97 page)
“DBTrigger.AsInterval” (4-98 page)
"AsTimeAt"(4-99 page)
"AsTimeSpan"(4-100 page)
"AsLogical"(4-101 page)
"AsCustom"(4-102 page)
"AsDevice"(4-103 page)
● Usage Example
Description Property
Details of Properties/Methods/Events
● Syntax
When obtaining: text = DBTrigger.Description
When setting: DBTrigger.Description = text
● Explanation
Obtains or sets a trigger comment.
● Usage Example
See usage example of "Name"(4-93 page).
IsOn Property
● Syntax
value = DBTrigger.IsOn
Keyword Description
True Trigger condition is met.
False Trigger condition is not met.
● Explanation
Obtains trigger status. Value is True if trigger condition is met, but cannot set it.
● References
“DBTrigger.Fire” (4-104 page)
● Usage Example
Param Property
● Syntax
Set trigger = DBTrigger.Param
Details of Properties/Methods/Events
DBTriggerParamLogical
DBTriggerParamCustom
DBTriggerParamDevice
● Explanation
Obtains trigger object but cannot set it.
Type of trigger object depends on Type property value of DBTrigger object.
Trigger object can also be obtained by using AsInterval, AsTimeAt, AsTimeSpan, AsLogical, AsCustom,
or AsDevice property.
● References
“DBTrigger.Type” (4-94 page)
“DBTrigger.AsInterval” (4-98 page)
"AsTimeAt"(4-99 page)
"AsTimeSpan"(4-100 page)
"AsLogical"(4-101 page)
"AsCustom"(4-102 page)
"AsDevice"(4-103 page)
● Usage Example
trgInterval = AxDBTriggerManager1.Triggers.Item(1).Param
SetMs = Integer.Parse(TextBox1.Text)
trgInterval.IntervalMSec = SetMs
End Sub
AsInterval Property
● Syntax
Set trigger = AsInterval
● Explanation
● References
Details of Properties/Methods/Events
● Usage Example
NewTrigger = AxDBTriggerManager1.Triggers.Add _
(DATABUILDERAXLibLB.DBAxTriggerType.ttInterval)
NewTrigger.Name = "trgInterval"
NewTrigger.Description = " New cyclic trigger"
trgInterval = NewTrigger.AsInterval
trgInterval.IntervalMSec = 3500
End Sub
AsTimeAt Property
● Syntax
Set trigger= DBTrigger.AsTimeAt
● Explanation
Obtains time trigger object but cannot set it.
If trigger type is not time trigger, runtime error occurs. 4
● References
Details of Properties/Methods/Events
“DBTrigger.Type” (4-94 page)
"Param"(4-97 page)
● Usage Example
NewTrigger = AxDBTriggerManager1.Triggers.Add _
(DATABUILDERAXLibLB.DBAxTriggerType.ttTimeAt)
NewTrigger.Name = "trgTimeAt"
NewTrigger.Description = " New time trigger"
trgTimeAt = NewTrigger.AsTimeAt
trgTimeAt.Year = 2010
trgTimeAt.Month = 6
trgTimeAt.Day = 10
trgTimeAt.Hour = 12
trgTimeAt.Minute = 30
trgTimeAt.Second = 0
trgTimeAt.DayOfWeek = &H8
trgTimeAt.Edge = False
End Sub
AsTimeSpan Property
● Syntax
Set trigger = DBTrigger.AsTimeSpan
● Explanation
Details of Properties/Methods/Events
● References
“DBTrigger.Type” (4-94 page)
"Param"(4-97 page)
● Usage Example
NewTrigger = AxDBTriggerManager1.Triggers.Add _
(DATABUILDERAXLibLB.DBAxTriggerType.ttInterval)
NewTrigger.Name = "trgTimeSpan"
NewTrigger.Description = " New time range trigger"
trgTimeSpan = NewTrigger.AsTimeSpan
trgTimeSpan.TimeFrom = #8:00:00 AM#
trgTimeSpan.TimeTo = #9:45:15 AM#
End Sub
AsLogical Property
● Syntax
Set trigger = DBTrigger.AsLogical
Details of Properties/Methods/Events
Obtains combination trigger object but cannot set it.
If trigger type is not combination trigger, runtime error occurs.
● References
“DBTrigger.Type” (4-94 page)
"Param"(4-97 page)
● Usage Example
NewTrigger = AxDBTriggerManager1.Triggers.Add _
(DATABUILDERAXLibLB.DBAxTriggerType.ttLogical)
NewTrigger.Name = "trgLogical"
NewTrigger.Description = " New combination trigger"
trgLogical = NewTrigger.AsLogical
trgLogical.Type = DATABUILDERAXLibLB.DBTriggerLogicType.ltAnd
trgLogical.Trigger1 = AxDBTriggerManager1.Triggers.Item(1)
trgLogical.Trigger2 = AxDBTriggerManager1.Triggers.Item(2)
End Sub
AsCustom Property
● Syntax
Set trigger = DBTrigger.AsCustom
● Explanation
Details of Properties/Methods/Events
● References
“DBTrigger.Type” (4-94 page)
"Param"(4-97 page)
● Usage Example
NewTrigger = AxDBTriggerManager1.Triggers.Add _
(DATABUILDERAXLibLB.DBAxTriggerType.ttCustom)
NewTrigger.Name = "trgCustom"
NewTrigger.Description = " New custom trigger"
trgCustom = NewTrigger.AsCustom
trgCustom.OneShot = True
End Sub
AsDevice Property
● Syntax
Set trigger=DBTrigger.AsDevice
Details of Properties/Methods/Events
Obtains device trigger object but cannot set it.
If trigger type is not device, runtime error occurs.
● References
“DBTrigger.Type” (4-94 page)
"Param"(4-97 page)
● Usage Example
Events
Fire Events
Property Method Event
● Syntax
Sub DBTrigger_Fire(ByVal pTrigger As DBTrigger)
Value Description
pTrigger Trigger object which issues event
4 ● Explanation
Occurs every time when trigger condition is met.
Details of Properties/Methods/Events
● References
“DBTrigger.Type” (4-94 page)
"Param"(4-97 page)
“DBTrigger.AsInterval” (4-98 page)
"AsTimeAt"(4-99 page)
"AsTimeSpan"(4-100 page)
"AsLogical"(4-101 page)
"AsCustom"(4-102 page)
"AsDevice"(4-103 page)
● Usage Example
DBTriggerParamInterval Object
Properties
Active
True (active trigger)
Value acquisition
Yes
Value setting
Yes
4
Details of Properties/Methods/Events
False (inactive trigger) Yes Yes
● Syntax
When obtaining: value = DBTriggerParamInterval.IntervalMSec
When setting: DBTriggerParamInterval.IntervalMSec = value
● Explanation
Obtains or sets cycle of trigger occurrence by millisecond.
When specifying to 0, triggers occur consecutively.
When specifying less than 0, runtime error occurs.
● Usage Example
See usage example of “DBTrigger.AsInterval” (4-98 page).
DBTriggerParamTimeAt Object
Properties
Property Method Event
Year Property
4 Active
True (active trigger)
Value acquisition
Yes
Value setting
Yes
Details of Properties/Methods/Events
● Syntax
When obtaining: value = DBTriggerParamTimeAt.Year
When setting: DBTriggerParamTimeAt.Year = value
● Explanation
Obtains or sets year condition.
2000 - 2037 or - 1 can be set.
When setting to -1, this condition is ignored.
Runtime error occurs when value out of range is specified.
● Usage Example
See usage example of “DBTrigger.AsTimeAt” (4-99 page).
Month Property
● Syntax
When obtaining: value = DBTriggerParamTimeAt.Month
When setting: DBTriggerParamTimeAt.Month = value 4
Value Description Type
Details of Properties/Methods/Events
Month condition. When excluding from
value Integer
condition, set to -1.
● Explanation
Obtains or sets month condition.
1 - 12 or - 1 can be set.
When setting to -1, this condition is ignored.
Runtime error occurs when value out of range is specified.
● Usage Example
See usage example of “DBTrigger.AsTimeAt” (4-99 page).
Day Property
● Syntax
● Explanation
Obtains or sets day condition.
1 - 31 or - 1 can be set.
When setting to -1, this condition is ignored.
Runtime error occurs when value out of range is specified.
● Usage Example
See usage example of "AsTimeAt"(4-99 page).
Hour Property
● Syntax
When obtaining: value = DBTriggerParamTimeAt.Hour
When setting: DBTriggerParamTimeAt.Hour = value 4
Value Description Type
Details of Properties/Methods/Events
Hour condition. When excluding from
value Integer
condition, set to -1.
● Explanation
Obtains or sets hour condition.
0 - 23 or - 1 can be set.
When setting to -1, this condition is ignored.
Runtime error occurs when value out of range is specified.
● Usage Example
See usage example of “DBTrigger.AsTimeAt” (4-99 page).
Minute Property
● Syntax
● Explanation
Obtains or sets minute condition.
0 - 59 or - 1 can be set.
When setting to -1, this condition is ignored.
Runtime error occurs when value out of range is specified.
● Usage Example
See usage example of “DBTrigger.AsTimeAt” (4-99 page).
Second Property
● Syntax
When obtaining: value = DBTriggerParamTimeAt.Second
When setting: DBTriggerParamTimeAt.Second = value 4
Value Description Type
Details of Properties/Methods/Events
Second condition. When excluding from
value Integer
condition, set to -1.
● Explanation
Obtains or sets second condition.
0 - 59 or - 1 can be set.
When setting to -1, this condition is ignored.
Runtime error occurs when value out of range is specified.
● Usage Example
See usage example of “DBTrigger.AsTimeAt” (4-99 page).
DayOfWeek Property
● Syntax
● Explanation
Obtains or sets day of week condition.
Values are the combinations below (OR specification):
● Usage Example
See usage example of “DBTrigger.AsTimeAt” (4-99 page).
Edge Property
● Syntax
When obtaining: value = DBTriggerParamTimeAt.Edge
When setting: DBTriggerParamTimeAt.Edge = value 4
Value Description Type
Details of Properties/Methods/Events
value Condition of trigger occurrence (edge or level) Boolean
Keyword Description
True Trigger occurs only once when specified time condition is met.
Triggers occur consecutively as long as specified time
False
condition is met.
● Explanation
Obtains or sets condition of trigger occurrence (edge or level).
In True, trigger occurs only once when specified time condition is met (edge).
In False, triggers occur consecutively as long as specified time condition is met (level).
● Usage Example
See usage example of “DBTrigger.AsTimeAt” (4-99 page).
DBTriggerParamTimeSpan Object
Properties
Property Method Event
TimeFrom Property
4 Active
True (active trigger)
Value acquisition
Yes
Value setting
Yes
Details of Properties/Methods/Events
● Syntax
When obtaining: time = DBTriggerParamTimeSpan.TimeFrom
When setting: DBTriggerParamTimeSpan.TimeFrom = time
Format of time
For Date: #a:b:c#
For String: "a:b:c"
a - Hour (0 - 23)
b - Minute (0 - 59)
c - Second (0 - 59)
● Explanation
Specifies start time of trigger occurrence.
Start time of trigger occurrence includes time specified with TimeFrom property.
When time after TimeTo is specified, trigger occurs until TimeTo time of the next day is reached.
Runtime error occurs when invalid value as time specification is specified.
● References
"TimeTo"(4-115 page)
● Usage Example
See usage example of “DBTrigger.AsTimeAt” (4-99 page).
TimeTo Property
● Syntax
When obtaining: time = DBTriggerParamTimeSpan.TimeTo
When setting: DBTriggerParamTimeSpan.TimeTo = time 4
Value Description Type
Details of Properties/Methods/Events
time End time of trigger occurrence Variant
Format of time
For Date: #a:b:c#
For String: "a:b:c"
a - Hour (0 - 23)
b - Minute (0 - 59)
c - Second (0 - 59)
● Explanation
Specifies end time of trigger occurrence.
End time of trigger occurrence includes time specified with TimeTo property.
When time before TimeFrom is specified, trigger occurs until TimeFrom time of the next day is reached.
Runtime error occurs when invalid value as time specification is specified.
● References
"TimeFrom"(4-114 page)
● Usage Example
See usage example of “DBTrigger.AsTimeAt” (4-99 page).
DBTriggerParamLogical Object
Properties
Property Method Event
Type Property
4 Active
True (active trigger)
Value acquisition
Yes
Value setting
Yes
Details of Properties/Methods/Events
● Syntax
When obtaining: value = DBTriggerParamLogical.Type
When setting: DBTriggerParamLogical.Type = value
Type of combination
● References
"Trigger1"(4-117 page)
"Trigger2"(4-118 page)
● Explanation
Specifies type of combination.
When combination type is ltAnd, both Trigger1 and Trigger2 are set.
When either of them is set, trigger does not occur.
For ltOr, either of Trigger1 or Trigger2 property, or both are set.
For ltNot, Trigger1 property is set. Trigger2 property is ignored.
Exception error occurs when invalid value as type is specified.
● Usage Example
See usage example of “DBTrigger.AsLogical” (4-101 page).
Trigger1 Property
● Syntax
When obtaining: trigger = DBTriggerParamLogical.Trigger1
When setting: DBTriggerParamLogical.Trigger1= trigger 4
Value Description Type
Details of Properties/Methods/Events
trigger Trigger to be combined DBTrigger
● Explanation
Specifies the first trigger to be combined.
Be sure to specify this if combination type of Type property is ltAnd or ltNot.
● References
“DBTriggerParamLogical.Type” (4-94 page)
"Trigger2"(4-118 page)
● Usage Example
See usage example of “DBTrigger.AsLogical” (4-101 page).
Trigger2 Property
● Syntax
● Explanation
Specifies the second trigger to be combined.
Be sure to specify this if combination type of Type property is ltAnd.
If ltNot, this property is ignored.
● References
“DBTriggerParamLogical.Type” (4-94 page)
"Trigger1"(4-117 page)
● Usage Example
See usage example of “DBTrigger.AsLogical” (4-101 page).
DBTriggerParamCustom Object
Properties
Active
True (active trigger)
Value acquisition
Yes
Value setting
Yes
4
Details of Properties/Methods/Events
False (inactive trigger) Yes Yes
● Syntax
When obtaining: value = DBTriggerParamCustom.OneShot
When setting: DBTriggerParamCustom.OneShot = value
Keyword Description
True Sets automatic OFF of trigger.
False Does not set automatic OFF of trigger.
● Explanation
Controls trigger after SetState method turns trigger ON.
In True, trigger becomes OFF immediately after Fire event occurs.
In False, triggers occur consecutively until SetState method turns trigger OFF.
● References
"TimeTo"(4-115 page)
● Usage Example
See usage example of “DBTrigger.AsCustom” (4-102 page).
Methods
SetState Method
Property Method Event
Active Operation
True (active trigger) Yes
False (inactive trigger) Yes
● Syntax
Keyword Description
True Sets status of any trigger ON.
False Sets status of any trigger OFF.
● Explanation
Sets status of any trigger.
When setting to True, trigger status is set to ON and trigger occurs.
● Usage Example
DBTriggerParamDevice Object
Properties
Communication status
Communication suspended
Value acquisition
Yes
Value setting
Yes
4
Details of Properties/Methods/Events
Communicating Yes Yes
● Syntax
When obtaining: Set dbcomm=DBTriggerParamDevice.CommManager
When setting: Set DBTriggerParamDevice.CommManager=dbcomm
● Explanation
Obtains or sets Commanagement object.
Sets device of the connected equipment which object specified with this property communicates with as
trigger.
When referring control object, use GetOcx * property.
When setting is changed, device is converted.
For more information, see "Model Change"(A-9 page).
* When you use Visual Basic 6.0, use object property.
● References
“DBCommManager.Active” (4-24 page)
● Usage Example
See “DBTrigger.AsDevice” (4-103 page).
DeviceKind Property
Point
Property Method Event
To set a device, we recommend using the SetDevice method, which checks the device type
and device number.
4 ● Syntax
When obtaining: Set value=DBTriggerParamDevice.DeviceKind
When setting: Set DBTriggerParamDevice.DeviceKind=value
Details of Properties/Methods/Events
● Explanation
Obtains or sets device type set as trigger device.
A device specified with this property and DeviceNo property is monitored as trigger device.
● References
"DeviceNo"(4-123 page)
● Usage Example
See usage example of “DBTrigger.AsDevice” (4-103 page).
DeviceNo Property
Point
● Syntax
When obtaining: Set text=DBTriggerParamDevice.DeviceNo
4
When setting: Set DBTriggerParamDevice.DeviceNo=text
Details of Properties/Methods/Events
Value Description Type
text Device number String
● Explanation
Obtains or sets device number set as trigger device.
A device specified with this property and DeviceKind property is monitored as trigger device.
● References
"DeviceKind"(4-122 page)
● Usage Example
See usage example of “DBTrigger.AsDevice” (4-103 page).
DeviceCondition Property
● Syntax
When obtaining: Set value=DBTriggerParamDevice.DeviceCondition
When setting: Set DBTriggerParamDevice.DeviceCondition=value
Value Status
1 ↑
2 ↓
3 ↑↓
4 ON
5 OFF
● Explanation
Obtains and sets occurrence condition of trigger occurred by bit device status specified with
DeviceKind and DeviceNo properties.
When value out of range is input, runtime error occurs.
● References
"DeviceKind"(4-122 page)
● Usage Example
See usage example of “DBTrigger.AsDevice” (4-103 page).
TriggerBitReset Property
● Syntax
When obtaining: Set value=DBTriggerParamDevice.TriggerBitReset
When setting: Set DBTriggerParamDevice. TriggerBitReset =value
Details of Properties/Methods/Events
Value for ‘value’
0: Reset trigger bit after trigger occurs.
1: Do not reset trigger bit after trigger occurs.
● Explanation
Obtains or sets whether trigger bit should be reset after trigger condition occurs.
Referred only when trigger condition is " ↑ " or " ↓ ," trigger bit does not be reset for other set value
(OFF if trigger condition is " ↑ ," On if " ↓ ").
● References
"DeviceCondition"(4-124 page)
● Usage Example
See usage example of “DBTrigger.AsDevice” (4-103 page).
ErrorConnect Property
● Syntax
When obtaining: Set value=DBTriggerParamDevice.ErrorConnect
Value Description
True Connection error in DBCommManager
False No connection error in DBCommManager.
● Explanation
Obtains connection status of Commanagement object (DBCommManager), but cannot set it.
True: Connection error occurs.
False: Connection error does not occur.
● References
"CommManager"(4-121 page)
● Usage Example
errConnect = AxDBTriggerManager1.Triggers(1).AsDevice.ErrorConnect
End Sub
ClearError Method
● Syntax
DBTriggerParamDevice.ClearError
● Explanation
Clears connection error status of Commanagement object (DBCommManager).
Makes status of ErrorConnect property FALSE. 4
● References
Details of Properties/Methods/Events
"CommManager"(4-121 page)
"ErrorConnect"(4-126 page)
● Usage Example
SetDevice Method
Operation
Communication suspended Yes
Communicating Yes
● Syntax
DBTriggerManager.DBTriggerParamDevice.SetDevice (kind, no)
4 Description Type
kind Device type DBPlcDevice
Details of Properties/Methods/Events
● Explanation
Sets a device trigger device.
If the trigger device setting is invalid, a runtime error occurs.
● References
"DeviceKind"(4-122 page)
"DeviceNo"(4-123 page)
● Usage Example
See usage example of "DBTrigger.AsDevice" (4-103 page).
Error Event
● Syntax
Sub DBTrigger_Error(ByVal pTrigger As DBTrigger, ByVal lAxErr As DBAxError)
Value for IAxErr
Constant
aeTriggerManagerRead
Value
4
Description
Reading process error
4
Details of Properties/Methods/Events
aeTriggerManagerWrite 5 Writing process error
● Explanation
Occurs during communication error status when using device trigger.
● References
"CommManager"(4-121 page)
"ErrorConnect"(4-126 page)
"ClearError"(4-127 page)
● Usage Example
See usage example of "ClearError"(4-127 page).
DBRTLoggingManager
DBRTLoggingManager Object
Properties
Property Method Event
CommManager Property
4 Communication status
Communication suspended
Value acquisition
Yes
Value setting
Yes
Details of Properties/Methods/Events
● Syntax
When obtaining: Set dbcomm=DBRTLoggingManager. CommManager
When setting: Set DBRTLoggingManager. CommManager = dbcomm
● Explanation
Obtains or sets Commanagement object.
Real time logging is performed by the connected equipment which object specified with this property
communicates with.
Use GetOcx* property when referring control object.
Device is converted when setting is changed.
For details, see "Model Change"(A-9 page).
* If you use Visual Basic 6.0, use object property.
● References
“DBCommManager.Active” (4-24 page)
DBRTLoggingManager
● Usage Example
With AxDBRTLoggingManager1.TriggerStart.AsDevice
.CommManager = AxDBCommManager1.GetOcx
.DeviceKind = DATABUILDERAXLibLB.DBPlcDevice.DKV5000_MR
.DeviceNo = "0"
.DeviceCondition = 1
End With
With AxDBRTLoggingManager1.TriggerStop.AsDevice
4
.CommManager = AxDBCommManager1.GetOcx
Details of Properties/Methods/Events
.DeviceKind = DATABUILDERAXLibLB.DBPlcDevice.DKV5000_MR
.DeviceNo = "0"
.DeviceCondition = 2
End With
AxDBCommManager1.Connect()
AxDBCommManager1.WriteDevice(DATABUILDERAXLibLB.DBPlcDevice.DKV5000_MR, "0", 1)
AxDBCommManager1.Disconnect()
End Sub
DBRTLoggingManager
Devices Property
● Syntax
When obtaining: Set devices = DBRTLoggingManager.Devices
● Explanation
Details of Properties/Methods/Events
Obtains DBDevices collection. Setting is performed by AddRTL and InsertRTL methods of DBDevices
objects.
Up to 128 devices in total of bit devices and word devices can be set.
When trying to set more than the upper limit, error occurs.
● References
"DBDevices Object"(4-5 page)
"DBDevice Object"(4-6 page)
● Usage Example
DBRTLoggingManager
TriggerStart Property
● Syntax
When obtaining: Set trigger = DBRTLoggingManager.TriggerStart
When setting: Set DBRTLoggingManager.TriggerStart = trigger
Details of Properties/Methods/Events
● Explanation
Obtains or sets DBTrigger object to be trigger to start sampling.
When trigger condition of set trigger is met, real time logging is started accordingly.
When a start trigger occurs, sampling condition is written into PLC.
So time lag occurs until data is actually obtained.
● References
"DBTrigger Object"(4-8 page)
"TriggerStop"(4-134 page)
● Usage Example
See usage example of “DBRTLogging.CommManager” (4-130 page).
DBRTLoggingManager
TriggerStop Property
● Syntax
When obtaining: Set trigger = DBRTLoggingManager.TriggerStop
When setting: Set DBRTLoggingManager.TriggerStop = trigger
● Explanation
Obtains or sets DBTrigger object to be trigger to finish sampling.
When trigger condition of set trigger is met, real time logging is finished accordingly.
When a stop trigger occurs, finish request is issued to PLC.
● References
"DBTrigger Object"(4-8 page)
"TriggerStart"(4-133 page)
● Usage Example
See usage example of “DBRTLogging.CommManager” (4-130 page).
DBRTLoggingManager
SamplingCycle Property
● Syntax
When obtaining: cycle = DBRTLoggingManager.SamplingCycle
When setting: DBRTLoggingManager.SamplingCycle = cycle
Details of Properties/Methods/Events
Value for cycle
● Explanation
Sets cycle for sampling data in PLC.
This value is set before starting real time logging, and setting cannot be changed during it. Runtime
error occurs when value out of range is entered.
● References
"GetStatus"(4-150 page)
● Usage Example
See usage example of “DBRTLogging.CommManager” (4-130 page).
DBRTLoggingManager
LastID Property
● Syntax
When obtaining: id = DBRTLoggingManager.LastID
● Explanation
Details of Properties/Methods/Events
For real time logging, data is saved with ID in the order of sampling. Data saved in PLC is read to a PC
by using ReadData method of DBRTLoggingManager.
The largest value of data read to PLC, that is, the last read data is obtained with LastID.
Only sampling data which is not loaded from within PLC can be obtained by combining LastID and
TopID which is the largest value of data saved within PLC, that is, the last saved ID in PLC.
● References
"ReadData"(4-151 page)
"TopID"(4-137 page)
● Usage Example
sTopID = AxDBRTLoggingManager1.TopID
sLastID = AxDBRTLoggingManager1.LastID
If sTopID > 1000 + sLastID Then
err = AxDBRTLoggingManager1.ReadData(sLastID + 1, 1000)
Else
err = AxDBRTLoggingManager1.ReadData(sLastID + 1, sTopID - sLastID)
End If
LogDataCollection = AxDBRTLoggingManager1.LoggingDataCollection
End Sub
DBRTLoggingManager
TopID Property
● Syntax
When obtaining: id = DBRTLoggingManager.TopID
Details of Properties/Methods/Events
For real time logging, data is saved with ID in the order of sampling. Data saved in PLC is read to a PC
by using ReadData method of DBRTLoggingManager.
The largest value of data saved in PLC, that is, the last saved ID number within PLC is obtained with
LastID.
Only sampling data which is not loaded from within PLC can be obtained by combining LastID and
TopID which is the largest value of data read into the PC, that is, the last read ID number.
● References
"ReadData"(4-151 page)
"TopID"(4-137 page)
● Usage Example
See usage example of "LastID"(4-136 page).
DBRTLoggingManager
TriggerID Property
● Syntax
When obtaining: id = DBRTLoggingManager.TriggerID
● Explanation
Details of Properties/Methods/Events
● References
"ReadData"(4-151 page)
"TopID"(4-137 page)
● Usage Example
trgID = AxDBRTLoggingManager1.TriggerID
TextBox1.Text = AxDBRTLoggingManager1.ReadData(trgID, 1)
End Sub
DBRTLoggingManager
LoggingDataCollection Property
● Syntax
When obtaining: Set DataCollection = DBRTLoggingManager.LoggingDataCollection
Details of Properties/Methods/Events
Collection of DBRTLoggingData (data block by ReadData).
● References
"ReadData"(4-151 page)
● Usage Example
See usage example of "LastID"(4-136 page).
DBRTLoggingManager
TriggerDataRatio Property
● Syntax
When obtaining: Ratio = DBRTLoggingManager. TriggerDataRatio
When setting: DBRTLoggingManager. TriggerDataRatio = Ratio
● Explanation
Obtains or sets data size after trigger by 0 - 100 (%). Data score after trigger is calculated with this
number.
● Usage Example
DBRTLoggingManager
TrgParamBitEnable1 - 4 Property
Sets whether bit device 1-4 available as PLC trigger should be used.
● Syntax
When obtaining: value = DBRTLoggingManager.TrgParamBitEnable1
When setting: DBRTLoggingManager.TrgParamBitEnable1 = value
Details of Properties/Methods/Events
Value for ‘value’
Constant Description
True Use trigger bit (1 -4).
False Do not use trigger bit (1 -4).
● Explanation
Sets whether trigger bit (1-4) should be used as trigger.
● References
"TrgParamBitIndex1 - 4"(4-142 page)
"TrgParamBitOn1 - 4"(4-143 page)
"TrgParamBitLogicOperator"(4-144 page)
● Usage Example
See usage example of "TriggerDataRatio"(4-140 page).
DBRTLoggingManager
TrgParamBitIndex1 - 4 Property
Obtains or sets Index number of device used for bit device which can be used as PLC trigger.
● Syntax
When obtaining: value = DBRTLoggingManager.TrgParamBitIndex1
When setting: DBRTLoggingManager.TrgParamBitIndex1 = value
● Explanation
Only the device registered for logging by DBDevice object can be registered for trigger bit of real time
logging. Registers as trigger bit device by using index number of DBDevice object.
● References
"DBDevice Object"(4-6 page)
"TrgParamBitIndex1 - 4"(4-142 page)
"TrgParamBitOn1 - 4"(4-143 page)
"TrgParamBitLogicOperator"(4-144 page)
● Usage Example
See usage example of "TriggerDataRatio"(4-140 page).
DBRTLoggingManager
TrgParamBitOn1 - 4 Property
Obtains or sets whether trigger status of bit device 1-4 available as PLC trigger is ON or OFF.
● Syntax
When obtaining: value = DBRTLoggingManager.TrgParamBitOn1
When setting: DBRTLoggingManager.TrgParamBitOn1 = value
value
Status to set as trigger
DBRTLBitDeviceOnOffSet
4
(ON/OFF)
Details of Properties/Methods/Events
Value for ‘value’
● Explanation
Obtains or sets whether trigger status of bit set as trigger bit is ON or OFF.
● References
"TrgParamBitEnable1 - 4"(4-141 page)
"TrgParamBitIndex1 - 4"(4-142 page)
"TrgParamBitLogicOperator"(4-144 page)
● Usage Example
See usage example of "TriggerDataRatio"(4-140 page).
DBRTLoggingManager
TrgParamBitLogicOperator Property
Obtains or sets combination condition of bit device 1-4 available as PLC trigger.
● Syntax
When obtaining: value = DBRTLoggingManager.TrgParamBitLogicOperator
When setting: DBRTLoggingManager.TrgParamBitLogicOperator = value
● Explanation
Obtains or sets combination condition of trigger bit.
● References
"TrgParamBitEnable1 - 4"(4-141 page)
"TrgParamBitIndex1 - 4"(4-142 page)
"TrgParamBitOn1 - 4"(4-143 page)
"TrgParamBitLogicOperator"(4-144 page)
● Usage Example
See usage example of "TriggerDataRatio"(4-140 page).
DBRTLoggingManager
TrgParamWordLogicOperator Property
Obtains or set combination condition of bit device 1-4 and word device available as PLC trigger.
● Syntax
When obtaining: value = DBRTLoggingManager.TrgParamWordLogicOperator
When setting: DBRTLoggingManager.TrgParamWordLogicOperator = value
Details of Properties/Methods/Events
Value for ‘value’
● Explanation
Obtains or sets combination condition of configured trigger bit device and trigger word device.
● References
"TrgParamWordEnable"(4-146 page)
"TrgParamWordIndex"(4-147 page)
"TrgParamWordCmpOperator"(4-148 page)
"TrgParamWordCmpValue"(4-149 page)
● Usage Example
See usage example of "TriggerDataRatio"(4-140 page).
DBRTLoggingManager
TrgParamWordEnable Property
Obtains or sets whether word device available as PLC trigger should be used.
● Syntax
When obtaining: value = DBRTLoggingManager.TrgParamWordEnable
When setting: DBRTLoggingManager.TrgParamWordEnable = value
Constant Description
True Uses word device.
False Does not use word device.
● Explanation
Obtains or sets whether word device should be used as a trigger.
● References
"TrgParamWordLogicOperator"(4-145 page)
"TrgParamWordEnable"(4-146 page)
"TrgParamWordIndex"(4-147 page)
"TrgParamWordCmpOperator"(4-148 page)
"TrgParamWordCmpValue"(4-149 page)
● Usage Example
See usage example of "TriggerDataRatio"(4-140 page).
DBRTLoggingManager
TrgParamWordIndex Property
Obtains and sets Index number of word device available as PLC trigger.
● Syntax
When obtaining: value = DBRTLoggingManager.TrgParamWordIndex()
When setting: DBRTLoggingManager.TrgParamWordIndex() = value
Details of Properties/Methods/Events
● Explanation
Only the device registered for logging by DBDevice object can be registered as the trigger word device
for real time logging. It is registered as trigger word device by using index number of DBDvice object.
● References
"DBDevice Object"(4-6 page)
"TrgParamWordLogicOperator"(4-145 page)
"TrgParamWordEnable"(4-146 page)
"TrgParamWordCmpOperator"(4-148 page)
"TrgParamWordCmpValue"(4-149 page)
● Usage Example
See usage example of "TriggerDataRatio"(4-140 page).
DBRTLoggingManager
TrgParamWordCmpOperator Property
● Syntax
When obtaining: value = DBRTLoggingManager.TrgParamWordCmpOperator
When setting: DBRTLoggingManager.TrgParamWordCmpOperator = value
● Explanation
Obtains or sets comparison condition to be trigger condition of word device.
Value to compare with is set by TrgParamWordCmpValue object.
● References
"TrgParamWordLogicOperator"(4-145 page)
"TrgParamWordEnable"(4-146 page)
"TrgParamWordIndex"(4-147 page)
"TrgParamWordCmpValue"(4-149 page)
● Usage Example
See usage example of "TriggerDataRatio"(4-140 page).
DBRTLoggingManager
TrgParamWordCmpValue Property
Obtains or sets value compared with word device available as PLC trigger.
● Syntax
When obtaining: value = DBRTLoggingManager.TrgParamWordCmpValue
When setting: DBRTLoggingManager.TrgParamWordCmpValue = value
Details of Properties/Methods/Events
● Explanation
Obtains or sets compared configuration value to be trigger of word device.
Comparison method is set by TrgParamWordCmpOperator object.
● References
"TrgParamWordLogicOperator"(4-145 page)
"TrgParamWordEnable"(4-146 page)
"TrgParamWordIndex"(4-147 page)
"TrgParamWordCmpOperator"(4-148 page)
● Usage Example
See usage example of "TriggerDataRatio"(4-140 page).
DBRTLoggingManager
Methods
GetStatus Method
Property Method Event
● Syntax
● Explanation
Obtains status of real time logging execution of object.
● Usage Example
LogStatus = AxDBRTLoggingManager1.GetStatus
If LogStatus = DATABUILDERAXLibLB.DBRTLoggingStatusSet.STAT_LOGGING Then
MsgBox(" Executing real time logging")
End If
End Sub
DBRTLoggingManager
ReadData Method
● Syntax
IsSuccess= DBRTLoggingManager.ReadData(startId, count)
Details of Properties/Methods/Events
If specifying 0, the one at the beginning is
obtained first.
count The number of data you want to obtain Long
● Explanation
PLC collects data in the specified cycle of sampling from the beginning of sampling to the end. To
obtain data collected from PC, use ReadData method.
● Usage Example
See usage example of “DBRTLoggingManager.LastID” (4-136 page).
DBRTLoggingManager
RTLoggingStart Method
Communication suspended No
Communicating Yes
● Syntax
DBRTLoggingManager.RTLoggingStart
● Explanation
Point If communication stops from starting to ending of real time logging, real time logging may
not be executed properly. Do not stop communication from starting to ending of real time
logging.
● References
"RTLoggingStop"(4-153 page)
"GetStatus"(4-150 page)
"ReadData"(4-151 page)
● Usage Example
DBRTLoggingManager
RTLoggingStop Method
● Syntax
DBRTLoggingManager. RTLoggingStop
● Explanation
Issues sampling stop request to PLC to stop real time logging.
4
● References
Details of Properties/Methods/Events
"TriggerStop"(4-134 page)
● Usage Example
See usage example of "TriggerStart"(4-133 page).
DBRTLoggingManager
GetTrgParamBit Method
● Syntax
DBRTLoggingManager.GetTrgParamBit(sIdx, pvbEnable, plSelIdx, psOn)
4 sIdx
pvbEnable
Trigger condition (1 - 4)
Trigger condition, active/inactive flag
Integer
Boolean
Device index
Details of Properties/Methods/Events
Constant Description
True Specified trigger bit is active.
False Specified trigger bit is inactive.
● Explanation
Sets bit device to be as PLC trigger condition. Active/inactive trigger condition flag, device index, status
when trigger condition is met (ON/OFF value) can be obtained by specifying Index of condition desire to
obtain.
● Usage Example
DBRTLoggingManager
SetTrgParamBit Method
● Syntax
DBRTLoggingManager.SetTrgParamBit(sIdx, vbEnable, lSelIdx, sOn)
Details of Properties/Methods/Events
lSelIdx (Index in Devices of device as trigger Long
condition)
sOn ON/OFF value Integer
Constant Description
True Specified trigger bit is active.
False Specified trigger bit is inactive.
● Explanation
Sets bit device to be as PLC trigger condition. Active/inactive trigger condition flag, device index, status
when trigger condition is met (ON/OFF value) can be set collectively by specifying Index of condition
you want to obtain.
● Usage Example
DBRTLoggingManager
GetTrgParamWord Method
● Syntax
DBRTLoggingManager.GetTrgParamWord(pvbEnable, psOpe, psSelIdx, plCmpVal)
4 pvbEnable
psOpe
Word device trigger condition, active/inactive flag
Word device trigger condition, comparison operator
Boolean
Integer
Device index
Details of Properties/Methods/Events
psSelIdx Integer
(Index in Devices of device as trigger condition)
plCmpVal Word device trigger condition, compared value Long
Constant Description
True Specified trigger word device is active.
False Specified trigger word device is inactive.
● Explanation
Sets word device to be as PLC trigger condition. Active/inactive trigger condition flag, device index,
comparison operation and compared value can be set collectively.
● Usage Example
DBRTLoggingManager
SetTrgParamWord Method
● Syntax
DBRTLoggingManager.GetTrgParamWord(vbEnable, sOpe, sSelIdx, lCmpVal)
vbEnable
Word device trigger condition, active/
inactive flag
Boolean
4
Word device trigger condition,
sOpe Integer
Details of Properties/Methods/Events
comparison operator
Device index
sSelIdx (Index in Devices of device as trigger Integer
condition)
Word device trigger condition, compared
lCmpVal Long
value
Constant Description
True Specified trigger word device is active.
False Specified trigger word device is inactive.
● Explanation
Sets word device to be as PLC trigger condition. Active/inactive trigger condition flag, device index,
comparison operation and compared value can be set collectively.
● Usage Example
DBRTLoggingManager
Events
BeforeRead Event
Property Method Event
Occurs before reading process is actually performed to the connected equipment when executing
ReadData method.
● Syntax
Sub DBRTLoggingManager_BeforeRead()
● Explanation
Occurs before reading process is actually performed to the connected equipment when executing
4 ReadData method.
● References
Details of Properties/Methods/Events
"ReadData"(4-151 page)
"AfterRead"(4-159 page)
● Usage Example
DBRTLoggingManager
AfterRead Event
Occurs after actual reading process to the connected equipment is finished when executing ReadData
method.
● Explanation
Occurs after actual reading process to the connected equipment is finished when executing ReadData
method.
● References
"ReadData"(4-151 page) 4
"BeforeRead"(4-158 page)
Details of Properties/Methods/Events
● Usage Example
DBRTLoggingManager DBRTLoggingDataCollection
DBRTLoggingDataCollection Object
Properties
Property Method Event
Count Property
Communication Value
Value setting
status acquisition
Communication
4 suspended
Yes No
Communicating Yes No
Details of Properties/Methods/Events
● Syntax
When obtaining: value = DBRTLoggingDataCollection.Count
● Explanation
Obtains the number of DBRTLoggingData included in collection.
● Usage Example
lDataCount = AxDBRTLoggingManager1.LoggingDataCollection.Count
lDevData = AxDBRTLoggingManager1.LoggingDataCollection.Item(lDataCount).DeviceValues(1).Value
End Sub
DBRTLoggingManager DBRTLoggingDataCollection
Item Property
Communication Value
Value setting
● Syntax
When obtaining: value = DBRTLoggingDataCollection.Item
Details of Properties/Methods/Events
● Explanation
Obtains DBRTLoggingData registered for specified index.
● Usage Example
See usage example of "Id"(4-162 page).
DBRTLoggingData Object
Properties
Property Method Event
Id Property
Communication Value
Value setting
status acquisition
Communication
4 suspended
Yes No
Communicating Yes No
Details of Properties/Methods/Events
● Syntax
When obtaining: value = DBRTLoggingData.Id
● Explanation
For real time logging, data is collected by sampling cycle, and collected data is managed with data ID in
order. Data ID of DBRTLoggingData object can be obtained with ID property.
● Usage Example
AxDBCommManager1.Connect()
ltrgID = AxDBRTLoggingManager1.TriggerID
If ltrgID > 100 Then
err = AxDBRTLoggingManager1.ReadData(ltrgID - 100, 200)
Else
err = AxDBRTLoggingManager1.ReadData(0, 200)
End If
lDataID = AxDBRTLoggingManager1.LoggingDataCollection.Item(1).Id
dateTime = AxDBRTLoggingManager1.LoggingDataCollection.Item(1).DateTime
bPLCTrigger = AxDBRTLoggingManager1.LoggingDataCollection.Item(1).PLCTrigger
lDeviceCount = AxDBRTLoggingManager1.LoggingDataCollection.Item(1).DeviceCount
lDevData = AxDBRTLoggingManager1.LoggingDataCollection.Item(1).DeviceValues(1).Value
End Sub
DateTime Property
Communication Value
Value setting
● Syntax
When obtaining: value = DBRTLoggingData.DateTime
Details of Properties/Methods/Events
● Explanation
Obtains sampled date/time.
● Usage Example
See usage example of "Id"(4-162 page).
PLCTrigger Property
Communication Value
Value setting
status acquisition
Communication
Yes No
suspended
Communicating Yes No
● Syntax
When obtaining: value = DBRTLoggingData.PLCTrigger
● Explanation
Obtains whether PLC triggers occurred.
● Usage Example
See usage example of "Id"(4-162 page).
DeviceCount Property
Communication Value
Value setting
Property Method Event
status acquisition
Communication
Yes No
suspended
Communicating Yes No
● Syntax
When obtaining: value = DBRTLoggingData.DeviceCount
● Explanation
Obtains the number of devices (up to 128 devices).
● Usage Example
See usage example of "Id"(4-162 page).
DeviceValues Property
Communication Value
Value setting
● Syntax
When obtaining: value = DBRTLoggingData.DeviceValues
Details of Properties/Methods/Events
● Explanation
Obtains DBRTLoggingDataValue collection.
● Usage Example
See usage example of "Id"(4-162 page).
DBRTLoggingDataValue Object
Properties
Property Method Event
DeviceType Property
Communication Value
Value setting
status acquisition
Communication
4 suspended
Yes No
Communicating Yes No
Details of Properties/Methods/Events
● Syntax
Set DeviceType=DBRTLoggingDataValue.DeviceType
● Explanation
Obtains device type of the specified device.
● Usage Example
ltrgID = AxDBRTLoggingManager1.TriggerID
ldevicetype = _
AxDBRTLoggingManager1.LoggingDataCollection.Item(ltrgID).DeviceValues(1).DeviceType
lDevData = AxDBRTLoggingManager1.LoggingDataCollection.Item(1).DeviceValues(1).Value
End Sub
Value Property
Communication Value
Value setting
● Syntax
value=DBRTLoggingDataValue.Value
Details of Properties/Methods/Events
● Explanation
Obtains sampled device data.
● Usage Example
See usage example of "DeviceType"(4-166 page).
DBCommandButton Object
Property Method Event
This control creates switch, lamp switch, lamp and N-state lamp.
Switch has two types of state, “ON” and “OFF” lump has two types of state, “Light-on” and “Light-off.”
Lamp switch has four types of state, “Light-on by ON,” “Light-off by ON,” “Light-on by OFF,” “Light-off by
OFF.” N-state lamp has N types of state.
You can check the number of states (N) on the property page.
4 Properties
Obtain Set
ActiveX Control
Method
Method name Description Reference
GetStatus Obtains status. 4-183
SetStatus Sets status. 4-183
GetStatusMax Obtains the number of status. 4-183
GetType Obtains button type. 4-183
GetMode Obtains button mode. 4-184
IsButtonPushed Obtains button pushed flag. 4-184
ResetButtonPushed Resets button pushed flag. 4-184
ShowPropDialog Displays sub-property dialog. 4-184
InvalidateCtrl Redraws control. 4-184
SetInitMode Sets mode when newly creating. 4-185
Point • BackgroundColor property can be changed directly from the property window, however,
you need to save and reload control in order to reflect on the actual control.
DBBarMeter
DBBarMeter Object
Properties
Obtain Set
Property name Description Reference
value value
InputValue
InputRangeLowerLimit
Obtains or sets value.
Obtains or sets lower limit of input range.
Yes
Yes
Yes
Yes
4-172
4-173
4
ActiveX Control
InputRangeUpperLimit Obtains or sets upper limit of input range. Yes Yes 4-173
DisplayRangeLowerLimit Obtains or sets lower limit of display range. Yes Yes 4-175
DisplayRangeUpperLimit Obtains or sets upper limit of display range. Yes Yes 4-175
AlarmRangeLowerLimit Obtains or sets lower limit of alarm range. Yes Yes 4-176
AlarmRangeUpperLimit Obtains or sets upper limit of alarm range. Yes Yes 4-176
Obtains or sets status of showing/hiding
ShowOptimumValue Yes Yes 4-179
optimum value.
OptimumValue Obtains or sets optimum value. Yes Yes 4-177
Obtains or sets status of showing/hiding
ShowLowerAlarm Yes Yes 4-178
lower limit of alarm.
Obtains or sets status of showing/hiding
ShowUpperAlarm Yes Yes 4-178
upper limit of alarm.
ScaleMarkingColor Obtains or sets scale color. Yes Yes 4-180
ScaleMarkingLowerAlarmColor Obtains or sets line color of lower limit of alarm. Yes Yes 4-181
ScaleMarkingUpperAlarmColor Obtains or sets line color of upper limit of alarm. Yes Yes 4-181
BackgroundColor Sets background color of control image. No Yes 4-182
Method
Method name Description Reference
ShowPropDialog Displays sub-property dialog box. 4-184
InvalidateCtrl Redraws control. 4-184
Point • BackgroundColor property can be changed directly from the property window, however,
you need to save and reload control in order to reflect on the actual control.
DBFanMeter
DBFanMeter Object
Circle meter can set start and end angles to represent lower and upper values of input range or display
range within 360 degree, fan-shaped meter can set them within 180 degree.
Like bar type meter, various circle and fan-shaped meters can be created by setting “Each range
configuration,” “Setting on display,” “Setting on scale” and so on in the property page.
Previously configured circle and fan-shaped meters can be used by selecting “Style.”
Properties
Obtain Set Refer
4 Property name
InputValue
Description
InputRangeLowerLimit Obtains or sets lower limit of input range. Yes Yes 4-173
InputRangeUpperLimit Obtains or sets upper limit of input range. Yes Yes 4-173
DisplayRangeLowerLimit Obtains or sets lower limit of display range. Yes Yes 4-175
DisplayRangeUpperLimit Obtains or sets upper limit of display range. Yes Yes 4-175
AlarmRangeLowerLimit Obtains or sets lower limit of alarm range. Yes Yes 4-176
AlarmRangeUpperLimit Obtains or sets upper limit of alarm range. Yes Yes 4-176
Obtains or sets status of showing/hiding
ShowOptimumValue Yes Yes 4-179
optimum value.
OptimumValue Obtains or sets optimum value. Yes Yes 4-177
Obtains or sets status of showing/hiding
ShowLowerAlarm Yes Yes 4-178
lower limit of alarm.
Obtains or sets status of showing/hiding
ShowUpperAlarm Yes Yes 4-178
upper limit of alarm.
ScaleMarkingColor Obtains or sets scale color. Yes Yes 4-180
ScaleMarkingLowerAlarmColor Obtains or sets line color of lower limit of alarm. Yes Yes 4-181
ScaleMarkingUpperAlarmColor Obtains or sets line color of upper limit of alarm. Yes Yes 4-181
BackgroundColor Sets background color of control image. No Yes 4-182
Method
Method name Description Reference
ShowPropDialog Displays sub-property dialog box. 4-184
InvalidateCtrl Redraws control. 4-184
Point • BackgroundColor property can be changed directly from the property window, however,
you need to save and reload control in order to reflect on the actual control.
DBCommandButton
Properties
Status Property
● Syntax
When obtaining: value=DBComandButton.Status
When setting: DBCommandButton.Status=value
ActiveX Control
Type Value Description
0: OFF
Switch 0 -1
1: ON
0: Light-off
Lamp 0 -1
1: Light-on
0:Light-off with OFF
1:Light-off with ON
Lamp switch 0 -3
2:Light-on with OFF
3:Light-on with ON
0 - (N-1)
Depends on type of N
N status lamp (* N depends on the selected N status
status lamp.
lamp)
● Explanation
Switch has two types of status, “ON” and “OFF”; lump also has two status types “Light-on” and “Light-
off.” Lamp switch has four types of status, “Light-on by ON,” “Light-off by ON,” “Light-on by OFF,” “Light-
off by OFF.” N status lamp has N types of status.
Check the number of status (N) on the property page.
● Usage Example
DBBarMeter
DBFanMeter
InputValue Property
● Syntax
Property Method Event
4 ● Explanation
Obtains or sets input value to display.
ActiveX Control
● Usage Example
DBBarMeter
DBFanMeter
InputRangeLowerLimit
Property
InputRangeUpperLimit
Can obtain or sets the lower limit of input range with InputRangeLowerLimit and the upper limit of input
● Syntax
When obtaining: LowerLimit = DBBarMeter.InputRangeLowerLimit
When setting: DBBarMeter.InputRangeLowerLimit = LowerLimit
When obtaining: UpperLimit = DBBarMeter.InputRangeUpperLimit
When setting: DBBarMeter.InputRangeUpperLimit = UpperLimit
When obtaining: LowerLimit = DBFanMeter.InputRangeLowerLimit
When setting: DBFanMeter.InputRangeLowerLimit = LowerLimit 4
When obtaining: UpperLimit = DBFanMeter.InputRangeUpperLimit
ActiveX Control
When setting: DBFanMeter.InputRangeUpperLimit = UpperLimit
● Explanation
Can obtain or set the lower limit of input range with InputRangeLowerLimit and the upper limit of input
range with InputRangeUpperLimit.
Set value of InputRangeLowerLimit lower than that of InputRangeUpperLimit.
● References
"InputValue"(4-172 page)
"DisplayRangeLowerLimit"(4-175 page)
"DisplayRangeUpperLimit"(4-175 page)
● Usage Example
DBBarMeter
DBFanMeter
Reference When input value is out of input range (higher than the upper limit or lower than the lower
limit), the upper or lower limit of input range is displayed and value out of the range is
never displayed.
Property Method Event
Example) If the lower limit of input range is 1000, and the upper limit is 10000:
Input value is 500 => Displayed value is 1000
Input value is 20000 => Displayed value is 10000
When display range and input range are different, input value is displayed by converting
into display range.
Example) When the lower limit of input range is 0 and the upper limit is 1000, the
Input value
ActiveX Control
0 500 1000
Input range
Conversion
0 300
Display range
Converted value
150
DBBarMeter
DBFanMeter
DisplayRangeLowerLimit
Property
DisplayRangeUpperLimit
Can obtain or set the lower limit of display range with DisplayRangeLowerLimit and the upper limit with
● Syntax
When obtaining: LowerLimit = DBBarMeter.DisplayRangeLowerLimit
When setting: DBBarMeter.DisplayRangeLowerLimit = LowerLimit
When obtaining: UpperLimit = DBBarMeter.DisplayRangeUpperLimit
When setting: DBBarMeter.DisplayRangeUpperLimit = UpperLimit
When obtaining: LowerLimit = DBFanMeter.DisplayRangeLowerLimit
When setting: DBFanMeter.DisplayRangeLowerLimit = LowerLimit 4
When obtaining: UpperLimit = DBFanMeter.DisplayRangeUpperLimit
ActiveX Control
When setting: DBFanMeter.DisplayRangeUpperLimit = UpperLimit
● Explanation
Can obtain or set the lower limit of display range with DisplayRangeLowerLimit and the upper limit of
display range with DisplayRangeUpperLimit.
Set value of DisplayRangeLowerLimit lower than that of DisplayRangeUpperLimit.
● References
"InputValue"(4-172 page)
"DisplayRangeLowerLimit"(4-175 page)
"DisplayRangeUpperLimit"(4-175 page)
● Usage Example
See usage example of "InputRangeLowerLimit" and "InputRangeUpperLimit"(4-173 page).
DBBarMeter
DBFanMeter
AlarmRangeLowerLimit
Property
AlarmRangeUpperLimit
Property Method Event
Can obtain or set the lower limit of alarm range with AlarmRangeLowerLimit and the upper limit with
AlarmRangeUpperLimit.
● Syntax
When obtaining: LowerLimit = DBBarMeter.AlarmRangeLowerLimit
When setting: DBBarMeter.AlarmRangeLowerLimit = LowerLimit
When obtaining: UpperLimit = DBBarMeter.AlarmRangeUpperLimit
When setting: DBBarMeter.AlarmRangeUpperLimit = UpperLimit
● Explanation
Can obtain or set the lower limit of alarm range with AlarmRangeLowerLimit and the upper limit of
alarm range with AlarmRangeUpperLimit.
Set value of AlarmRangeLowerLimit lower than that of AlarmRangeUpperLimit.
● References
"ShowLowerAlarm"(4-178 page)
"ShowUpperAlarm"(4-178 page)
"ScaleMarkingLowerAlarmColor"(4-181 page)
"ScaleMarkingUpperAlarmColor"(4-181 page)
● Usage Example
See usage example of "InputRangeLowerLimit" and "InputRangeUpperLimit"(4-173 page).
DBBarMeter
DBFanMeter
OptimumValue Property
● Syntax
● Explanation 4
Obtains or sets optimum value.
ActiveX Control
● References
"ShowOptimumValue"(4-179 page)
● Usage Example
See usage example of "InputRangeLowerLimit" and "InputRangeUpperLimit"(4-173 page).
DBBarMeter
DBFanMeter
ShowLowerAlarm
Property
ShowUpperAlarm
Property Method Event
Obtains or sets status of showing/hiding the lower limit of alarm with ShowLowerAlarm and the upper
limit with ShowUpperAlarm.
● Syntax
When obtaining: value = DBBarMeter.ShowLowerAlarm
When setting: DBBarMeter.ShowLowerAlarm = value
When obtaining: value = DBBarMeter.ShowUpperAlarm
When setting: DBBarMeter.ShowUpperAlarm = value
Constant Description
True Displays alarm the upper/lower limit.
False Does not display alarm the upper/lower limit.
● Explanation
Obtains or sets status of showing/hiding the lower limit of alarm with ShowLowerAlarm and the upper
limit with ShowUpperAlarm.
● References
"AlarmRangeLowerLimit"(4-176 page)
"AlarmRangeUpperLimit"(4-176 page)
"ScaleMarkingLowerAlarmColor"(4-181 page)
"ScaleMarkingUpperAlarmColor"(4-181 page)
● Usage Example
See usage example of "InputRangeLowerLimit" and "InputRangeUpperLimit"(4-173 page).
DBBarMeter
DBFanMeter
ShowOptimumValue Property
● Syntax
ActiveX Control
True Displays optimum value.
False Does not display optimum value.
● Explanation
Obtains or sets status of showing/hiding optimum value.
● References
"OptimumValue"(4-177 page)
● Usage Example
See usage example of "InputRangeLowerLimit" and "InputRangeUpperLimit"(4-173 page).
DBBarMeter
DBFanMeter
ScaleMarkingColor Property
● Syntax
When obtaining: value = DBFanMeter.ScaleMarkingColor
When setting: DBFanMeter.ScaleMarkingColor = value
● Explanation
4 Obtains or sets scale color.
● References
ActiveX Control
"InputRangeLowerLimit"(4-173 page)
"InputRangeUpperLimit"(4-173 page)
● Usage Example
See usage example of "InputRangeLowerLimit" and "InputRangeUpperLimit"(4-173 page).
DBBarMeter
DBFanMeter
ScaleMarkingLowerAlarmColor
Property
ScaleMarkingUpperAlarmColor
Can obtain or set line color of lower limit of alarm with ScaleMarkingLowerAlarmColor and that of upper
● Syntax
When obtaining: value = DBFanMeter.ScaleMarkingLowerAlarmColor
When setting: DBFanMeter.ScaleMarkingLowerAlarmColor = value
When obtaining: value = DBFanMeter.ScaleMarkingUpperAlarmColor
When setting: DBFanMeter.ScaleMarkingUpperAlarmColor = value
Value Description
Line color of alarm the lower limit or the
Type
4
value System.Drawing.Color
upper limit
ActiveX Control
● Explanation
Can obtain or set line color of lower limit of alarm with ScaleMarkingLowerAlarmColor and that of upper
limit of alarm with ScaleMarkingUpperAlarmColor.
● References
"AlarmRangeLowerLimit"(4-176 page)
"AlarmRangeUpperLimit"(4-176 page)
"ShowLowerAlarm"(4-178 page)
"ShowUpperAlarm"(4-178 page)
● Usage Example
See usage example of "InputRangeLowerLimit" and "InputRangeUpperLimit"(4-173 page).
DBCommandButton
DBBarMeter
DBFanMeter
BackgroundColor Property
● Syntax
DBFanMeter.BackgroundColor = value
● Explanation
Sets background color of control image.
4 BackgroundColor property can be changed directly from the property window, however, you need to
save and reload control in order to reflect on the actual control.
ActiveX Control
● Usage Example
DBCommandButton.BackgroundColor = System.Drawing.Color.AliceBlue
DBCommandButton.BackgroundColor = System.Drawing.Color.FromArgb(&HFFFF00)
DBCommandButton.BackgroundColor = System.Drawing.SystemColors.Control
DBFanMeter.BackgroundColor = System.Drawing.Color.AliceBlue
DBFanMeter.BackgroundColor = System.Drawing.Color.FromArgb(&HFFFF00)
DBFanMeter.BackgroundColor = System.Drawing.SystemColors.Control
DBBarMeter.BackgroundColor = System.Drawing.Color.AliceBlue
DBBarMeter.BackgroundColor = System.Drawing.Color.FromArgb(&HFFFF00)
DBBarMeter.BackgroundColor = System.Drawing.SystemColors.Control
DBCommandButtonr
Methods
GetStatus Method
● Syntax
value=DBCommandButton.GetStatus
SetStatus Method 4
Sets object status.
ActiveX Control
● Syntax
DBCommandButton.SetStatus=value
GetStatusMax Method
● Syntax
value=DBCommandButton.GetStatusMax
GetType Method
● Syntax
value=DBCommandButton.GetType
Value Description
0 Switch
1 Lamp switch
2 Lamp
3 N status lamp
DBCommandButton
GetMode Method
● Syntax
Property Method Event
value=DBCommandButton.GetMode
Value Description
4 0 Set
1 Reset
ActiveX Control
2 Bit invert
3 Momentary
IsButtonPushed Method
● Syntax
value=DBCommandButton.IsButtonPushed
Constant Description
True Button was pushed.
False Button is not pushed.
ResetButtonPushed Method
● Syntax
DBCommandButton.ResetButtonPushed
ShowPropDialog Method
● Syntax
DBCommandButton.ShowPropDialog
InvalidateCtrl Method
● Syntax
DBCommandButton.InvalidateCtrl
DBCommandButton
SetInitMode Method
● Syntax
Value Description
0 Switch 4
1 Lamp switch
ActiveX Control
2 Lamp
3 N status lamp
DBCommandButton
DBBarMeter
DBFanMeter
Events
Click Event
Property Method Event
● Syntax
Sub DBCommandButton_ClickEvent()
Sub DBBarMeter_ClickEvent()
Sub DBFanMeter_ClickEvent()
DblClick Event
4 Occurs when double-clicking object placed on the form.
ActiveX Control
● Syntax
Sub DBCommandButton_DblClick()
Sub DBBarMeter_DblClick()
Sub DBFanMeter_DblClick()
MouseDown Event
Occurs when pressing mouse button on the object placed on the form.
● Syntax
Sub DBCommandButton_MouseDownEvent()
Sub DBBarMeter_MouseDownEvent()
Sub DBFanMeter1_MouseDownEvent()
MouseMove Event
Occurs when moving mouse pointer on the object placed on the form.
● Syntax
Sub DBCommandButton_MouseMoveEvent()
Sub DBBarMeter_MouseMoveEvent()
Sub DBFanMeter_MouseMoveEvent()
MouseUp Event
Occurs when pressed mouse button is released on the object placed on the form.
● Syntax
Sub DBCommandButton_MouseUpEvent()
Sub DBBarMeter_MouseUpEvent()
Sub DBFanMeter_MouseUpEvent()
● Explanation
Occurs when pressed mouse button is released on the object placed on the form.
DBValueConverterEx Object
Methods
Method name Description Reference
ValueToUnsignedText
Converts LONG variable to decimal 16-bit format string
without sign.
4-189 4
Converts LONG variable to decimal 16-bit format string with
DBValueConverterEx
DBValueConverterEx
Methods
ValueToUnsignedText
ValueToHexText Method
ValueToBcdText
ValueToBinText
Converts Long variable to 16-bit string data format. 4
ValueToUnsignedText: Converts to decimal 16-bit format string without sign.
● Syntax
ValueToUnsignedText(value, strText)
ValueToSignedText(value, strText)
ValueToHexText(value, strText)
ValueToBcdText(value, strText)
ValueToBinText(value, strText)
● Explanation
Converts Long variable to 16-bit string data format. Runtime error occurs when there is a value which
cannot be converted.
Only low 16-bit of converted value is used.
● Usage Example
Dim CV As DATABUILDERAXLibLB.DBValueConverterEx
Dim value As Integer
Dim valueH As Integer
Dim unsignedText As String
Dim signedText As String
Dim hexText As String
Dim bcdText As String
Dim binText As String
CV = New DATABUILDERAXLibLB.DBValueConverterEx
value = 1234
valueH = &H1234
CV.ValueToUnsignedText(value, unsignedText)
CV.ValueToSignedText(value, signedText)
CV.ValueToHexText(valueH,hexText)
CV.ValueToBcdText(valueH, bcdText)
CV.ValueToBinText(value, binText)
MsgBox(unsignedText + vbLf + signedText + vbLf + hexText + vbLf + bcdText + vbLf + binText)
DBValueConverterEx
WValueToUnsignedText
WValueToSignedText
Property Method Event
WValueToHexText Method
WValueToBcdText
WValueToBinText
Converts two Long variables divided into the higher and lower digits to 32-bit string data format.
WValueToUnsignedText: Converts to decimal 32-bit format string without sign.
4 WValueToSignedText:
WValueToHexText:
Converts to decimal 32-bit format string with sign.
Converts to hexadecimal 32-bit format string.
WValueToBcdText: Converts to 32-bit BCD format string.
Data Conversion Function
● Syntax
WValueToUnsignedText(valueL,valueH,strText)
WValueToSignedText(valueL,valueH, strText)
WValueToHexText(valueL,valueH, strText)
WValueToBcdText(valueL,valueH, strText)
WValueToBinText(valueL,valueH, strText)
● Explanation
Converts two Long variables divided into the high and low to 32-bit string data format. Runtime error
occurs when there is a value which cannot be converted.
Only low 16-bit of converted values (higher and lower) is used.
● Usage Example
Dim CV As DATABUILDERAXLibLB.DBValueConverterEx
Dim valueL As Long
Dim valueH As Long
Dim unsignedText As String
Dim signedText As String
Dim hexText As String
Dim bcdText As String
Dim binText As String
CV = New DATABUILDERAXLibLB.DBValueConverterEx
valueL = &H1234
valueH = &H5678
CV.WValueToUnsignedText(valueL, valueH, unsignedText)
CV.WValueToSignedText(valueL, valueH, signedText)
CV.WValueToHexText(valueL, valueH, hexText)
CV.WValueToBcdText(valueL, valueH, bcdText)
CV.WValueToBinText(valueL, valueH, binText)
MsgBox(unsignedText + vbLf + signedText + vbLf + hexText + vbLf + bcdText + vbLf + binText)
DBValueConverterEx
WValueToFloatText Method
Converts two LONG variables divided into the high and low to string data format of single precision
floating point.
● Explanation 4
Converts two LONG variables divided into the high and low to string data format of single precision
● Usage Example
Dim CV As DATABUILDERAXLibLB.DBValueConverterEx
Dim valueL As Long
Dim valueH As Long
Dim floatText As String
CV = New DATABUILDERAXLibLB.DBValueConverterEx
valueL = &HE56
valueH = &H4049
CV.WValueToFloatText(valueL, valueH, floatText)
MsgBox(floatText)
'”3.1415” is stored in floatTesx.
DBValueConverterEx
UnsignedTextToValue
SignedTextToValue
Property Method Event
HexTextToValue Method
BcdTextToValue
BinTextToValue
Converts string data to Long variable.
UnsignedTextToValue : Converts string to represent decimal without sign.
4 SignedTextToValue :
HexTextToValue:
Converts string to represent decimal with sign.
Converts string to represent hexadecimal.
BcdTextToValue : Converts string to represent BCD data.
Data Conversion Function
● Syntax
UnsignedTextToValue(strText, value )
SignedTextToValue(strText, value )
HexTextToValue(strText, value )
BcdTextToValue(strText, value )
BinTextToValue(strText, value )
● Explanation
Converts string data to specified data format and store in Long variable.
Runtime error occurs when there is a value which cannot be converted and if converted digit exceeds
16bit.
DBValueConverterEx
● Usage Example
Dim CV As DATABUILDERAXLibLB.DBValueConverterEx
Dim unsignedText As String
Dim signedText As String
CV = New DATABUILDERAXLibLB.DBValueConverterEx
unsignedText = "12345"
4
signedText = "-12345"
DBValueConverterEx
UnsignedTextToWValue
SignedTextToWValue
Property Method Event
HexTextToWValue Method
BcdTextToWValue
BinTextToWValue
Converts string data to two Long variables divided into the higher and lower digits.
UnsignedTextToWValue : Converts string to represent decimal without sign.
4 SignedTextToWValue :
HexTextToWValue:
Converts string to represent decimal with sign.
Converts string to represent hexadecimal.
BcdTextToWValue : Converts string to represent BCD.
Data Conversion Function
● Syntax
UnsignedTextToWValue(strText, valueL ,valueH )
SignedTextToWValue(strText, valueL ,valueH )
HexTextToWValue(strText, valueL ,valueH )
BcdTextToWValue(strText, valueL ,valueH )
BinTextToWValue(strText, valueL ,valueH )
● Explanation
Converts string data to specified data format and store in two Long variables of the higher and lower
digits.
Runtime error occurs when there is a value which cannot be converted and if converted digits exceeds
32bit.
DBValueConverterEx
● Usage Example
Dim CV As DATABUILDERAXLibLB.DBValueConverterEx
Dim unsignedText As String
Dim signedText As String
CV = New DATABUILDERAXLibLB.DBValueConverterEx
unsignedText = "12345678"
signedText = "-12345678"
hexText = "ABCDEF"
bcdText = "12345678"
binText = "1010101010101011010101"
CV.UnsignedTextToWValue(unsignedText, unsignedValueL, unsignedValueH)
CV.SignedTextToWValue(signedText, signedValueL, signedValueH)
CV.HexTextToWValue(hexText, hexValueL, hexValueH)
CV.BcdTextToWValue(bcdText, bcdValueL, bcdValueH)
CV.BinTextToWValue(binText, binValueL, binValueH)
DBValueConverterEx
FloatTextToWValue Method
Converts string data of single precision floating point to store into two LONG variables of the higher and
lower digits.
Property Method Event
● Syntax
FloatTextToWValue(strText, valueL ,valueH )
4 ● Explanation
Converts string data of single precision floating point to store into two LONG variables of the higher and
Data Conversion Function
lower digits.
Runtime error occurs when there is a value which cannot be converted.
● Usage Example
Dim CV As DATABUILDERAXLibLB.DBValueConverterEx
Dim floatText As String
Dim floatValueL As Long
Dim floatValueH As Long
CV = New DATABUILDERAXLibLB.DBValueConverterEx
floatText = "+3.1415"
CV.FloatTextToWValue(floatText, floatValueL, floatValueH)
DBValueConverterEx
WValueToSigned
Method
WValueToFloat
Combines LONG variables divided into the high and low digits and converts to one variable.
● Syntax
WValueToSigned (valueL, valueH, value)
WValueToFloat (valueL, valueH, value)
● Explanation
Combines LONG variables divided into the high and low digits and converts to one 32-bit variable.
Runtime error occurs when there is a value which cannot be converted.
Only the low 16-bit of valueL or valueH is used.
● Usage Example
Dim CV As DATABUILDERAXLibLB.DBValueConverterEx
Dim valueL As Long
Dim valueH As Long
Dim valueSined As Long
Dim valueFloat As Single
CV = New DATABUILDERAXLibLB.DBValueConverterEx()
valueL = &HE979
valueH = &HC2F6
CV.WValueToSigned(valueL, valueH, valueSined)
CV.WValueToFloat(valueL, valueH, valueFloat)
DBValueConverterEx
SignedToWValue
Method
FloatToWValue
Converts LONG variable or single precision floating point real number into two LONG variables divided
Property Method Event
● Syntax
SignedToWValue (value, valueL, valueH)
FloatToWValue (value, valueL, valueH)
WValueToFloat: Single
valueL The low 16 bit of converted value Long
valueH The high 16 bit of converted value Long
● Explanation
Converts LONG variable or single precision floating point real number into two LONG variables divided
into the higher and lower. Runtime error occurs when there is a value which cannot be converted.
● Usage Example
Dim CV As DATABUILDERAXLibLB.DBValueConverterEx
Dim valueSigned As Long
Dim valueFloat As Single
Dim valueLSigned As Long
Dim valueHSigned As Long
Dim valueLFloat As Long
Dim valueHFloat As Long
CV = New DATABUILDERAXLibLB.DBValueConverterEx()
valueSigned = -1000000
valueFloat = +123.456
CV.SignedToWValue(valueSigned, valueLSigned, valueHSigned)
CV.FloatToWValue(valueFloat, valueLFloat, valueHFloat)
Set the path to the folder on which KV COM+ Library is installed before use.
Set a new function name and the directory which has the files in the environment functions of the
advanced settings in "control panel" of WINDOWS.
About DLL Function
Link Setting
#include "DataBuilder.h"
#include "DBPlcDef.h"
#include "ACPathManager2.h"
DBHCONNECT
● Definition
● Explanation
Type of connection handles 5
DBERROR
DLL Function
Error code
● Definition
● Explanation
Type of error codes
DBMode
Operation mode/state
● Definition
● Explanation
Represents the operation mode/state in KV-5500/5000/3000/1000/700 and VT3/DT.
DBTime
Time
● Definition
● Explanation
Time specification structure
5
DBDevInfo
DLL Function
Device information
● Definition
● Explanation
Structure which represents the device information of KV-5500/5000/3000/1000/700
DBDevInfoEx
Device information (expansion)
● Definition
● Explanation
Structure which represents the device information of KV-5500/5000/3000/1000/700
The format of device Nos. is as follows.
5
DLL Function
:= Device No. ""-" Bit No. in the device"
For example, "01000" represents specifying a device No. 01000.
DBPlcDevice
Device type definition
● Definition
● Explanation
Defines the device types of each model.
See "Device List" (A-4) for a list of devices you can set.
DB_COMMENT_MAX
Maximum length of a device comment
● Definition
● Explanation
Maximum length of a device comment
DBKvAlarmLog
KV-5500/5000/3000/1000/700 one alarm log
● Definition
● Explanation
KV-5500/5000/3000/1000/700 one alarm log
DBMachineType
5 Model information
DLL Function
● Definition
● Explanation
Retains the model information of KV-5500/5000/3000/1000/700.
Connection destination
Connection destination information
● Definition
5
WCHAR szAddr[DB_ADDR_MAX]; //Address
WORD wPortNo; //Port No.
} DBComParamTCPW;
#define DB_COMPORT_MAX 16 //Maximum number of COM ports
DLL Function
typedef struct { //RS232C communication parameter
BYTE byComNo; //COM Port No.
DBComBaud BaudRate; //Communication speed
SHORT nStation; //Station No. (-1: No station No.)
} DBComParamRS232C;
#define DB_BLUETOOTH_DEVNAME_LEN 31 //Maximum number of characters in the
Bluetooth distinguish name
#define DB_BLUETOOTH_BD_LEN 18 //Number of characters in the Bluetooth
BD address
(xx:xx:xx:xx:xx:xx)
#define DB_BLUETOOTH_PASSKEY_LEN 17 //Maximum number of characters in the
Bluetooth pass key
typedef struct { //BLUETOOTH parameter
int iComPort; //Virtual COM port setting value (1-100)
int iStackType; //Protocol stack type
BOOL flgManual; //COM automatic/manual
CHAR szDeviceName[DB_BLUETOOTH_DEVNAME_LEN]; //Distinguish name
CHAR szBDAddress[DB_BLUETOOTH_BD_LEN]; //BD address(display value as it is)
CHAR szPassKey[DB_BLUETOOTH_PASSKEY_LEN]; //Passkey
} DBComParamBLUETOOTHA;
typedef struct { //BLUETOOTH parameter
int iComPort; //Virtual COM port setting value (1-100)
int iStackType; //Protocol stack type
BOOL flgManual; //COM automatic/manual
WCHAR szDeviceName[DB_BLUETOOTH_DEVNAME_LEN]; //Distinguish name
WCHAR szBDAddress[DB_BLUETOOTH_BD_LEN]; //BD address(display value as it is)
WCHAR szPassKey[DB_BLUETOOTH_PASSKEY_LEN]; //Passkey
} DBComParamBLUETOOTHW;
typedef struct { //Connection configuration information
DBComType Type; //Communication route
DBComParamTCPA ParamTCP; //TCP communication parameter
DBComParamRS232C ParamRS232C; //RS232C communication parameter
DBComParamBLUETOOTHA ParamBLUETOOTH; //BLUETOOTH parameter
} DBComInfoA;
typedef struct { //Connection configuration information
DBComType Type; //Communication route
DBComParamTCPW ParamTCP; //TCP communication parameter
DBComParamRS232C ParamRS232C; //RS232C communication parameter
DBComParamBLUETOOTHW ParamBLUETOOTH; //BLUETOOTH parameter
} DBComInfoW;
● Explanation
Structure concerning to connection destination
2 Initialization of DataBuilder.dll
DBInit
Initializes DataBuilder.dll.
● Syntax
ret = DBInit(void)
About DLL Function
● Explanation
5 Initializes DataBuilder.dll.
Make sure to perform DBInit() before using DataBuilder.dll.
DLL Function
● Usage Example
if(!DBInit()){
MessageBox("Initialization failure","Initialization failed ",MB_OK);
return;
}
3 Connection Control
DBConnect
Starts communication with KV-5500/5000/3000/1000/700.
● Syntax
ret = DBConnect(lpszDestName, PlcId, lphConnect)
DLL Function
"COMx,speed" COMx : Specification of the port No. (1 to 16)
speed : Communication speed
(9600,19200,38400,57600,115200)
Example) "COM1,9600"
• In USB
Specifies as "USB".
• In Ethernet
Specifies with IP address or host name.
"The other end of communication: Port No." The other end of
communication :IP address or host name
Port No.: Port No.
lpszDestName LPCTSTR
Example) "192.168.0.10:8500"
"localhost:8500"
• In Bluetooth
Specifies parameters such as BD address as follows.
"(P1),(P2),(P3),(P4),(P5),(P6)"
P1: Virtual COM port setting value (1-100)
P2: Protocol stack type (0-3)
(* Set 0. When a Bluetooth communication driver of a
Bluetooth dongle manufacture is used, communication with
0 may fail. Please contact the nearest office.)
P3: Automatic/Manual (0: COM automatic, 1: Manual)
P4: Distinguish name (Distinguish name set by "KV STUDIO")
P5: BD address
P6: Passkey (Pass key set by "KV STUDIO")
Example) "1,1,0,KV-5000,00:00:00:00:00:00,1111"
routed
P01: Communication port assigned value
Communication with PLC connected by Serial
DLLTYPE_SERI(1)
Communication with PLC connected by USB
DLLTYPE_USB(2)
Communication with PLC connected by Ethernet
DLLTYPE_IP (4)
5 Communication via VT connected by Serial
DLLTYPE_VTSERI (7)
Communication via VT connected by USB
DLL Function
DLLTYPE_VTUSB (8)
Communication via VT connected by Ethernet
DLLTYPE_VTIP (9)
Communication via DT connected by USB
lpszDestName DLLTYPE_DTUSB (10) LPCTSTR
Communication via KV connected by USB
DLLTYPE_KVUSB (13)
Bluetooth direct-connection with PLC
DLLTYPE_BLUETOOTH(15)
Communication via KV connected by Bluetooth
DLLTYPE_ACL_BLUETOOTH(16)
P02:Communication destination equipment (1: KV-1000/700,2:
KV-5000/3000)
P03:PC-side communications port (2: Ethernet, 3: Serial, 4:
USB, 5: Bluetooth)
P04:Via VT/DT (1: Used, 2: Not used)
P05:VT/DT model(1: DT-100A, 2: VT2, 3: VT3)
P06:Communication method with KV via VT/DT (1: Serial, 2: Via
LM20V)
P07:Via FL-net (1: Used, 2: Not used)
P08:Via EtherNet/IP (1: Used, 2: Not used)
P09:Routing unit No. (0 to 48)
P10:Routing unit name (Same as the routing unit No. 0 to 48)
P11:Routing unit address
Via FL-net: Node No. 1 to 254
Via EtherNet/IP: IP address
Example)"USB;Via,,10,2,4,2,1,1,2,1,0,0,192.168.0.10"
PlcId Connection unit type. Specify PLCID defined by DBPlcDef.h. DBPlcId
When communication succeeds, a connection handle is set. In
lphConnect DBHCONNECT*
subsequent communication, this connection handle is used.
● Explanation
Starts communication with KV-5500/5000/3000/1000/700.
• In TCP/IP, When something other than IP address is specified, name resolution is performed for
Local HOSTS and DNS in that order.
• When an error occurs, communication is disconnected. (DBDisconnect() is called internally).
● Related Item
"DBDisconnect"(5-12 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
//Communication starts
err=DBConnect("USB",DBPLC_DKV5000,&hConnect);
if(DB_NOERROR!=err){
//Processing when an communication error occurs
return;
DLL Function
DBDisconnect
Terminates communication with KV-5500/5000/3000/1000/700
● Syntax
ret = DBDisconnect( hConnect)
● Explanation
Terminates communication with KV-5500/5000/3000/1000/700.
5 ● Related Item
DLL Function
"DBConnect"(5-9 page)
● Usage Example
See "DBConnect"(5-9 page) for usage examples.
DBChangeMode
Changes the operation mode/state of KV-5500/5000/3000/1000/700.
DLL Function
Mode Specifies the mode/state defined by DBMode. DBMode
● Explanation
Changes the operation mode/state of KV-5500/5000/3000/1000/700.
● Related Item
"DBQueryMode"(5-14 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
//Communication starts
err= DBConnect("USB", DBPLC_DKV5000, &hConnect);
if (DB_NOERROR != err) {
//Error handling
return;
}
//Shifts KV-5500/5000/3000/1000/700 to RUN mode
err = DBChangeMode(hConnect, DB_MODE_KV700_RUN);
if (DB_NOERROR != err) {
//Error handling
}
DBQueryMode
Acquires the operation mode/state of KV-5500/5000/3000/1000/700.
● Syntax
ret = DBQueryMode(hConnect, lpMode)
5 ● Explanation
Acquires the operation mode/state of KV-5500/5000/3000/1000/700.
DLL Function
● Related Item
"DBChangeMode"(5-13 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
DBMode Mode;
//Communication starts
err= DBConnectA("USB", DBPLC_DKV5000, &hConnect);
if (DB_NOERROR != err) {
//Error handling
return;
}
//Acquires the operation mode of KV-5500/5000/3000/1000/700
err = DBQueryMode(hConnect, &Mode);
if (DB_NOERROR != err) {
//Error handling
}
if (DB_MODE_KV700_RUN == Mode) {
//KV-5500/5000/3000/1000/700 is in RUN mode
m_radio3->SetCheck(BST_CHECKED);
} else if (DB_MODE_KV700_PROG == Mode) {
//KV-5500/5000/3000/1000/700 is PROGRAM mode
m_radio4->SetCheck(BST_CHECKED);
}
5 Read/Write to a Device
There are five methods to read a device, and four methods to write to a device.
• Read/write a value in a device.
DBRead()、DBWrite()
• Read/write a value in multiple continuous devices.
DBReadArea()、DBWriteArea()、DBReadLong()、DBWriteLong()
DBRead
5
Reads a value in a specified device.
DLL Function
● Syntax
ret = DBRead(hConnect, lpDevInfo)
● Explanation
Reads one device value.
As for a bit device, the device value is 1 when ON, and 0 when OFF.
● Related Item
"DBWrite"(5-17 page)
"DBReadArea"(5-19 page)
"DBWriteArea"(5-21 page)
"DBReadLong"(5-23 page)
"DBWriteLong"(5-25 page)
"DBKvReadRandom"(5-27 page)
"DBKvWriteRandom"(5-29 page)
"DBKvReadMonitorDataBit"(5-33 page)
"DBKvReadMonitorDataWord"(5-36 page)
"DBReadText"(5-37 page)
"DBWriteText"(5-39 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
DBDevInfo DevInfo;
//Communication start
err= DBConnectA("USB", DBPLC_DKV5000, &hConnect);
if (DB_NOERROR != err) {
//Error handling
About DLL Function
return;
}
//Read the value of DM0
DevInfo.wKind = DKV5000_DM;
DevInfo.dwNo = 0;
err = DBRead(hConnect, &DevInfo);
if (DB_NOERROR != err) {
//Error handling
5 }
return;
DBWrite
Writes a value to the specified device.
● Syntax
ret = DBWrite(hConnect, lpDevInfo)
DLL Function
● Explanation
Writes a value to the specified device.
• For a bit device, set 1 in lpDevInfo->lValue when ON, and 0 when OFF.
• CTC contact cannot be ON.
● Related Item
"DBRead"(5-15 page)
"DBReadArea"(5-19 page)
"DBWriteArea"(5-21 page)
"DBReadLong"(5-23 page)
"DBWriteLong"(5-25 page)
"DBKvReadRandom"(5-27 page)
"DBKvWriteRandom"(5-29 page)
"DBKvReadMonitorDataBit"(5-33 page)
"DBKvReadMonitorDataWord"(5-36 page)
"DBReadText"(5-37 page)
"DBWriteText"(5-39 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
DBDevInfo DevInfo;
//Communication start
err= DBConnectA("USB", DBPLC_DKV5000, &hConnect);
if (DB_NOERROR != err) {
//Error handling
About DLL Function
return;
}
//Writes to DM
DevInfo.wKind = DKV5000_DM;
DevInfo.dwNo = 100;
DevInfo.lValue = 1000;
err = DBWrite(hConnect, &DevInfo);
if (DB_NOERROR != err) {
5 //Error handling
return;
}
DLL Function
DBReadArea
Reads continuous devices.
● Syntax
ret = DBReadArea(hConnect, wKind, dwFirstNo, lCount,aDevInfo[])
dwFirstNo
Initial device No. of the devices to read
See the definition of DBPlcDevice for the device No. which can DWORD
5
be set.
DLL Function
Number of the devices to read
The maximum number is as follows.
lCount As for bit devices, DB_BITDEV_RW_MAX (16) LONG
As for word/double-word devices, DB_WORDDEV_RW_MAX
(32)
Device information (array)
Secure lCount number's aDevInfo arrays by the caller.
aDevInfo DBDevInfo
When terminated normally, the device type, device No. and read
value is set in an array of aDevinfo.
● Explanation
Reads continuous devices.
• In a bit device, the device value is 1 when ON, and 0 when OFF.
• Use DBKvReadRandom() to batch-read different types of devices or noncontinuous devices.
● Related Item
"DBRead"(5-15 page)
"DBWrite"(5-17 page)
"DBWriteArea"(5-21 page)
"DBReadLong"(5-23 page)
"DBWriteLong"(5-25 page)
"DBKvReadRandom"(5-27 page)
"DBKvWriteRandom"(5-29 page)
"DBKvReadMonitorDataBit"(5-33 page)
"DBKvReadMonitorDataWord"(5-36 page)
"DBReadText"(5-37 page)
"DBWriteText"(5-39 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
DBDevInfo aDevInfo[10];
//Communication start
err= DBConnect("USB", DBPLC_DKV5000, &hConnect);
if (DB_NOERROR != err) {
//Error handling
About DLL Function
return;
}
//Reads the values of DM0 to DM9
err = DBReadArea(hConnect, DKV5000_DM, 0, 10, aDevInfo);
if (DB_NOERROR != err) {
//Error handling
return;
}
5 //aDevInfo[0].lValue The read value of DM0
//aDevInfo[1].lValue The read value of DM1
DLL Function
DBWriteArea
Writes to continuous devices.
● Syntax
ret = DBWriteArea(hConnect, wKind, dwFirstNo, lCount, aDevInfo[])
dwFirstNo
Initial device No. of the devices to write
See the definition of DBPlcDevice for the device Nos. which can DWORD
5
be set.
DLL Function
Number of the devices to write
The maximum number is as follows.
lCount As for bit devices, DB_BITDEV_RW_MAX (16) LONG
As for word/double-word devices, DB_WORDDEV_RW_MAX
(32)
Device information (array)
Set the value to write in aDevInfo[x].lValue.
When x is 0, write aDevInfo[x].lValue to the device whose device
aDevInfo const DBDevInfo
No. is dwFirstNo.
When x is 1, write aDevInfo[x].lValue to the device whose device
No. is dwFirstNo+1.
● Explanation
Writes to continuous devices.
• For a bit device, set 1 in aDevInfo[x].lValue when ON, and 0 when OFF.
• CTC contact cannot be ON.
• Use DBKvWriteRandom() to batch-write different types of devices or noncontinuous devices.
● Related Item
"DBRead"(5-15 page)
"DBWrite"(5-17 page)
"DBReadArea"(5-19 page)
"DBReadLong"(5-23 page)
"DBWriteLong"(5-25 page)
"DBKvReadRandom"(5-27 page)
"DBKvWriteRandom"(5-29 page)
"DBKvReadMonitorDataBit"(5-33 page)
"DBKvReadMonitorDataWord"(5-36 page)
"DBReadText"(5-37 page)
"DBWriteText"(5-39 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
DBDevInfo aDevInfo[3];
//Communication start
err= DBConnect("USB", DBPLC_DKV5000, &hConnect);
if (DB_NOERROR != err) {
//Error handling
About DLL Function
return;
}
//Writes a value to DM0 to DM2 (Write 100 to DM0, 200 to DM1 and 300 to DM2)
aDevInfo[0].lValue = 100;
aDevInfo[1].lValue = 200;
aDevInfo[2].lValue = 300;
err = DBWriteArea(hConnect, DKV5000_DM, 0, 3, aDevInfo);
if (DB_NOERROR != err) {
5 //Error handling
return;
}
DLL Function
DBReadLong
Acquires data through multiple scan, and reads continuous devices up to 8192 words.
● Syntax
ret = DBReadLong(hConnect, wKind, dwFirstNo, lCount,aDevInfo[])
dwFirstNo
Initial device No. of the devices to be read
See the definition of DBPlcDevice for the device No. which can DWORD
5
be set.
DLL Function
Number of the devices read
lCount Reads up to DB_DEV_LONG_RW_MAX (8192) of devices LONG
continuously.
Device information (array)
Secure ICount number's aDevInfo array by the caller.
aDevInfo DBDevInfo
When terminated normally, the device type, device No. and read
value is set in an array of aDevInfo.
● Explanation
Acquires data through multiple scan, and read continuous devices up to 8192 words.
• In a bit device, the device value is 1 when ON, and 0 when OFF.
• Use DBKvReadRandom() to batch-read different types of devices and noncontinuous devices.
● Related Item
"DBRead"(5-15 page)
"DBWrite"(5-17 page)
"DBReadArea"(5-19 page)
"DBWriteArea"(5-21 page)
"DBWriteLong"(5-25 page)
"DBKvReadRandom"(5-27 page)
"DBKvWriteRandom"(5-29 page)
"DBKvReadMonitorDataBit"(5-33 page)
"DBKvReadMonitorDataWord"(5-36 page)
"DBReadText"(5-37 page)
"DBWriteText"(5-39 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
DBDevInfo aDevInfo[4096];
//Communication start
err= DBConnect("USB", DBPLC_DKV5000, &hConnect);
if (DB_NOERROR != err) {
//Error handling
About DLL Function
return;
}
//Reads the values of DM0 to DM9
err = DBReadLong(hConnect, DKV5000_DM, 0, 10, aDevInfo);
if (DB_NOERROR != err) {
//Error handling
return;
}
5 //aDevInfo[0].lValue The read value of DM0
//aDevInfo[1].lValue The read value of DM1
DLL Function
DBWriteLong
Writes values to devices through multiple scan and up to 8192 continuous devices.
● Syntax
ret = DBWriteLong(hConnect, wKind, dwFirstNo, lCount,const DBDevInfo aDevInfo[])
dwFirstNo
Initial device No. of the devices to write
See the definition of DBPlcDevice for the device Nos. which can DWORD
5
be set.
DLL Function
Number of the devices to write
lCount LONG
Writes to up to DB_DEV_LONG_RW_MAX (8192) of devices.
Device information (array)
Set the value to write in aDevInfo[x].lValue.
When x is 0, write aDevInfo[x].lValue to the device whose device
aDevInfo const DBDevInfo
No. is dwFirstNo.
When x is 1, write aDevInfo[x].lValue to the device whose device
No. is dwFirstNo+1.
● Explanation
Writes values to devices through multiple scan and up to 8192 continuous devices.
• For a bit device, set 1 in aDevInfo[x].lValue when ON, and 0 when OFF.
• CTC contact cannot be ON.
• Use DBKvWriteRandom() to batch-write to different types of devices and noncontinuous devices.
● Related Item
"DBRead"(5-15 page)
"DBWrite"(5-17 page)
"DBReadArea"(5-19 page)
"DBWriteArea"(5-21 page)
"DBReadLong"(5-23 page)
"DBKvReadRandom"(5-27 page)
"DBKvWriteRandom"(5-29 page)
"DBKvReadMonitorDataBit"(5-33 page)
"DBKvReadMonitorDataWord"(5-36 page)
"DBReadText"(5-37 page)
"DBWriteText"(5-39 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
DBDevInfo aDevInfo[4096];
//Communication start
err= DBConnect("USB", DBPLC_DKV5000, &hConnect);
if (DB_NOERROR != err) {
//Error handling
About DLL Function
return;
}
//Writes values to DM0 to DM4095
// (Write 100 to DM0, 200 to DM1, 300 to DM2, ..., 1234 to DM4095)
aDevInfo[0].lValue = 100;
aDevInfo[1].lValue = 200;
aDevInfo[2].lValue = 300;
:
5 aDevInfo[4095].lValue = 1234;
err = DBWriteLong(hConnect, DKV5000_DM, 0, 4096, aDevInfo);
if (DB_NOERROR != err) {
DLL Function
//Error handling
return;
}
DBKvReadRandom
Batch-reads different types of devices and noncontinuous devices.
● Syntax
ret = DBKvReadRandom(hConnect, lCount, aDevInfo[])
DLL Function
Device information (array)
Set the device types in aDevInfo[x].wKind, and device Nos. in
aDevInfo[x].dwNo to the device to read.
aDevInfo When terminated normally, the results of reading each device is DBDevInfo
set in aDevInfo[x].lValue.
See the definition of DBPlcDevice for the device types and
device Nos. which can be set.
● Explanation
Batch-reads different types of devices and noncontinuous devices.
DB_NOERROR: Normal termination
Other than above: Error
See "Error Message Lists"(A-10 page).
● Related Item
"DBRead"(5-15 page)
"DBWrite"(5-17 page)
"DBReadArea"(5-19 page)
"DBWriteArea"(5-21 page)
"DBReadLong"(5-23 page)
"DBWriteLong"(5-25 page)
"DBKvWriteRandom"(5-29 page)
"DBKvReadMonitorDataBit"(5-33 page)
"DBKvReadMonitorDataWord"(5-36 page)
"DBReadText"(5-37 page)
"DBWriteText"(5-39 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
DBDevInfo aDevInfo[3];
//Communication start
err= DBConnect("USB", DBPLC_DKV5000, &hConnect);
if (DB_NOERROR != err) {
//Error handling
About DLL Function
return;
}
//Reads the values of DM0, DM100 and TM5
aDevInfo[0].wKind = DKV5000_DM;
aDevInfo[0].dwNo = 0;
aDevInfo[1].wKind = DKV5000_DM;
aDevInfo[1].dwNo = 100;
aDevInfo[2].wKind = DKV5000_TM;
5 aDevInfo[2].dwNo = 5;
err = DBKvReadRandom(hConnect, 3, aDevInfo);
if (DB_NOERROR != err) {
DLL Function
//Error handling
return;
}
//aDevInfo[0].lValue The read value of DM0
//aDevInfo[1].lValue The read value of DM100
//aDevInfo[2].lValue The read value of TM5
DBKvWriteRandom
Batch-writes to different types of devices and noncontinuous devices.
● Syntax
ret = DBKvWriteRandom(hConnect, lCount, aDevInfo[]);
DLL Function
Sets up to 48 (16 bit devices + 32 word/double-word devices).
Device information (array)
Sets the device types in aDevInfo[x].wKind, device Nos. in
aDevInfo[x].dwNo and device values in aDevInfo[x].lValue to the
aDevInfo const DBDevInfo
device to write.
See the definition of DBPlcDevice for the device types and
device Nos. which can be set.
● Explanation
Batch-writes to different types of devices and noncontinuous devices.
• As for a bit device, set 1 in aDevInfo[x].lValue when ON, and 0 when OFF.
• CTC contact cannot be ON.
● Related Item
"DBRead"(5-15 page)
"DBWrite"(5-17 page)
"DBReadArea"(5-19 page)
"DBWriteArea"(5-21 page)
"DBReadLong"(5-23 page)
"DBWriteLong"(5-25 page)
"DBKvReadRandom"(5-27 page)
"DBKvReadMonitorDataBit"(5-33 page)
"DBKvReadMonitorDataWord"(5-36 page)
"DBReadText"(5-37 page)
"DBWriteText"(5-39 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
DBDevInfo aDevInfo[3];
//Starts communication
err= DBConnect("USB", DBPLC_DKV5000, &hConnect);
if (DB_NOERROR != err) {
//Error handling
About DLL Function
return;
}
//Writes 100 to DM0, 200 to DM100 and 300 to TM5
aDevInfo[0].wKind = DKV5000_DM;
aDevInfo[0].dwNo = 0;
aDevInfo[0].lValue = 100;
aDevInfo[1].wKind = DKV5000_DM;
aDevInfo[1].dwNo = 100;
5 aDevInfo[1].lValue = 200;
aDevInfo[2].wKind = DKV5000_TM;
aDevInfo[2].dwNo = 5;
DLL Function
aDevInfo[2].lValue = 300;
err = DBKvWriteRandom(hConnect, 3, aDevInfo);
if (DB_NOERROR != err) {
//Error handling
return;
}
DBKvRegMonitorBit
Performs monitor registration for a bit device.
● Syntax
ret = DBKvRegMonitorBit(hConnect, byBankNo, lCount,aDevInfo[]);
DLL Function
information is cleared.
Set the device type of the device to be registered in
aDevInfo[x].wKind, and the device No. in aDevInfo[x].dwNo.
aDevInfo const DBDevInfo
The object device type is bit format only. aDevInfo is used to read
a monitor.
● Explanation
Performs monitor registration for a bit device.
• When this function is performed, monitor registration is performed after clearing the monitor
information of the specified bank (Cannot add monitor registration).
• Cannot register two or more banks simultaneously.
● Related Item
"DBKvReadMonitorDataBit"(5-33 page)
"DBKvRegMonitorWord"(5-34 page)
"DBKvReadMonitorDataWord"(5-36 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
DBDevInfo aDevInfo[3];
//Starts communication
err= DBConnect("USB", DBPLC_DKV5000, &hConnect);
if (DB_NOERROR != err) {
//Error handling
About DLL Function
return;
}
//Performs monitor registration of relay (R)0, timer (T)10 and counter (C)50 for bank 0.
aDevInfo[0].wKind = DKV5000_RLY_B;
aDevInfo[0].dwNo = 0;
aDevInfo[1].wKind = DKV5000_T;
aDevInfo[1].dwNo = 10;
aDevInfo[2].wKind = DKV5000_C;
5 aDevInfo[2].dwNo = 50;
err = DBKvRegMonitorBit(hConnect, 0, 3, aDevInfo);
if (DB_NOERROR != err) {
DLL Function
//Error handling
return;
}
//Reads the monitor (bank 0)
err = DBKvReadMonitorDataBit(hConnect, 0, 3, aDevInfo);
if (DB_NOERROR != err) {
//Error handling
return;
}
//aDevInfo[0].lValue The result of reading relay (R)0
//aDevInfo[1].lValue The result of reading timer (T)10
//aDevInfo[2].lValue The result of reading counter (C)50
DBKvReadMonitorDataBit
Reads a device for which monitor registration was done by DBKvRegMonitorBit().
● Syntax
ret = DBKvReadMonitorDataBit(hConnect, byBankNo, lCount,aDevInfo[]);
5
lCount Specifies the number of devices to read. LONG
Device information (array)
Specify aDevInfo used in monitor registration by
DLL Function
DBKvRegMonitorBit()
aDevInfo If different device information is specified, the operation is not DBDevInfo
guaranteed.
When terminated normally, the device value is set in
aDevInfo[x].lValue.
● Explanation
Reads a device for which monitor registration was done by DBKvRegMonitorBit().
• The device value is 1 when ON, and 0 when OFF.
• Cannot read two or more banks simultaneously.
• Cannot read a registered device from the middle of it. Reading is performed from the start registered
in a bank.
● Related Item
"DBKvRegMonitorBit"(5-31 page)
"DBKvRegMonitorWord"(5-34 page)
"DBKvReadMonitorDataWord"(5-36 page)
"DBRead"(5-15 page)
"DBWrite"(5-17 page)
"DBReadArea"(5-19 page)
"DBWriteArea"(5-21 page)
"DBReadLong"(5-23 page)
"DBWriteLong"(5-25 page)
"DBKvReadRandom"(5-27 page)
"DBReadText"(5-37 page)
"DBWriteText"(5-39 page)
● Usage Example
See "DBKvRegMonitorBit"(5-31 page) for usage example.
DBKvRegMonitorWord
Performs monitor registration for a word device/double-word device.
● Syntax
ret = DBKvRegMonitorWord(hConnect, byBankNo, lCount,aDevInfo[]);
● Explanation
Performs monitor registration for a word device/double-word device*.
* Only when timer (T) and counter (C) are set, monitor registration of a double-word device is performed.
● Related Item
"DBKvRegMonitorBit"(5-31 page)
"DBKvReadMonitorDataBit"(5-33 page)
"DBKvReadMonitorDataWord"(5-36 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
DBDevInfo aDevInfo[3];
//Starts communication
err= DBConnect("USB", DBPLC_DKV5000, &hConnect);
if (DB_NOERROR != err) {
//Error handling
DLL Function
if (DB_NOERROR != err) {
//Error handling
return;
}
//Reads the monitor (bank1)
err = DBKvReadMonitorDataWord(hConnect, 1, 3, aDevInfo);
if (DB_NOERROR != err) {
//Error handling
return;
}
//aDevInfo[0].lValue The result of reading DM0
//aDevInfo[1].lValue The result of reading timer setting value (TS)10
//aDevInfo[2].lValue The result of reading counter current value (CC)50
DBKvReadMonitorDataWord
Reads a device for which a monitor is registered by DBKvRegMonitorWord().
● Syntax
ret = DBKvReadMonitorDataWord(hConnect, byBankNo, lCount,aDevInfo[]);
5
lCount Specifies the number of devices to read. LONG
Device information (array)
Specifies aDevInfo which is used in monitor registration by
DLL Function
DBKvRegMonitorWord()
aDevInfo When different device information is specified, the operation is DBDevInfo
not guaranteed.
When terminated normally, the device value is set in
aDevInfo[x].lValue.
● Explanation
Reads a device for which a monitor is registered by DBKvRegMonitorWord().
• Cannot read two or more banks simultaneously.
• Cannot read a registered device from the middle of it. Reading is performed from the start registered
in a bank.
● Related Item
"DBKvRegMonitorBit"(5-31 page)
"DBKvReadMonitorDataBit"(5-33 page)
"DBKvRegMonitorWord"(5-34 page)
"DBRead"(5-15 page)
"DBWrite"(5-17 page)
"DBReadArea"(5-19 page)
"DBWriteArea"(5-21 page)
"DBReadLong"(5-23 page)
"DBWriteLong"(5-25 page)
"DBKvReadRandom"(5-27 page)
"DBReadText"(5-37 page)
"DBWriteText"(5-39 page)
● Usage Example
See "DBKvRegMonitorWord"(5-34 page) for usage examples.
DBReadText
Reads a variable-length character string from a PLC device.
● Syntax
ret = DBReadText(hConnect, wKind, dwFirstNo, lMaxCount, pszText)
dwFirstNo
Initial device No. of the device to read
See the definition of DBPlcDevice for the device No. which can be set.
DWORD
5
DLL Function
Number of the devices to read
lMaxCount A word device can store 2 ASCII characters. LONG
The maximum value to be set is 128 word devices (256 characters).
Character string to read
pszText Secure device size which can store the number of devices in LPSTR
lMaxCount.
● Explanation
Reads the character data stored with the specified device type and device No. as the start. The
readable number of character strings is up to the maximum character string length (word unit) (two
characters of one byte can be read by one word). Reads until the first NULL from the start is confirmed
and stores the read character string. If there is no NULL within the maximum length of a character
string (word unit), the character string added with NULL is stored after reading the maximum length of a
character string.
When a value cannot be converted to a character string, a runtime error occurs.
● Related Item
"DBRead"(5-15 page)
"DBWrite"(5-17 page)
"DBReadArea"(5-19 page)
"DBWriteArea"(5-21 page)
"DBReadLong"(5-23 page)
"DBWriteLong"(5-25 page)
"DBKvReadRandom"(5-27 page)
"DBKvReadMonitorDataBit"(5-33 page)
"DBKvReadMonitorDataWord"(5-36 page)
"DBWriteText"(5-39 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
CHAR pszText[256];
//Starst communication
if (!DBInit()) {
return;
}
About DLL Function
err=DBConnect("USB",DBPLC_DKV5000,&hConnect);
if (DB_NOERROR != err) {
// Error handling
return;
}
//Reads text
err=DBReadText(hConnect,DKV5000_DM,0,10,(LPSTR)pszText);
if (DB_NOERROR != err) {
5 // Error handling
return;
}
DLL Function
//Stops communication
DBDisconnect(hConnect);
DBWriteText
Writes a variable-length character string to a PLC device.
● Syntax
ret = DBWriteText(hConnect, wKind, dwFirstNo, lMaxCount, pszText)
dwFirstNo
Initial device No. of the device to write
See the definition of DBPlcDevice for the device No. which can DWORD
5
be set.
DLL Function
Maximum number of the devices to which can be written
Stores two ASCII characters by one word device.
Needs a storage space for NULL which is to write at the end of
lMaxCount LONG
the character string.
The maximum value to be set is 128 word devices (256
characters).
pszText Character string to write const LPCSTR
● Explanation
Writes a character string to a device.
• Writes NULL at the end of the character string.
• When the maximum number of devices specified by dwFirstNo + lMaxCount is exceeded, the
function returns an error.
• With the written data which do not have NULL within the maximum length of a character string, it
adds NULL at {(lMaxCount) × 2-1}th character from the start.
• When there is a value which cannot be converted to a character string, a runtime error occurs.
● Related Item
"DBRead"(5-15 page)
"DBWrite"(5-17 page)
"DBReadArea"(5-19 page)
"DBWriteArea"(5-21 page)
"DBReadLong"(5-23 page)
"DBWriteLong"(5-25 page)
"DBKvReadRandom"(5-27 page)
"DBKvReadMonitorDataBit"(5-33 page)
"DBKvRegMonitorWord"(5-34 page)
"DBReadText"(5-37 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
// Starts communication
err= DBConnect("USB", DBPLC_DKV5000, &hConnect);
if (DB_NOERROR != err) {
// Error handling
return;
About DLL Function
}
err=DBWriteText(hConnect,DKV5000_DM,10,20,"Sample");
if (DB_NOERROR != err) {
// Error handling
return;
}
5
DLL Function
6 Alarm
DBKvGetAlarmLogCount
Acquires the number of alarm logs.
hConnect
See "Error Message Lists"(A-10 page).
Connection handle DBHCONNECT
5
DLL Function
lplCount When terminated normally, the number of alarm logs is set. LONG *
● Explanation
Acquires the number of alarm logs.
By using DBKvGetAlarmLog(), the number of alarm logs is acquired in addition to the logs.
● Related Item
"DBKvGetAlarmLog"(5-42 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
LONG lAlarmLogCount;
//Starts communication
err= DBConnect("USB", DBPLC_DKV5000, &hConnect);
if (DB_NOERROR != err) {
//Error handling
return;
}
//Acquires the number of alarm logs
err = DBKvGetAlarmLogCount(hConnect, &lAlarmLogCount);
if (DB_NOERROR != err) {
//Error handling
return;
}
//lAlarmLogCount The number of alarm logs
DBKvGetAlarmLog
Acquires all alarm logs.
● Syntax
ret = DBKvGetAlarmLog(hConnect, lpAlarmLog, lplCount)
● Explanation
Acquires all alarm logs.
• Up to 64 alarm logs are stored in KV-5500/5000/3000/1000/700.
• The value of lpAlarmLog->wYear is the actual year - 2000.
(Example) If it is 2010, 10 is set in lpAlarmLog->wYear.
● Related Item
"DBKvGetAlarmLogCount"(5-41 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
LONG lAlarmLogCount;
DBKvAlarmLog aAlarmLog[DBKV_ALARM_LOG_MAX];
//Starts communication
err= DBConnect("USB", DBPLC_DKV5000, &hConnect);
if (DB_NOERROR != err) {
//Error handling
return;
}
//Acquires alarm logs
err = DBKvGetAlarmLog(hConnect, aAlarmLog, &lAlarmLogCount);
if (DB_NOERROR != err) {
//Error handling
return;
}
//aAlarmLog[DBKV_ALARM_LOG_MAX] Alarm logs
//lAlarmLogCount The number of alarm logs
DBMemoryCardFileCopyFrom
Copies a file on a memory card to a PC's path.
Reference The maximum file size to be copied is 256MB.
pszFilePathM
Specifies the path of the file to be copied on a memory card.
((IP address)/Set MMC onward)
LPSTR
5
DLL Function
pszFilePathL Specifies the path of a file to be copied to in PC. LPSTR
dwFlag Specifies the operating conditions DWORD
● Explanation
Copies a file on a memory card to a PC's path.
* Available only for KV-5500/5000/3000.
● Related Item
"DBMemoryCardFileCopyTo"(5-45 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
//Starts communication
err=DBConnect("192.168.0.10:8500",DBPLC_DKV5000,&hConnect);
if (DB_NOERROR != err) {
// Error handling
return;
About DLL Function
}
//Reads from a memory card
err=DBMemoryCardFileCopyFrom(hConnect,"Sample.csv","C:\test\Sample1.csv",
DB_OVERWRITE_ALLOW);
if (DB_NOERROR != err) {
// Error handling
return;
}
5 //Stops communication
DBDisconnect(hConnect);
DLL Function
DBMemoryCardFileCopyTo
Copies a file on a PC to a memory card 's path.
Reference The maximum file size to be copied is 256MB.
● Syntax
ret = DBMemoryCardFileCopyTo(hConnect,pszFilePathL,pszFilePathM,dwFlag)
DLL Function
Value for dwFlag
● Explanation
Copies a file on a PC to a memory card 's path.
* Available only for KV-5500/5000/3000.
● Related Item
"DBMemoryCardFileCopyFrom"(5-43 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
//Starts communication
err=DBConnect("192.168.0.10:8500",DBPLC_DKV5000,&hConnect);
if (DB_NOERROR != err) {
// Error handling
return;
}
//Writes to a memory card
err=DBMemoryCardFileCopyTo(hConnect,"C:\test\Sample.csv","Sample.csv",DB_OVERWRITE_ALLOW)
;
if (DB_NOERROR != err) {
// Error handling
return;
}
//Stops communication
DBDisconnect(hConnect);
DBMemoryCardFileState
Acquires a file status on a memory card.
● Syntax
ret = DBMemoryCardFileState(hConnect,pszFilePathM,ptmAccess,
ptmCreate,ptmModify,dwFileSize,bIsDirectory)
Return value
ret lAxError
See "Error Message Lists"(A-10 page).
hConnect Connection handle DBHCONNECT
Specifies the path of the file whose status is to be acquired
pszFilePathM on a memory card. LPSTR
((IP address)/Set MMC onward)
5
ptmAccess Last access date tm*
ptmCreate Date created tm*
ptmModify Date updated tm*
DLL Function
● Explanation
Acquires a file status on a memory card.
* Available only for KV-5500/5000/3000.
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
struct tm a;
struct tm b;
struct tm c;
DWORD dwFileSize;
BOOL bIsDirectory;
//Starts communication
err=DBConnect("USB",DBPLC_DKV5000,&hConnect);
if (DB_NOERROR != err) {
// Error handling
return;
}
//Reads from a memory card
err = DBMemoryCardFileState(hConnect,"Sample.csv",&a,&b,&c,&dwFileSize,&bIsDirectory);
if (DB_NOERROR != err) {
// Error handling
return;
}
//Stops communication
DBDisconnect(hConnect);
DBMemoryCardFileDelete
Deletes a file on a memory card.
● Syntax
ret = DBMemoryCardFileDelete(hConnect,pszFilePathM, dwFlag)
DLL Function
Disables deletion when the file to be deleted is
DB_DELETE_EXCEPT_READ_ONLY 3
ReadOnly.
Enables deletion when the file to be deleted is
DB_DELETE_FORCE 2
ReadOnly.
Other Incorrect parameter error
● Explanation
Deletes a file on a memory card.
* Available only for KV-5500/5000/3000.
● Related Item
"DBMemoryCardFileRename"(5-48 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
//Starts communication
err=DBConnect("192.168.0.10:8500",DBPLC_DKV5000,&hConnect);
if (DB_NOERROR != err) {
// Error handling
return;
}
//Deletes from the memory card
err=DBMemoryCardFileDelete(hConnect,"Sample.csv",DB_DELETE_FORCE);
if (DB_NOERROR != err) {
// Error handling
return;
}
//Stops communication
DBDisconnect(hConnect);
DBMemoryCardFileRename
Renames a file on a memory card.
● Syntax
ret = DBMemoryCardFileRename(hConnect,pszFilePathM,pszNewFilePathM,dwFlag)
ret DBERROR
See "Error Message Lists"(A-10 page).
hConnect Connection handle DBHCONNECT
Specifies the path and file name before modification on a
pszFilePathM memory card. LPSTR
((IP address)/Set MMC onward)
Specifies a file name on a memory card.
pszNewFilePathM LPSTR
5
((IP address)/Set MMC onward)
dwFlag Specifies the operating condition. DWORD
DLL Function
● Explanation
Renames a file on a memory card.
* Available only for KV-5500/5000/3000.
● Related Item
"DBMemoryCardFileDelete"(5-47 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
//Starts communication
err=DBConnect("192.168.0.10:8500",DBPLC_DKV5000,&hConnect);
if (DB_NOERROR != err) {
// Error handling
return;
}
//Rename
err=DBMemoryCardFileRename(hConnect,"Sample.csv","SampleTest.csv");
if (DB_NOERROR != err) {
// Error handling
return;
}
//Stops communication
DBDisconnect(hConnect);
DBMemoryCardMakeDirectory
Creates a directory on a memory card.
● Syntax
ret = DBMemoryCardMakeDirectory(hConnect,pszDirectory)
● Explanation
Creates a directory on a memory card.
* Available only for KV-5500/5000/3000.
5
DLL Function
● Related Item
"DBMemoryCardRemoveDirectory"(5-50 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
//Starts communication
err=DBConnect("192.168.0.10:8500",DBPLC_DKV5000,&hConnect);
if (DB_NOERROR != err) {
// Error handling
return;
}
//Creates a directory
err=DBMemoryCardMakeDirectory(hConnect,"SampleDirectory");
if (DB_NOERROR != err) {
// Error handling
return;
}
//Stops communication
DBDisconnect(hConnect);
DBMemoryCardRemoveDirectory
Deletes a directory on a memory card.
● Syntax
ret = DBMemoryCardRemoveDirectory(hConnect,pszDirectory,dwFlag)
ret DBERROR
See "Error Message Lists"(A-10 page).
hConnect Connection handle DBHCONNECT
Specifies the path of the directory to be deleted on a memory
pszDirectory card. LPSTR
((IP address)/Set MMC onward)
dwFlag Specifies the condition for deletion. DWORD
● Explanation
Deletes a directory on a memory card.
* Available only for KV-5500/5000/3000.
● Related Item
"DBMemoryCardMakeDirectory"(5-49 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
//Starts communication
err=DBConnect("192.168.0.10:8500",DBPLC_DKV5000,&hConnect);
if (DB_NOERROR != err) {
// Error handling
return;
}
//Deletes a directory
err=DBMemoryCardRemoveDirectory(hConnect,"SampleDirectory",DB_DELETE_EMPTY);
if (DB_NOERROR != err) {
// Error handling
return;
}
//Stops communication
DBDisconnect(hConnect);
DBMemoryCardFileCountInDirectory
Acquires the number of files contained in a directory of a memory card.
● Syntax
ret = DBMemoryCardFileCountInDirectory(hConnect,pszDirectory,pwFileCount)
● Explanation 5
Acquires the number of files contained in a directory of a memory card.
DLL Function
* Available only for KV-5500/5000/3000.
● Related Item
"DBMemoryCardFilesInDirectory"(5-52 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
WORD wFileCount = 0;
//Starts communication
err=DBConnect("USB",DBPLC_DKV5000,&hConnect);
if (DB_NOERROR != err) {
// Error handling
return;
}
//Acquires the number of files
err=DBMemoryCardFileCountInDirectory(hConnect,"TEST",&wFileCount);
if (DB_NOERROR != err) {
// Error handling
return;
}
str.Format(_T("The number of files : %d"),wFileCount);
m_Edit2.SetWindowTextA(str);
//Stops communication
DBDisconnect(hConnect);
DBMemoryCardFilesInDirectory
Acquires file names contained in a directory of a memory card.
● Syntax
ret = DBMemoryCardFilesInDirectory(hConnect, pszDirectory, wFileCount, ppbyFiles)
ret DBERROR
See "Error Message Lists"(A-10 page).
hConnect Connection handle DBHCONNECT
Specifies the path of the directory in which file names are to be
pszDirectory acquired on a memory card. LPSTR
((IP address)/Set MMC onward)
wFileCount Number of files WORD
● Explanation
DLL Function
● Related Item
"DBMemoryCardFileCountInDirectory"(5-51 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
BYTE** ppbyFiles=NULL;
//Starts communication
err=DBConnect("USB",DBPLC_DKV5000,&hConnect);
if (DB_NOERROR != err) {
// Error handling
return;
}
ppbyFiles = new BYTE*[1];
ppbyFiles[0] = new BYTE[256];
//Acquires file names in a directory.
err=DBMemoryCardFilesInDirectory(hConnect,"TEST",1,ppbyFiles);
if (DB_NOERROR != err) {
// Error handling
return;
}
str = ppbyFiles[0];
m_Edit2.SetWindowTextA(str);
//Stops communication
DBDisconnect(hConnect);
DBMemoryCardSpace
Acquires the space of a memory card.
● Syntax
ret = DBMemoryCardSpace(hConnect,lpdwUpTotal,pdwLowTotal,pdwUpFree,pdwLowFree)
DLL Function
Acquires the space of a memory card.
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
DWORD a=0;
DWORD b=0;
DWORD c=0;
DWORD d=0;
//Starts communication
err=DBConnect("USB",DBPLC_DKV5000,&hConnect);
if (DB_NOERROR != err) {
// Error handling
return;
}
//Acquires the space
err=DBMemoryCardSpace(hConnect,&a,&b,&c,&d);
if (DB_NOERROR != err) {
// Error handling
return;
}
//Stops communication
DBDisconnect(hConnect);
8 Other Control
DBSetSystemTime
Sets the built-in clock of KV-5500/5000/3000/1000/700.
● Syntax
ret = DBSetSystemTime(hConnect, pTime)
About DLL Function
● Explanation
Sets the built-in clock of KV-5500/5000/3000/1000/700.
• Sets the weekday by automatic calculating from pTime.
• The range can be set from 2000 to 2099.
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
DBTime DBTimeSet;
//Starts communication
err= DBConnect("USB", DBPLC_DKV5000, &hConnect);
if (DB_NOERROR != err) {
//Error handling
return;
}
//Time setting 08/18/2010 9:30:00
DBTimeSet.wYear = 2010;
DBTimeSet.wMonth = 8;
DBTimeSet.wDay = 18;
DBTimeSet.wHour = 9;
DBTimeSet.wMinute = 30;
DBTimeSet.wSecond = 0;
err = DBSetSystemTime(hConnect, &DBTimeSet);
if (DB_NOERROR != err) {
//Error handling
return;
}
DBQueryType
Inquires the model.
● Syntax
ret = DBQueryType(hConnect, lpType)
DLL Function
lpType lpType->szName "KV-3000" DBMachineType *
For KV-1000
lpType->szName "KV-1000"
For KV-700 without expanded memory
lpType->szName “KV-700”
For KV-700 with expanded memory
lpType->szName “KV-700+M”
● Explanation
Inquires the model.
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
DBMachineType DBType;
//Starts communication
err= DBConnect("USB", DBPLC_DKV5000, &hConnect);
if (DB_NOERROR != err) {
//Error handling
return;
}
//Inquires the model
err = DBQueryType(hConnect, &DBType);
if (DB_NOERROR != err) {
//Error handling
return;
}
DBKvClearError
Clears an error of KV-5500/5000/3000/1000/700.
● Syntax
ret = DBKvClearError(hConnect)
● Explanation
Clears an error of KV-5500/5000/3000/1000/700.
5 ● Related Item
DLL Function
"DBKvQueryErrorNumber"(5-57 page)
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
BYTE byError;
//Starts communication
err= DBConnectA("USB", DBPLC_DKV5000, &hConnect);
if (DB_NOERROR != err) {
//Error handling
return;
}
//Acquires the error No.
err = DBKvQueryErrorNumber(hConnect, &byError);
if (DB_NOERROR != err) {
//Error handling
return;
}
//byError The error No.
//Error clear
err = DBKvClearError(hConnect);
if (DB_NOERROR != err) {
//Error handling
return;
}
DBKvQueryErrorNumber
Acquires the error No. of KV-5500/5000/3000/1000/700.
● Syntax
ret = DBKvQueryErrorNumber(hConnect, lpbyErrNum)
● Explanation 5
Acquires the error No. of KV-5500/5000/3000/1000/700.
DLL Function
● Related Item
"DBKvClearError"(5-56 page)
● Usage Example
See the usage example in "DBKvClearError"(5-56 page).
DBKvReadComment
Reads a device comment.
● Syntax
ret = DBKvReadComment (hConnect, byDevKind, dwDevNo, lpszComment);
● Explanation
Reads a device comment.
● Usage Example
DBHCONNECT hConnect;
DBERROR err;
DBDevInfo DevInfo;
_TCHAR szComment[DB_COMMENT_MAX];
// Starts communication
err= DBConnect("USB", DBPLC_DKV5000, &hConnect);
if (DB_NOERROR != err) {
// Error handling
return;
}
//Reads the comment of DM0
err = DBKvReadComment(hConnect, DKV5000_DM, 0, szComment);
if (DB_NOERROR != err) {
// Error handling
return;
}
//szComment The read comment of DM0
DBConvStrToComInfo
Converts a communication destination character string to a communication setting information structure.
● Syntax
ret = DBConvStrToComInfo(lpszComType, pComInfo)
DLL Function
Converts a communication destination character string to a communication setting information
structure. ComInfo.ParamRS232C.nStation is a reservation.
● Related Item
"DBConvComInfoToStr"(5-60 page)
● Usage Example
DBERROR err;
DBComInfo ComInfo;
//Converts a communication destination character string to a communication setting information structure
err = DBConvStrToComInfo("USB", &ComInfo);
if (DB_NOERROR != err) {
//Error handling
return;
}
//In USB
//ComInfo.Type = DBCOMTYPE_USB
//In RS232C
// err = DBConvStrToComInfo("COM1:9600", &ComInfo);
//ComInfo.Type = DBCOMTYPE_RS232C
//ComInfo.ParamRS232C.byComNo = (Port)
//ComInfo.ParamRS232C.BaudRate = (Baudrate)
//In Ethernet
//err = DBConvStrToComInfo("192.168.0.10:8500", &ComInfo);
//ComInfo.Type =DBCOMTYPE_TCP
//ComInfo.ParamTCP.szAddr = (Adress)
//ComInfo.ParamTCP.wPortNo = (Port No.)
//In Bluetooth
//err = DBConvStrToComInfo("40,2,0,KV-5500 ,00:03:7A:4D:C0:43,555ce34b", &ComInfo);
//ComInfo.Type = DBCOMTYPE_BLUETOOTH
//ComInfo.ParamBLUETOOTH.flgManual = (Selecting automatic/manual connection start)
//ComInfo.ParamBLUETOOTH.iComPort = (Virtual port)
//ComInfo.ParamBLUETOOTH.iStackType = (Protocol stack type)
//ComInfo.ParamBLUETOOTH.szBDAddress = (Address)
//ComInfo.ParamBLUETOOTH.szDeviceName = (Distinguish name)
//ComInfo.ParamBLUETOOTH.szPassKey = (Passkey)
DBConvComInfoToStr
Converts a communication setting information structure to a communication destination character
string.
● Syntax
ret = DBConvComInfoToStr(pComInfo, lpszComType)
Return value
DB_NOERROR: Normal termination
ret DBERROR
Other than above: Error
See "Error Message Lists"(A-10 page).
Communication destination character string specified in
pComInfo DBComInfo*
DBConnect()
Pointer to a communication setting information structure
5 lpszComType
(DBComInfo)
When terminated normally, a communication destination LPCSTR
character sting is set in a communication setting information
DLL Function
structure.
● Explanation
Converts a communication setting information structure to a communication destination character
string.
In RS232C, always specify pComInfo->ParamRS232C.nStation = -1 (Specification of a station No. is a
reservation).
● Related Item
"DBConvStrToComInfo"(5-59 page)
● Usage Example
DBERROR err;
DBComInfo ComInfo;
CHAR szComType[257];
//Converts a communication setting information structure to a communication destination character string
ComInfo.Type = DBCOMTYPE_TCP;
strcpy_s( ComInfo.ParamTCP.szAddr, DB_ADDR_MAX, "192.168.0.10" );
ComInfo.ParamTCP.wPortNo = 8500;
err = DBConvComInfoToStr(&ComInfo, szComType);
if (DB_NOERROR != err) {
//Error handling
return;
}
// szComType "192.168.0.10:8500"
Appendices
Device list, error message lists etc. are provided.
To connect KV series PLC with a PC via USB, it is necessary to install USB driver on the PC. How to
install USB driver is explained below.
In Windows 7/Vista, USB driver is installed automatically when KV COM+ Library is installed.
"1-3 Software Installation"(1-5 page)
Install on Windows XP
Appendices
Only to connect for the first time, the USB driver for KV series PLC needs to be installed.
Because the second and later connection are recognized automatically, no more USB driver installation
is necessary.
Here is the step to install the driver for KV series PLC on Windows XP for the first time. To install the
USB driver of KV COM+ Library, hardware detection must be performed.
1 Start Windows XP and log on as a user with an authority to change the system such as
Administrator.
3 Select "Install from a list or specific location (Advanced)" radio button, then click the "Next"
button.
4 Select "Search for the best driver in these locations" radio button and check "Include this
location" check box.
Appendices
5 Click "Reference" button to specify the location where KV COM+ Library is installed.
Point When installation is started, the following dialog box may be displayed. Click "Continue"
button to continue the installation.
DKV5000_ZF_B = 70, /* File register (consecutive number method)) (handled in bits)/Input range is 000000 to 13107115, the last two digits is 00 to 15 and the first six digits is 000000 to
131071 */
DKV5000_W_B = 47, /* Link register (handled in bits)/Input range is 00000 to 3FFFF (hexadecimal), the last one digit is 0 to F and the first four digits is 0000 to 3FFF */
DKV5000_VM_B = 53, /* Work memory (handled in bits)/Input range is 0000000 to 5999915, the last two digits is 00 to 15 and the first five digits is 00000 to 59999 */
DKV5000_DM = 18, /* Data memory/Input range is 00000 to 65534 */
DKV5000_EM = 31, /* Extended data memory/Input range is 00000 to 65534 */
DKV5000_FM = 32, /* File register/Input range is 00000 to 32767 */
DKV5000_ZF = 75, /* File register (consecutive number method))/Input range is 00000 to 131071 */
DKV5000_W = 50, /* Link register/Input range is 0000 to 3FFF (hexadecimal) */
A
DKV5000_RLY_W = 25, /* Relay (00000 to 99900)/Input range is 00000 to 99900 and the last two digits is 00 */
DKV5000_TM = 19, /* Temporary data memory/Input range is 000 to 511 */
DKV5000_TRM = 20, /* Trimmer/Input range is 0 to 7 */
DKV5000_TS = 21, /* Timer (setting value)/Input range is 0000 to 3999 */
DKV5000_TC = 22, /* Timer (current value)/Input range is 0000 to 3999 */
DKV5000_CS = 23, /* Counter (setting value)/Input range is 0000 to 3999 */
Device List
/*KV-5000 (XYM) */
DKV5000XYM_RLY_B = 0, /* Relay/Input range is 00000 to 99915, the last two digits is 00 to 15 and the first three digits is 000 to 999 */
DKV5000XYM_X = 36, /* Input relay/Input range is 0000 to 999F, the last one digit is 0 to F and the first three digits is 000 to 999 */
DKV5000XYM_Y = 37, /* Output relay/Input range is 0000 to 999F, the last one digit is 0 to F and the first three digits is 000 to 999 */
DKV5000XYM_CR = 10, /* Control relay/Input range is 0000 to 3915, the last two digits is 0 to 15 and the first two digits is 00 to 39 */
DKV5000XYM_T = 7, /* Timer (Contact)/Input range is 0000 to 3999 */
DKV5000XYM_C = 8, /* Counter (Contact)/Input range is 0000 to 3999 */
DKV5000XYM_CTC = 9, /* CTC (Contact)/Input range is 0 to 3 */
DKV5000XYM_M = 12, /* Internal auxiliary relay/Input range is 00000 to 15999 */
DKV5000XYM_L = 13, /* Latch relay/Input range is 00000 to 15999 */
DKV5000XYM_B = 45, /* Link relay/Input range is 0000 to 3FFF (hexadecimal), the last one digit is 0 to F and the first three digits is 000 to 3FF */
DKV5000XYM_VB = 46, /* Work relay/Input range is 0000 to 3FFF (hexadecimal) and the last one digit is 0 to F */
DKV5000XYM_D_B = 30, /* Data memory (handled in bits)/Input range is 0000000 to 6553415, the last two digits is 00 to 15 and the first five digits is 00000 to 65534 */
DKV5000XYM_E_B = 14, /* Extended data memory (handled in bits)/Input range is 0000000 to 6553415, the last two digits is 00 to 15 and the first five digits is 00000 to 65534 */
DKV5000XYM_F_B = 15, /* File register (handled in bits)/Input range is 0000000 to 3276715, the last two digits is 00 to 15 and the first five digits is 00000 to 32766 */
DKV5000XYM_ZF_B = 70, /* File register (consecutive number method) (handled in bits)/Input range is 000000 to 13107115, the last two digits is 00 to 15 and the first five digits is
00000 to 131071 */
DKV5000XYM_W_B = 47, /* Link register (handled in bits)/Input range is 00000 to 3FFFF (hexadecimal), the last one digit is 0 to F and the first four digits is 0000 to 3FFF */
DKV5000XYM_VM_B = 53, /* Work memory (handled in bits) */
DKV5000XYM_D = 18, /* Data memory/Input range is 00000 to 65534 */
DKV5000XYM_E = 31, /* Extended data memory/Input range is 00000 to 65534 */
DKV5000XYM_F = 32, /* File register/Input range is 00000 to 32767 */
DKV5000XYM_ZF = 75, /* File register (consecutive number method)/Input range is 000000 to 131071 */
DKV5000XYM_W = 50, /* Link register/Input range is 0000 to 3FFF (hexadecimal) */
DKV5000XYM_RLY_W = 25, /* Relay (00000 to 99900)/Input range is 00000 to 99900 and the last two digits is 00 */
DKV5000XYM_X_W = 38, /* Input relay (0000 to 9990)/Input range is 0000 to 9990 and the last one digit is 0 */
DKV5000XYM_Y_W = 39, /* Output relay (0000 to 9990)/Input range is 0000 to 9990 and the last one digit is 0 */
DKV5000XYM_TM = 19, /* Temporary data memory/Input range is 000 to 511 */
DKV5000XYM_TRM = 20, /* Trimmer/Input range is 0 to 7 */
DKV5000XYM_TS = 21, /* Timer (setting value)/Input range is 0000 to 3999 */
DKV5000XYM_TC = 22, /* Timer (current value)/Input range is 0000 to 3999 */
DKV5000XYM_CS = 23, /* Counter (setting value)/Input range is 0000 to 3999 */
DKV5000XYM_CC = 24, /* Counter (current value)/Input range is 0000 to 3999 */
DKV5000XYM_CTH = 16, /* High-speed counter (current value)/Input range is 0 to 1 */
DKV5000XYM_CTC_W = 17, /* CTC (setting value)/Input range is 0 to 3 */
DKV5000XYM_CM = 29, /* Control memory/Input range is 00000 to 5999 */
DKV5000XYM_CR_W = 100, /* Control relay/Input range is 0000 to 3900 and the last two digits is 00 */
DKV5000XYM_Z = 52, /* Index register/Input range is 1 to 12 */
DKV5000XYM_G = 76, /* Extension unit buffer memory/Input range is 0000000 to 4832767 and the first two digits is the unit No. */
DKV5000XYM_VM = 51, /* Work memory */
DKV5000XYM_M_W = 34, /* Internal auxiliary relay/Input range is 00000 to 15984 and only the values divisible by 16 can be set */
DKV5000XYM_L_W = 35, /* Latch relay/Input range is 00000 to 15984 and only the values divisible by 16 can be set */
DKV5000XYM_B_W = 48, /* Link relay/Input range is 0000 to 3FF0 and the last two digits is 0 */
DKV5000XYM_VB_W = 49, /* Work relay (word) */
} DBPlcDevice;
Appendices
DKV3000_TRM = 20, /* Trimmer/Input range is 0 to 7 */
DKV3000_TS = 21, /* Timer (setting value)/Input range is 0000 to 3999 */
DKV3000_TC = 22, /* Timer (current value)/Input range is 0000 to 3999 */
DKV3000_CS = 23, /* Counter (setting value)/Input range is 0000 to 3999 */
DKV3000_CC = 24, /* Counter (current value)/Input range is 0000 to 3999 */
DKV3000_CTH = 16, /* High-speed counter (current value)/Input range is 0 to 1 */
DKV3000_CTC_W = 17, /* CTC (setting value)/Input range is 0 to 3 */
DKV3000_CM = 29, /* Control memory/Input range is 00000 to 5999 */
DKV3000_CR_W = 100, /* Control relay/Input range is 0000 to 3900 and the last two digits is 00 */
DKV3000_Z = 52, /* Index register/Input range is 1 to 12 */
DKV3000_G = 76,
DKV3000_VM = 51,
/* Extension unit buffer memory/Input range is 0000000 to 4832767 and the first two digits is the unit No. */
/* Work memory */
DKV3000_MR_W = 34, /* Internal auxiliary relay/Input range is 00000 to 99900 and the last two digits is 00 */
A
DKV3000_LR_W = 35, /* Latch relay/Input range is 00000 to 99900 and the last two digits is 00 */
DKV3000_B_W = 48, /* Link relay/Input range is 0000 to 3FF0 and the last two digits is 0 */
Device List
DKV3000_VB_W = 49, /* Work relay (word) */
/*KV-3000(XYM) */
DKV3000XYM_RLY_B = 0, /* Relay/Input range is 00000 to 99915, the last two digits is 00 to 15 and the first three digits is 000 to 999 */
DKV3000XYM_X = 36, /* Input relay/Input range is 0000 to 999F, the last one digit is 0 to F and the first three digits is 000 to 999 */
DKV3000XYM_Y = 37, /* Output relay/Input range is 0000 to 999F, the last one digit is 0 to F and the first three digits is 000 to 999 */
DKV3000XYM_CR = 10, /* Control relay/Input range is 0000 to 3915, the last two digits is 0 to 15 and the first two digits is 00 to 39 */
DKV3000XYM_T = 7, /* Timer (Contact)/Input range is 0000 to 3999 */
DKV3000XYM_C = 8, /* Counter (Contact)/Input range is 0000 to 3999 */
DKV3000XYM_CTC = 9, /* CTC (Contact)/Input range is 0 to 3 */
DKV3000XYM_M = 12, /* Internal auxiliary relay/Input range is 00000 to 15999 */
DKV3000XYM_L = 13, /* Latch relay/Input range is 00000 to 15999 */
DKV3000XYM_B = 45, /* Link relay/Input range is 0000 to 3FFF (hexadecimal), the last one digit is 0 to F and the first three digits is 000 to 3FF */
DKV3000XYM_VB = 46, /* Work relay */
DKV3000XYM_D_B = 30, /* Data memory (handled in bits)/Input range is 0000000 to 6553415, the last two digits is 00 to 15 and the first five digits is 00000 to 65534 */
DKV3000XYM_E_B = 14, /* Extended data memory (handled in bits)/Input range is 0000000 to 6553415, the last two digits is 00 to 15 and the first five digits is 00000 to 65534 */
DKV3000XYM_F_B = 15, /* File register (handled in bits)/Input range is 0000000 to 3276715, the last two digits is 00 to 15 and the first five digits is 00000 to 32766 */
DKV3000XYM_ZF_B = 70, /* File register (consecutive number method) (handled in bits)/Input range is 000000 to 13107115, the last two digits is 00 to 15 and the first five digits is 00000
to 131071 */
DKV3000XYM_W_B = 47, /* Link register (handled in bits)/Input range is 00000 to 3FFFF (hexadecimal), the last one digit is 0 to F and the first four digits is 0000 to 3FFF */
DKV3000XYM_VM_B = 53, /* Work memory (handled in bits) */
DKV3000XYM_D = 18, /* Data memory/Input range is 00000 to 65534 */
DKV3000XYM_E = 31, /* Extended data memory/Input range is 00000 to 65534 */
DKV3000XYM_F = 32, /* File register/Input range is 00000 to 32767 */
DKV3000XYM_ZF = 75, /* File register (consecutive number method)/Input range is 000000 to 131071 */
DKV3000XYM_W = 50, /* Link register/Input range is 0000 to 3FFF (hexadecimal) */
DKV3000XYM_RLY_W = 25, /* Relay (00000 to 99900)/Input range is 00000 to 99900 and the last two digits is 00 */
DKV3000XYM_X_W = 38, /* Input relay (0000 to 9990)/Input range is 0000 to 9990 and the last one digit is 0 */
DKV3000XYM_Y_W = 39, /* Output relay (0000 to 9990)/Input range is 0000 to 9990 and the last one digit is 0 */
DKV3000XYM_TM = 19, /* Temporary data memory/Input range is 000 to 511 */
DKV3000XYM_TRM = 20, /* Trimmer/Input range is 0 to 7 */
DKV3000XYM_TS = 21, /* Timer (setting value)/Input range is 0000 to 3999 */
DKV3000XYM_TC = 22, /* Timer (current value)/Input range is 0000 to 3999 */
DKV3000XYM_CS = 23, /* Counter (setting value)/Input range is 0000 to 3999 */
DKV3000XYM_CC = 24, /* Counter (current value)/Input range is 0000 to 3999 */
DKV3000XYM_CTH = 16, /* High-speed counter (current value)/Input range is 0 to 1 */
DKV3000XYM_CTC_W = 17, /* CTC (setting value)/Input range is 0 to 3 */
DKV3000XYM_CM = 29, /* Control memory/Input range is 00000 to 5999 */
DKV3000XYM_CR_W = 100, /* Control relay/Input range is 0000 to 3900, the last two digits is 00 */
DKV3000XYM_Z = 52, /* Index register/Input range is 1 to 12 */
DKV3000XYM_G = 76, /* Extension unit buffer memory/Input range is 0000000 to 4832767 and the first two digits is the unit No. */
DKV3000XYM_VM = 51, /* Work memory */
DKV3000XYM_M_W = 34, /* Internal auxiliary relay/Input range is 00000 to 15984 and only the values divisible by 16 can be set */
DKV3000XYM_L_W = 35, /* Latch relay/Input range is 00000 to 15984 and only the values divisible by 16 can be set */
DKV3000XYM_B_W = 48, /* Link relay/Input range is 0000 to 3FF0 and the last two digits is 0 */
DKV3000XYM_VB_W = 49, /* Work relay (word) */
} DBPlcDevice;
A
DKV1000_MR_W= 34, /* Internal auxiliary relay/Input range is 00000 to 99900 and the last two digits is 00 */
DKV1000_LR_W = 35, /* Latch relay/Input range is 00000 to 99900 and the last two digits is 00 */
Device List
/*KV-1000(XYM) */
DKV1000XYM_RLY_B = 0, /* Relay/Input range is 00000 to 59915 and the last two digits is 0 to 15 */
DKV1000XYM_X = 36, /* Input relay/Input range is 0000 to 599F and the last one digit is 0 to F */
DKV1000XYM_Y = 37, /* Output relay/Input range is 0000 to 599F and the last one digit is 0 to F */
DKV1000XYM_CR = 10, /* Control relay/Input range is 0000 to 3915, the last two digits is 0 to 15 */
DKV1000XYM_T = 7, /* Timer (Contact)/Input range is 0000 to 3999 */
DKV1000XYM_C = 8, /* Counter (Contact)/Input range is 0000 to 3999 */
DKV1000XYM_CTC = 9, /* CTC (Contact)/Input range is 0 to 3 */
DKV1000XYM_M = 12, /* Internal auxiliary relay/Input range is 00000 to 15999 */
DKV1000XYM_L = 13, /* Latch relay/Input range is 00000 to 15999 */
DKV1000XYM_D_B = 30, /* Data memory (handled in bits)/Input range is 0000000 to 6553415, the last two digits is 00 to 15 and the first five digits
is 00000 to 65534 */
DKV1000XYM_E_B = 14, /* Extended data memory (handled in bits)/Input range is 0000000 to 6553415, the last two digits is 00 to 15 and the first
five digits is 00000 to 65534 */
DKV1000XYM_F_B = 15, /* Extended data memory (handled in bits)/Input range is 0000000 to 3276615, the last two digits is 00 to 15 and the first
five digits is 00000 to 32766 */
DKV1000XYM_D = 18, /* Data memory/Input range is 00000 to 65534 */
DKV1000XYM_E = 31, /* Extended data memory/Input range is 00000 to 65534 */
DKV1000XYM_F = 32, /* Extended data memory/Input range is 00000 to 32766 */
DKV1000XYM_RLY_W = 25, /* Relay (00000 to 59900)/Input range is 00000 to 59900 and the last two digits is 00 */
DKV1000XYM_X_W = 38, /* Input relay (0000 to 5990)/Input range is 0000 to 5990 and the last one digit is 0 */
DKV1000XYM_Y_W = 39, /* Output relay (0000 to 5990)/Input range is 0000 to 5990 and the last one digit is 0 */
DKV1000XYM_TM = 19, /* Temporary data memory/Input range is 000 to 511 */
DKV1000XYM_TRM = 20, /* Trimmer/Input range is 0 to 7 */
DKV1000XYM_TS = 21, /* Timer (setting value)/Input range is 0000 to 3999 */
DKV1000XYM_TC = 22, /* Timer (current value)/Input range is 0000 to 3999 */
DKV1000XYM_CS = 23, /* Counter (setting value)/Input range is 0000 to 3999 */
DKV1000XYM_CC = 24, /* Counter (current value)/Input range is 0000 to 3999 */
DKV1000XYM_CTH = 16, /* High-speed counter (current value)/Input range is 0 to 1 */
DKV1000XYM_CTC_W = 17, /* CTC (setting value)/Input range is 0 to 3 */
DKV1000XYM_CM = 29, /* Control memory/Input range is 00000 to 11998 */
DKV1000XYM_CR_W = 100, /* Control relay/Input range is 0000 to 3900 and the last two digits is 00 */
DKV1000XYM_Z = 33, /* Index register/Input range is 1 to 12 */
DKV1000XYM_M_W = 34, /* Internal auxiliary relay/Input range is 00000 to 15984 and only the values divisible by 16 can be set */
DKV1000XYM_L_W = 35, /* Latch relay/Input range is 00000 to 15984 and only the values divisible by 16 can be set */
} DBPlcDevice;
Appendices
A
Device List
In some cases, Word device can be selected or specified as bit device in property page, property, or
method.
For example, when DM is selected, the device No. is displayed as follows.
A
Bit Specification of Word Device
Appendices
Properties of each device after model change
Depending on the types of devices before model change, conversion may fail at model change. The
following shows the properties of each device after model change is completed.
Model Change
• ValueRead . . . . . . . . . . . . .0
• ValueWrite . . . . . . . . . . . . .0
* When Nos. do not exist in the model after change result in conversion failure. They may be converted as a
character string.
Example) "0000" -> "00000"
ActiveX
Each object
SetMode, GetErrorNumber
and ClearError are
Start communication
0x80040004 No connection is made executed without
(Connect).
communication startup
(Connect).
Please set up connection Communication setting is Perform communication
0x80040005
destination (Peer attribute) not completed. setting.
The specified number of
Incorrect number of Check the number of
0x80040006 devices created is not
devices created devices created.
correct.
No CommManager was Target (CommManager) is
0x80040007 Specify CommManager.
assigned. not specified.
No device is registered in Register a device in
0x80040008 No device is held
DBDevices. DBDevices.
ReadAll and WriteAll
Communication stopped. Start communication
0x80040009 cannot be executed while
Access denied. (Connect).
communication is stopped.
The specified device No. is Check the specified device
0x8004000B Incorrect device No.
incorrect. No.
The specified value is
0x8004000C Value out of range Check the specified value.
incorrect.
Writing is done to a timer,
Check whether the
The device was not counter, high-speed
0x8004000D specified device is use in
registered counter or CTC which is
Ladder.
not used in Ladder.
Write protection is enabled
(MEMSW). The setting
0x8004000E Writing prohibited values of timer, counter Cancel write protection.
and CTC cannot be
changed.
CTC (contact) cannot be
CTC device contact cannot CTC (contact) is attempted
0x8004000F turned to ON by
be set. to be turned to ON.
communication command.
Appendices
exists (Name) is duplicate.
duplication.
The name of the trigger is Enter the name of the
0x80040015 No name was entered
not entered. trigger (Name).
A negative value is
0x80040017
Specify 0 or a greater
value for the cycle
specified for the period
Set 0 or a greater value for
the period (IntervalMSec).
A
(IntervalMSec).
A 0x80040BF4
Failed to initialize specified The value specified by
Specify a value which is
listed in the connection
PLC ID PLC properties is incorrect.
model list.
Error Message Lists
During communication
Appendices
Cut off from the connected connected devices. In an
0x800403F7 Cut off by counterparty environment with a lot of
device.
noise, take measures against
noise.
Shutdown the program and
0x800403F8 Initialization failed Initialization of DLL failed.
restart the PC. If the problem
is not solved, reinstallation will
A
be necessary.
Other
DLL
Appendices
necessary.
Check the communication route
Communication port cannot be and communication settings of
DB_ERR_OPEN_PORT 4
opened properly. PC. If the port has already been
opened, close the port once.
Because communication is not
A
DB_ERR_INVALID_HANDLE 5 Start communication.
started, communication fails.
DB_ERR_ALIAS_OPEN 33 Reserved -
DB_ERR_ALIAS_INVALID_I
34 Reserved -
NFO
DB_ERR_ALIAS_READ 35 Reserved -
DB_ERR_ALIAS_NOT_EXIS
36 Reserved -
T
DB_ERR_ALIAS_MAX 37 Reserved -
DB_ERR_CTH_HAS_NOPR
38 Reserved -
ESET
DB_ERR_CTH_HAS_NOCO
39 Reserved -
NTACT
DB_ERR_CTC_HAS_NOCU
40 Reserved -
RRENT
DB_ERR_CTC_SET_CONT CTC (contact) is attempted to
41
ACT be turned to ON.
Conversion of communication
destination character sting <-> CTC (contact) cannot be turned
communication setting to ON by communication
DB_ERR_INVALID_BAUDR command.
42 information structure.
ATE
Communication speed
specification of RS-232C is
incorrect. Check the argument.
DB_ERR_INVALID_STATIO
43 Reserved -
N
DB_ERR_INVALID_PLCID 44 Reserved -
DB_ERR_SERIALDLL DLL for serial connection Shutdown the program and
45
_VERSION cannot be loaded. restart the PC. When the problem
DB_ERR_ETHERNETDLL DLL for Ethernet connection is not solved, reinstallation is
46 necessary.
_VERSION cannot be loaded.
Appendices
Conversion of communication
DB_ERR_INVALID destination character sting <->
54 communication setting Check the argument.
_COMPORT information structure. Port No. of
RS-232C is incorrect.
DB_ERR_ALIAS
_ALREADY_EXIST
55 Reserved - A
DB_ERR_READ The records may have increased
DB_ERR_OVER
-8 Reserved -
_MAXPATHNAME
Error Message Lists
Appendices
DB_ERR_IP_SEND -26 Sending failed. Check the communication route
and communication settings of
both PC and connected devices.
Cut off from the connected In an environment with a lot of
DB_ERR_IP_CLOSE -27
device. noise, take measures against
noise. A
Shutdown the program and
About installation
It can be installed on a PC with KV COM+ for Excel (KV-DH1E).
• When an application created by a later version is used in this version, newly added functions cannot
work. If all the functions used in the application are usable in this version, the application can be
used.
A
About Compatibility
DBRTLoggingDataCollection
A Object........................................ 4-16, 4-160
About Compatibility .............................. A-20 DBRTLoggingDataValue
About DLL Function ................................5-1 Object........................................ 4-18, 4-166
Access Functions to a Memory Card ....5-43 DBRTLoggingManager Control.............3-31
ActiveX ................................................. A-10 DBRTLoggingManager
ActiveX Control ...................................4-168 Object........................................ 4-13, 4-130
Addition of Trigger Setting.......................3-9 DBTrigger Object .......................... 4-8, 4-93
Alarm.....................................................5-41 DBTriggerManager Control .....................3-8
Appendices ............................................ A-1 DBTriggerManager Object ............ 4-7, 4-84
DBTriggerParamCustom
Object........................................ 4-11, 4-119
B DBTriggerParamDevice
Appendices
Object........................................ 4-12, 4-121
Basic .................................. 3-43, 3-45, 3-50 DBTriggerParamInterval
Before Installation of Object.......................................... 4-9, 4-105
KV COM+ Library....................................1-5 DBTriggerParamLogical
Before Use ..............................................1-1 Object........................................ 4-10, 4-116
Bit Specification of Word Device ............ A-8 DBTriggerParamTimeAt
Object.......................................... 4-9, 4-106
Index
C DBTriggerParamTimeSpan
Object........................................ 4-10, 4-114
Change of Trigger Setting .....................3-21 DBTriggers Object......................... 4-7, 4-87
Communication manager DBValueConverterEx Object...............4-187
Object.......................................... 3-23, 3-32 Deletion of Trigger Setting ....................3-21
Communication Setting ...........................3-3 Details of Properties/Methods/
Configuration and Function .....................2-2 Events ...................................................4-19
Configuration of KV COM+ Library .........2-2 Device ......................................... 3-24, 3-33
Connection Control .................................5-9 Device List.............................................. A-4
Constant, Type and Structure Device Specification..............................3-15
Definition .................................................5-3 Display ........................................ 3-46, 3-51
DLL....................................................... A-15
DLL Function...........................................5-3
D
Data Conversion Function...................4-187 E
DBBarMeter Control..............................3-44
DBBarMeter Object .............................4-169 Error Message Lists ............................. A-10
DBCommandButton Control..................3-42
DBCommandButton Object.................4-168
DBCommManager Control......................3-2
H
DBCommManager Object ............. 4-2, 4-19 How to Set the Path ................................5-2
DBDevice Object........................... 4-6, 4-73 How to Use KV COM+ Library ................2-5
DBDeviceManager Control ...................3-22
DBDeviceManager Object............. 4-4, 4-50
DBDevices Object ......................... 4-5, 4-63 I
DBFanMeter Control .............................3-49
DBFanMeter Object ............................4-170 Include File..............................................5-2
DBMemcardAccess Object ........... 4-3, 4-39 Initialization of DataBuilder.dll .................5-8
DBRTLoggingData Object......... 4-17, 4-162 Install on Windows 7/Vista ..................... A-2
Install on Windows XP ........................... A-2
O Use on a Worksheet..............................2-41
Operation Environment ...........................1-3 Use on User Form.................................2-43
Operation Environment and
System Configuration..............................1-3
Operation Mode/State Control ..............5-13
Other Control.........................................5-54
Index
Overview .................................................1-2
P
PLC Trigger...........................................3-38
Program Creation on Visual Studio.........2-6
Program Example -
Asynchronous Monitor ..........................2-20
Program Example - Device Trigger.......2-28
Program Example -
Switching Operation Mode of
KV Series PLC ........................................2-8
Program Example -
Synchronous Monitor ............................2-14
Programming Technique.........................2-1
Property Method Event ...........................4-1
Property Page Setting Method ................3-1
R
Read/Write to a Device .........................5-15
S
Safety Precautions ................................1-10
Scale ........................................... 3-48, 3-53
Software Installation................................1-5
System Configuration..............................1-4
MEMO
Appendices
Index
E1110-2