Omega EngineeringメーカーOME-A826PGの使用説明書/サービス説明書
ページ先へ移動 of 60
www .omega.com e-mail: info@omega.com U ser ’ s Guide OME-A826PG ISA-Bus Multi-Functional Board Software Manual Shop online at.
Servicing Nor th America: USA: One Omega Drive, P.O. Box 4047 ISO 9001 Certified Stamford CT 06907-0047 TEL: (203) 359-1660 FAX: (203) 359-7700 e-mail: info@omega.com Canada: 976 Bergar Laval (Quebec) H7L 5A1, Canada TEL: (514) 856-6928 FAX: (514) 856-6886 e-mail: info@omega.
OME-A-826P G Software M anual [Win 9 5/98/NT] OME-A-826PG Software Manual [ For Windows 95/98/NT ] Date: Aug-15-2000 Ver: 2.2 Page 1.
OME-A-826P G Software M anual [Win 9 5/98/NT] Table of Contents 1 Introduction ................................................................................................................. .4 1.1 References ........................................
OME-A-826P G Software M anual [Win 9 5/98/NT] 3.4.4 A826_Check_Address .............................................................................. 43 3.5 AD, Interrupt functions.......................................................................
OME-A-826P G Software M anual [Win 9 5/98/NT] 1 Introduction The OME-A-826PG is a multifunction, 16 bi ts resolution A/D, D/A and digital I/O card. The feature of the OME-A-826PG are given as below: 1. A/D=16 bits, 16 channels(single- ended) or 8 channels(differential ) 2.
OME-A-826P G Software M anual [Win 9 5/98/NT] 1.1 References Please refer to the following user manuals: • SoftInst.pdf: Describes how to install th e software package under Windows 95/98/NT. • CallDll.pdf: Describes how to call the DLL functions with VC ++5, VB5, Delphi3 and B orland C++ Builder 3.
OME-A-826P G Software M anual [Win 9 5/98/NT] 1.2 Range Configuration Code The AD converter of the OME-A-826PG is 16 bits under all configuration code. If the analog input range is configured to ± 5V range, the resolution of one bit is equal to 2.44 mV.
OME-A-826P G Software M anual [Win 9 5/98/NT] 2 Declaration Files For the Windows 95/98 user: |--Driver | |--A826.DLL <-- Dynamic Linking Library | |--A826.Vxd <-- Device driver for A826PG | |--BCB3 | | |--A826.h <-- Header file | | |--A826.Lib <-- Import Library for BCB | | +--A826u.
OME-A-826P G Software M anual [Win 9 5/98/NT] 2.1 For C user 2.1.1 A826.H (for Win 95/98) #ifdef __cplusplus #define EXPORTS extern "C" __decls pec (dllimport) #else #define EXPORTS #endif /.
OME-A-826P G Software M anual [Win 9 5/98/NT] #define NoError 0 #define DriverOpenError 1 #define DriverNoOpe n 2 #define GetDriverVersionError 3 #define InstallIrqError 4 #define ClearIntCountError 5 #define GetIntCountError 6 #define AdError1 100 #define AdError2 -200.
OME-A-826P G Software M anual [Win 9 5/98/NT] //********* IRQ Functios ******* ***** EXPORTS WORD CALLBACK A826_Inst allIrq (WORD wBase, WORD wIrq, HANDLE *hEvent, DWORD dwCount); EXPORTS WORD CALLBAC.
OME-A-826P G Software M anual [Win 9 5/98/NT] 2.1.2 A826.H (for Win NT) #ifdef __cplusplus #define EXPORTS extern "C" __declspec (dllimport) #else #define EXPORTS #endif /***************** D.
OME-A-826P G Software M anual [Win 9 5/98/NT] #define NoError 0 #define DriverOpenError 1 #define DriverNoOpen 2 #define GetDriverVersionE rror 3 #define InstallIrqError 4 #define ClearIntCountError 5.
OME-A-826P G Software M anual [Win 9 5/98/NT] 2.1.3 A826U.Cpp (for BCB) #include <math.h> //*----------- -------- ---------- -------- ---------- ------* //* Return voltage value or -100.
OME-A-826P G Software M anual [Win 9 5/98/NT] 2.1.4 The VC++ Demo Result: 2.1.5 Borland C++ Builder Demo Result Date: Aug-15-2000 Ver: 2.2 Page 14.
OME-A-826P G Software M anual [Win 9 5/98/NT] 2.2 For The VB user 2.2.1 A826.BAS (for Win 95/98) Attribute VB_Name = "A826" '***************************** **************** *********************** ************* ' The Declare of A826.
OME-A-826P G Software M anual [Win 9 5/98/NT] Global Const A826_BI_2 = 1 Global Const A826_BI_4 = 2 Global Const A826_BI_8 = 3 Global Const A826_UNI_2 = 5 Global Const A826_UNI_4 = 6 Global Const A826.
OME-A-826P G Software M anual [Win 9 5/98/NT] Declare Sub A826_Uni 10_DA Lib "A826.D LL" (ByVal wBase As Integer, _ ByVal wChannel As Integer, ByVal fValue As Single) '******* Driver Functions *********** Declare Function A826_Dri verInit Lib "A826.
OME-A-826P G Software M anual [Win 9 5/98/NT] 2.2.2 A826.BAS (for Win NT) Attribute VB_Name = "A826" '***************************** **************** *********************** ************* ' The Declare of A826.
OME-A-826P G Software M anual [Win 9 5/98/NT] Global Const NoError = 0 Global Const DriverOpenError = 1 Global Const DriverNoOpen = 2 Global Const GetDriverVersionError = 3 Global Const InstallIrqErro.
OME-A-826P G Software M anual [Win 9 5/98/NT] '******* Driver Functions *********** Declare Function A826_Dri verInit Lib "A826.DLL" () As Integer Declare Sub A826_Drive rCl ose Lib "A826.DLL" () Declare Function A826_DELAY Lib "A826.
OME-A-826P G Software M anual [Win 9 5/98/NT] 2.2.3 A826U.BAS Attribute VB_Name = "A826u" '*---------- -------- -------- ---------- -------- ---------* '* Return voltage value or -100.0 if any error occurs * '* or parameter is out of range.
OME-A-826P G Software M anual [Win 9 5/98/NT] 2.3 For The Delphi user 2.3.1 A826.PAS (for Win 95/98) unit A826; interface type PSingle=^Single; type PWord=^Word; type PInteger=^Integer; type PSmallInt.
OME-A-826P G Software M anual [Win 9 5/98/NT] A826_BI_50 = 10; A826_BI_500 = 11; A826_BI_2 = 1; A826_BI_4 = 2; A826_BI_8 = 3; A826_UNI_2 = 5; A826_UNI_4 = 6; A826_UNI_8 = 7; NoError = 0; DriverOpenErr.
OME-A-826P G Software M anual [Win 9 5/98/NT] //********* Driver Functios ************ Function A826_DriverInit:WORD; StdCall; Procedure A826_DriverClo se; StdCall; Function A826_DELAY(wBase,wDownCoun.
OME-A-826P G Software M anual [Win 9 5/98/NT] Function A826_GetDriverVersion; exter nal 'A826.DLL' name 'A826_ GetDriverVersion'; Function A826_InstallIrq; ex ternal 'A826.DLL' name 'A826_InstallIrq'; Function A826_GetBuffer; external 'A826.
OME-A-826P G Software M anual [Win 9 5/98/NT] 2.3.2 A826.PAS (for Win NT) unit A826; interface type PSingle=^Single; type PWord=^Word; type PInteger=^Integer; type PSmallInt=^PSmallInt; const //******.
OME-A-826P G Software M anual [Win 9 5/98/NT] A826_BI_8 = 3; A826_UNI_2 = 5; A826_UNI_4 = 6; A826_UNI_8 = 7; NoError = 0; DriverOpenE rror = 1; DriverNoOpen = 2; GetDriverVersionError = 3; InstallIrqError = 4; ClearIntCountError = 5; GetIntCountError = 6; AdError1 = 100; AdError2 = -200.
OME-A-826P G Software M anual [Win 9 5/98/NT] //********* IRQ Functios ************ Function A826_InstallIrq (wBase,wIrq:WO RD; var hEvent:LongIn t; dwCount:LongInt):WO RD; StdCall; Function A826_AD_I.
OME-A-826P G Software M anual [Win 9 5/98/NT] 2.3.3 A826U.PAS unit A826U; interface type PSingle=^Single; type PWord=^Word; type PInteger=^Integer; type PSmallInt=^PSmallInt; Function A826_AD2F(hex, G.
OME-A-826P G Software M anual [Win 9 5/98/NT] 2.3.4 Delphi Demo Result : Date: Aug-15-2000 Ver: 2.2 Page 30.
OME-A-826P G Software M anual [Win 9 5/98/NT] 3 Function Description These functions in DLL are divided into several groups as follows: 1. The test functions 2. The DI/O functions 3. The AD/DA fixed-mode functions 4. The Driver functions 5. The AD Interrupt Mode functions 6.
OME-A-826P G Software M anual [Win 9 5/98/NT] The functions of AD Interrupt listing as follows: 1. A826_InstallIrq 2. A826_GetIntCount 3. A826_GetBuffer 4. A826_AD_INT_Start 5. A826_AD_INT_Stop 6. A826_GetFloatBuffer The functions of AD DMA listing as follows: 1.
OME-A-826P G Software M anual [Win 9 5/98/NT] 3.1 TEST Function 3.1.1 SHORT_SUB_2 z Description : Compute C=nA-nB in short format, Short=16 bits sign integer.
OME-A-826P G Software M anual [Win 9 5/98/NT] 3.1.3 A826_Get_DLL_Version z Description : Read the software version z Syntax : WORD A826_Get_DLL_Version(void); z Parameter : Void z Return Value : return=0x100 Î Version 1.0 3.1.4 A826_GetDriverVersion z Description : This subroutine will get the version number about the virtual device driver.
OME-A-826P G Software M anual [Win 9 5/98/NT] 3.2 DI/DO Function 3.2.1 A826_Di • Description : This subroutine will read the 16 bits data from the digital input port.
OME-A-826P G Software M anual [Win 9 5/98/NT] 3.2.3 A826_OutputByte • Description : This subroutine will send the 8 bi ts data to the desired I/O port.
OME-A-826P G Software M anual [Win 9 5/98/NT] 3.2.5 A826_InputByte • Description : This subroutine will input the 8 bits data from the desired I/O port. • Syntax : WORD A826_InputByte(WORD wPortAddr); • Parameter : wPortAddr : [ Input ] I/O port address, fo r example, 0x220 • Return Value : 16 bits data with the leading 8 bits are all 0 3.
OME-A-826P G Software M anual [Win 9 5/98/NT] 3.3 A/D , D/A Functions 3.3.1 A826_AD • Description : This subroutine will perform a A/D conver sion by pollin g. The A/D converter is 16 bits for A82PG. This subroutine will co mpute the result according to the configuration code .
OME-A-826P G Software M anual [Win 9 5/98/NT] 3.3.3 A826_ADs_Hex • Description : This subroutine will perform a number of A/D conver sions by polling. This subroutine is very similar to A826_AD except that this subroutine will perform wCount of conversions inst ead of just one conversion.
OME-A-826P G Software M anual [Win 9 5/98/NT] 3.3.4 A826_ADs_Float • Description : This subroutine will perform a number of A/D conversions by polling. This subroutine is very similar to A826_AD except that this subroutine will perform wCount of conversions inst ead of just one conversion.
OME-A-826P G Software M anual [Win 9 5/98/NT] 3.3.5 A826_Uni5_DA • Description : This subroutine will send the 16 bits data to D/A analog output. The output range of D/A dependent on setting by hardware jumper, JP1 ( -5v or –10v), JP10/JP11 (Bipolar or Unipolar).
OME-A-826P G Software M anual [Win 9 5/98/NT] 3.4 Driver Functions 3.4.1 A826_DriverInit z Description : This subroutine will open the device driver. z Syntax : WORD A826_DriverInit (void); z Parameter : Void z Return Value : NoError : successful in opening the device driver DriverOpenError : fail in opening the device driver.
OME-A-826P G Software M anual [Win 9 5/98/NT] 3.4.3 A826_DELAY • Description: This subroutine will delay wDownCount mS(machine independent timer). z Syntax: WORD A826_DELAY(WORD wBas e, WORD wDownCo.
OME-A-826P G Software M anual [Win 9 5/98/NT] 3.5 AD, Interrupt functions 3.5.1 A826_InstallIrq z Description: This subroutine will install interrupt handler for a specific IRQ level n. z Syntax: WORD A826_InstallIrq(WORD wBase, WORD wIrq, HANDLE *hEvent, DWORD dwCount ); z Parameter: wBase : [ Input ] The I/O port base address for A826 card.
OME-A-826P G Software M anual [Win 9 5/98/NT] 3.5.3 A826_AD_INT_Stop z Description: This subroutine will stop the interrupt transfer and remove the installed interrupt handler. z Syntax: WORD A826_AD_INT_Stop(void ) z Parameter: void. z Return Value: NoError : successful INTStopError : fail 3.
OME-A-826P G Software M anual [Win 9 5/98/NT] 3.5.5 A826_GetBuffer z Description: This subroutine will copy the transfe rred interrupted data into the user’s buffer. z Syntax: WORD A826_GetBuffer(DWORD dwNum, short wBuffer[] ) z Parameter: dwNum : [ Input ] the entry no to transfer.
OME-A-826P G Software M anual [Win 9 5/98/NT] 3.5.7 Diagram of Interrupt Mode The 3.5.1 to 3.5.6 are functions to perform the A/D conversion with interrupt transfer.
OME-A-826P G Software M anual [Win 9 5/98/NT] Yes No INT_Handler( ) Using the A826_AD_INT_Sto p() to stop the interrupt transfer and remove the interrupt ha ndler.
OME-A-826P G Software M anual [Win 9 5/98/NT] 3.6 AD , DMA functions The DMA mechanism supports the Windows 95/98 only. 3.6.1 A826_AD_DMA_InstallIrq z Description: This subroutine will install interrupt handler for a specific IRQ Level n and programming a DMA controller (8237) to handle DMA transfe r for DMA Channel n.
OME-A-826P G Software M anual [Win 9 5/98/NT] 3.6.3 A826_AD_DMA_Start z Description: This subroutine will allocate a DMA buffer in the system area, and programming the gain code and sampling rate . then starting the DMA transfer for a specific A/D channel.
OME-A-826P G Software M anual [Win 9 5/98/NT] 3.6.4 A826_AD_DMA_Stop z Description: This subroutine will free the allocat ed DMA buffer that in system area. z Syntax: WORD A826_AD_DMA_Stop(void ) z Parameter: void. z Return Value: NoError : successful DmaStopError : fail 3.
OME-A-826P G Software M anual [Win 9 5/98/NT] 3.6.6 A826_AD_DMA_GetBuffer z Description: This subroutine will copy the transferr ed DMA data into the user’s buffer.
OME-A-826P G Software M anual [Win 9 5/98/NT] 3.6.8 Diagram of AD , DMA Mode The 3.6.1 to 3.6.7 are functions to perform the A/D conversion with DMA transfer.
OME-A-826P G Software M anual [Win 9 5/98/NT] Next Loop Using the A82 6_AD_DMA_ RemoveIrq() to remove IR Q handle r. 8237 ADC Sampling rate define by c1,c2 INT_Handler( ) BufferB BufferA system area Application area Using the A82 6_AD_DMA_ Stop() to release s y stem DMA buffer.
OME-A-826P G Software M anual [Win 9 5/98/NT] 4 Program Architecture Access/Control the Device Access/Control the Device Close the Device-Driver Initialize the Device-Driver A826_Drive rInit() …. A826_InputByte( … ) …….. …….. A826_OutputByte(…) ….
OME-A-826P G Software M anual [Win 9 5/98/NT] Date: Aug-15-2000 Ver: 2.2 Page 56 5 Cont act Us Technical support is available at no charge as described below.
W ARRANTY / DISCLAIMER OMEGA ENGINEERING, INC. warrants this unit to be free of defects in materials and workmanship for a period of 13 months from date of purchase. OME GA ’ s W ARRANTY adds an additional one (1) month grace period to the normal one (1) year product warranty to cover handling and shipping time.
M4035/0104 Where Do I Find Ever ything I Need for Pr ocess Measurement and Control? OM EGA…Of Course! Shop online at www .omega.com TEMPERA TURE Thermocouple, RTD & Thermistor Probes, Co.
デバイスOmega Engineering OME-A826PGの購入後に(又は購入する前であっても)重要なポイントは、説明書をよく読むことです。その単純な理由はいくつかあります:
Omega Engineering OME-A826PGをまだ購入していないなら、この製品の基本情報を理解する良い機会です。まずは上にある説明書の最初のページをご覧ください。そこにはOmega Engineering OME-A826PGの技術情報の概要が記載されているはずです。デバイスがあなたのニーズを満たすかどうかは、ここで確認しましょう。Omega Engineering OME-A826PGの取扱説明書の次のページをよく読むことにより、製品の全機能やその取り扱いに関する情報を知ることができます。Omega Engineering OME-A826PGで得られた情報は、きっとあなたの購入の決断を手助けしてくれることでしょう。
Omega Engineering OME-A826PGを既にお持ちだが、まだ読んでいない場合は、上記の理由によりそれを行うべきです。そうすることにより機能を適切に使用しているか、又はOmega Engineering OME-A826PGの不適切な取り扱いによりその寿命を短くする危険を犯していないかどうかを知ることができます。
ですが、ユーザガイドが果たす重要な役割の一つは、Omega Engineering OME-A826PGに関する問題の解決を支援することです。そこにはほとんどの場合、トラブルシューティング、すなわちOmega Engineering OME-A826PGデバイスで最もよく起こりうる故障・不良とそれらの対処法についてのアドバイスを見つけることができるはずです。たとえ問題を解決できなかった場合でも、説明書にはカスタマー・サービスセンター又は最寄りのサービスセンターへの問い合わせ先等、次の対処法についての指示があるはずです。