DIO Provider. User s Guide

Similar documents
EWHA provider. User's guide

SMC Provider. User s Guide

RobCom provider for Matrox-based vision systems. User's guide

DENSO b-cap Communication Specifications for RC8. Version 1.0.2

ORiN2. Programming guide. Version

RC8 Provider. For DENSO Robot RC8. User s Guide (C# Code Reference) Version Version Date Content st Edition

Modbus. X provider. User s guide

BAUMER AG VeriSens Provider. User s guide

ORiN2.1 Specifications. Part 2: CAO. Version 2.1.8

DENSO RAC communication specifications. Version

Selected Help Documents from the Data Acquisition Toolbox

11[ 文書のタイトルを入力 ] 1 OMRON. Vision Sensor. MODEL: FZ Series

11[文書のタイトルを入力] Panasonic Industrial Devices SUNX. Vision Sensor. MODEL: PV Series

Asyril Asycube Provider. User s guide

ActiveX Automation and Controls

Reference manual. Acapela Group la Lauragaise, BP 758, Labège Cedex, France. T. : +33 (0) F. : +33 (0)

Tektronix Logic Analyzer Family Pattern Generator Programmatic Interface (PPI) Manual

DIO-1616TB-PE. Features. Packing List. PCI Express-compliant High-Speed TTL level Opto-isolated Digital I/O DIO-1616TB-PE 1. Ver.1.

Introduction to I/O. 1-Slide Overview to File Management

Communication at the network layer is host-to-host Length of address. Total number of addresses used by the protocol. IPv4 & IPv6

Register Map for the PCI-DAS-TC

DeploymentManager Ver6.1

The name of this type library is LabelManager2 with the TK Labeling Interface reference.

BGP Support for Dual AS Configuration for Network AS Migrations

MotoOPCServer Part Number: CD Revision: 0

KHD2-MTI-AB4. User Manual 2001

SavoySecsI ActiveX Control User Guide

ECMA-405. Data Interchange on Parallel Write/Read Disk Format for 5 Optical Disks. 1 st Edition / December Reference number ECMA-123:2009

STU SDK Redistribution

DeploymentManager Ver6.6

27 Designing Your Own Program

RTE for WIN32. Installation Manual (Rev.7.0) Midas lab

DeploymentManager Ver6.3

Product Change Notice

HDS Series I2C Application Notes

USB-L111. USB-L111 User Manual TPM. Version: V M05. To properly use the product, read this manual thoroughly is necessary.

OpenCV provider. User's guide

WLDV32. API for LONWORKS Access. Gesytec GmbH Pascalstr Aachen, Germany

for use of fraction eg or P1 for complete process

ISA PCI Peripherals Connect Interface ISA. Enhanced Parallel Port EPP

800xA for DCI. Configuration. Power and productivity for a better world TM. System Version 5.1

FGCP/S5. Introduction Guide. Ver. 2.3 FUJITSU LIMITED

Data Logger Software. User s Guide

Table of Contents 1 Static Routing Configuration 1-1

CS 134. Operating Systems. April 8, 2013 Lecture 20. Input/Output. Instructor: Neil Rhodes. Monday, April 7, 14

Parsing Instrument Data in Visual Basic

Input Components C H A P T E R 1 4. See also: System FAQs for WHQL Testing on

Integration of Spectrum Controls Quantum Modules in Unity

PCI-L122-DSF. PCI-L122-DSF User Manual TPM. Version: V J28. To properly use the product, read this manual thoroughly is necessary.

DIO-1616B-PE. Features. Packing List. PCI Express-compliant Opto-isolated Digital I/O Board with On-board power supply DIO-1616B-PE 1. Ver.1.

IADS UDP Custom Derived Function. February 2014 Version SYMVIONICS Document SSD-IADS SYMVIONICS, Inc. All rights reserved.

PG-FP6 Flash Memory Programmer for Renesas MCUs with Flash Memory

ASIU Analyzer Server Interface Unit Software

DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif Fax Est

RX Family APPLICATION NOTE. I 2 C Bus Interface (RIIC) Module Using Firmware Integration Technology. Introduction. Target Device.

Softstarters. Type PSTX Fieldbus communication, Anybus EtherNet/IP

USB TO SERIAL CONVERTER

Tech-Talk Using the PATROL Agent COM Server August 1999 Authored By: Eric Anderson

Brunswic. Welcome. Network video Surveillance. Biometric Identification (Face Detection) Biometric Identification (Finger Print)

1 Installation of Multifunction Analyzer Operation environment The outline of install procedure

Table of Contents 1 Static Routing Configuration 1-1

CALIFORNIA SOFTWARE LABS

LAP-B(PCI/C-PCI) GPF LAP-B Communications Driver Software for for Windows. Help for Windows.

KK_FX80E.DLL / libkk_fx80e.so. K+K Library for Windows and Linux PCs. Manual

CODE TIME TECHNOLOGIES. mabassi RTOS. BSP Document. ARMv7 Caches (GCC)

FlexNetViewer HD Management Utility

CAO 152C. Intermediate Windows Week 5

Air-conditioner Control System Centralized Controller AG-150A AG-150A-A GB-50ADA-J

DataViews Custom Data Reference Manual. DataViews for Windows Version 2.2

Overview of Computer Organization. Chapter 1 S. Dandamudi

DAQBench. 32-bit ActiveX controls for Measurement and Automation. User Interface Controls Reference

WDMDRV. WDM Drivers for PCI Data Acquisition Cards. User Manual

Cisco Unified CME Telephony Service Provider 2.1 Setup Guide

27 April Select tvg as DIM input data. 0 No 1PPS selected 1 ALTA1PPS 2 ALTB1PPS 3 VSI1PPS. 0 VSI clock 1 Clock generator

Overview of Computer Organization. Outline

AN Reduce CPU overhead with Intelligence Interrupt Arbitration (I2A) feature. Document information

IPv6 Rapid Deployment: Provide IPv6 Access to Customers over an IPv4-Only Network

Register Map for the PCI-DIO24, PCI-DIO24H, PCI-DIO24/S & PCI-DIO24/LP

Hitachi Compute Blade HVM Navigator User s Guide - LPAR Configuration

CSE 120. Overview. July 27, Day 8 Input/Output. Instructor: Neil Rhodes. Hardware. Hardware. Hardware

Firmware Revision Information

Technical Note #70. GE PMCS App Note 70 Page 1 of 9. Broadcast Time Syncronization Utility

AN OPEN-SOURCE VHDL IP LIBRARY WITH PLUG&PLAY CONFIGURATION

System Monitoring Library Windows driver software for Classembly Devices

Appendix E - Document Attribute Dictionary

Chapter 19 Network Layer: Logical Addressing 19.1

1. Overview Ethernet FIT Module Outline of the API API Information... 5

YubiKey Personalization Tool. User's Guide

1 1 Introduction Basics New Functions in DPV Example: Evaluation of Interrupt Information from OB 40 with SFB

Laboratory Exercise 4


CARDBUS INTERFACE USER MANUAL

CSCE 548 Building Secure Software Dirty COW Race Condition Attack

TC-net OPC Server Instruction Manual 6F8C1368

PI OPC DA Server User Guide

Equitrac Integrated for Konica Minolta. Setup Guide Equitrac Corporation

Upgrade to Webtrends Analytics 8.5: Best Practices

PusleIR Multitouch Screen Software SDK Specification. Revision 4.0

DYNAMIC ENGINEERING 435 Park Dr., Ben Lomond, Calif Fax Est

MPLAB Harmony Compatibility Worksheet

Transcription:

- 1 - DIO Provider CONTEC DIO Board Version 1.1.3 User s Guide July 12, 2013 [Remarks] This provider uses CONTEC API-DIO (WDM) for ORiN2SDK2.0.14 or later. Use the DIO98 provider for the earlier versions of API-DIO (98PC).

- 2 - [Revision history] Version Date Content 1.0.0.0 2006-02-23 First edition. 1.0.1.0 2008-02-06 Manual was corrected. 1.0.2.0 2008-11-10 Content was changed for WDM. 1.0.2.1 2010-02-10 Error codes were added. 1.1.0.0 2010-09-13 USB devices were supported. LEN=16,32 was added to Variable: IN, OUT, IO options. 1.1.0.1 2011-03-11 Information related to provider registration tool was added. 1.1.1.0 2012-05-25 DeviceName option was added. 1.1.2.0 2012-05-28 Meta mode was added. 1.1.2 2012-07-17 Version rule of the document was changed. 1.1.3 2013-07-12 Size option was added. Len option was corrected. [Hardware] Model Version Notes

- 3 - Contents 1. Introduction... 4 2. Outline of Provider... 5 2.1. Outline... 5 2.2. Methods and properties... 6 2.2.1. CaoWorkspace::AddController method... 6 2.2.2. CaoController::AddVariable method... 6 2.2.3. CaoController::Execute method... 7 2.2.4. CaoVariable::get_Attribute property... 8 2.2.5. CaoVariable::get_Value property... 8 2.2.6. CaoVariable::put_Value property... 8 2.3. Variable list... 9 2.3.1. Controller class... 9 2.4. Error code... 9 2.5. CAO-DIO API reference table... 10 3. Sample Program... 11

- 4-1. Introduction This document is a user s guide of the DIO provider which is used to access CONTEC DIO board. Refer to CONTEC API-DIO (WDM) Help for details. NOTE: The DIO device driver of the DIO board needs to be installed to use the DIO provider. Install the driver from API-PAC (W32) for PCI board or from API-USBP (WDM) for USB. After installing it, register the provider in the registry with reference to Table 2-1.

- 5-2. Outline of Provider 2.1. Outline The DIO provider executes DIO (WDM) API corresponding to CAO API at the time the CAO API is executed. Refer to Table 2-7 for CAO API and corresponding DIO (WDM) API. The following shows the outline of the provider. Table 2-1 DIO provider File name ProgID Registry registration 1 Remove registry registration CaoProvDIO.dll CaoProv.CONTEC.DIO regsvr32 CaoProvDIO.dll regsvr32 /u CaoProvDIO.dll 1 Provider registration can be executed by regsvr32.exe or RegCOM.exe ([Start] -> [ORiN2] -> [Tools]). The DIO board driver must be installed to register the DIO provider.

- 6-2.2. Methods and properties 2.2.1. CaoWorkspace::AddController method The DIO provider establishes connection to the DIO board when the Controller object is created. The device name is specified with controller name when connection is established. AddController ( <Controller name>, // Device name. " CaoProv.CONTEC.DIO", // Provider name. Fixed. <Machine name>, // Provider execution machine name. <Option> // Option character string. ) Table 2-2 Option character string of CaoWorkspace::AddController Option Meaning DeviceName=[<Device name>] Device name of the board to be connected *1 Default: (no value specified) For the case of (no value specified), the character string specified for controller name will be used as device name. 2.2.2. CaoController::AddVariable method This method creates a variable object used to access the DIO board. AddVariable ( <Variable name><logical number>, <Option> ) // Variable name. // Option character string. Attach a decimal logical number to a variable in 2.3.1, and use it as a variable name. If a variable other than those in 2.3.1 is specified, or a logical number is not specified with a decimal, this method will return an error. The meaning of logical number depends on the value of Len option in Table 2-3. Len=1: Logical bit Len=8: Logical port Refer to CONTEC API-DIO Help for the input value range. This method does not generate an error even if a specified value is out of the input range. An error occurs when get_value or put_value is executed. Following is a list of option string items.

- 7 - Table 2-3 Option character string of CaoController::AddVariable Option Meaning Len [=<1 8 16 32>] Specify data length (bit). (Default: 1) Size[=<Data size>] Specify data size (Default :1) Variable objects created will read/write the size of data specified by this option. (Example 1) If IO8, Len=1, and Size=16 are specified, bit 8 through 23 will be read or written at one time. (Example 2) If IO2, Len=8 and Size=4 are specified, byte 2 through byte 6 will be read or written at one time. Filter=<Setting value> Specify digital filter setting value. (Default: No digital filter) Refer to CONTEC API-DIO Help for the effective range. 2.2.3. CaoController::Execute method Configures interrupt event setting. This method specifies SetInterrupt for the first argument, and parameters in an array for the second argument. See below for details. Table 2-4 Parameters for ControllerExecute Element number Data type Explanation 1 VT_I2 Input bit number This bit number must be an available bit for interrupt on the hardware. 2 VT_I2 Interrupt logic 0: Mask interrupt 1: Input value 0 -> 1 2: Input value 1 -> 0 Execute ( "SetInterrupt" <Parameter> ) // Command name. Fixed. // Parameter (array [1]: Input logical bit number, [2]: Interrupt logic) Some USB devices do not support the interrupt method. Refer to API-DIO (WDM) Help for details and check

- 8 - if the interrupt function: DioNotifyInterrupt is available. 2.2.4. CaoVariable::get_Attribute property Acquires Read/Write attribute information for variables. Table 2-5 Attribute and corresponding value Attribute Value Read 1 Write 2 2.2.5. CaoVariable::get_Value property Acquires information corresponding to a variable. For the implementation status and acquired data of each variable, refer to 2.3.1. 2.2.6. CaoVariable::put_Value property Configures information corresponding to a variable. For the implementation status and setting data of each variable, refer to 2.3.1.

- 9-2.3. Variable list 2.3.1. Controller class Table 2-6 Controller class user variable list Variable Data type name IN? VT_UI1 * 1 VT_UI1 VT_ARRAY *2 OUT? VT_UI1 *1 VT_UI1 VT_ARRAY *2 IO? VT_UI1 *1 VT_UI1 VT_ARRAY *2 Explanation Acquire data. Specify the logical port number after the variable name. Example: IN20 Set data. Specify the logical port number after the variable name. Example: OUT20 Read-back is performed for CaoVariable::get_Value. Acquire or set data. Specify the logical port number after the variable name. Example: IO20 This performs the IN variable operation for CaoVariable::get_Value property, and the OUT variable operation for CaoVariable::put_Value property. Attribute get put * 1: For the case 1 or 8 is specified for the Len option. * 2: This applies when the Size option specifies other than 1. 2.4. Error code The DIO provider returns an error number specified by DIO API after masking it with 0x8010000 as a unique error code. Example: DIO API error 0x0003 -> CAO API error 0x80100003 Refer to CONTEC API-DIO (WDM) Help for details of DIO API. For common errors of ORiN2, refer to the error code section in ORiN2 Programming Guide.

- 10-2.5. CAO-DIO API reference table Table 2-7 CAO-DIO API reference table CAO API DIO API Remarks CaoWorkspace::AddController() DioOpen() CaoWorkspaces::Remove() DioClose() CaoVariable::get_Value() DioInpBit() For IN or IO variable Len = 1,Size = 1 DioInpByte() For IN or IO variable Len = 8,Size = 1 DioInpMultiBit() For IN or IO variable Len = 1,Size > 1 DioInpMultiByte() For IN or IO variable Len = 8,Size > 1 DioEchoBackBit() For OUT variable Len = 1,Size = 1 DioEchoBackByte() For OUT variable Len = 8,Size = 1 DioEchoBackMultiBit() For OUT variable Len = 1,Size > 1 DioEchoBackMultiByte() For OUT variable Len = 8,Size > 1 CaoVariable::put_Value() DioOutBit() For OUT or IO variable Len = 1,Size = 1 DioOutByte() For OUT or IO variable Len = 8,Size = 1 DioOutMultiBit() For OUT or IO variable Len = 1,Size > 1 DioOutMultiByte() For OUT or IO variable Len = 8,Size > 1 Refer to CONTEC API-DIO Help for details of DIO API.

- 11-3. Sample Program The following sample program shows the code to access the dual port memory with the variable DPM. List 3-1 Sample.frm Private caoeng As CaoEngine Private caoctrl As CaoController Private caovar As CaoVariable Private Sub Form_Load() Set caoeng = New CaoEngine Set caoctrl = caoeng.workspaces(0).addcontroller("diotest", " CaoProv.CONTEC.DIO ", "","") Set caovar = caoctrl.addvariable("io20", "") End Sub Private Sub CmdPut_Click() Dim data As Byte data = 1 End Sub caovar.value = data Private Sub cmdget_click() End Sub Dim Ret As Variant Text1.Text = caovar.value