Manuale d’uso / di manutenzione del prodotto OME-A826PG del fabbricante Omega Engineering
Vai alla pagina 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.
Un punto importante, dopo l’acquisto del dispositivo (o anche prima di acquisto) è quello di leggere il manuale. Dobbiamo farlo per diversi motivi semplici:
Se non hai ancora comprato il Omega Engineering OME-A826PG è un buon momento per familiarizzare con i dati di base del prodotto. Prime consultare le pagine iniziali del manuale d’uso, che si trova al di sopra. Dovresti trovare lì i dati tecnici più importanti del Omega Engineering OME-A826PG - in questo modo è possibile verificare se l’apparecchio soddisfa le tue esigenze. Esplorando le pagine segenti del manuali d’uso Omega Engineering OME-A826PG imparerai tutte le caratteristiche del prodotto e le informazioni sul suo funzionamento. Le informazioni sul Omega Engineering OME-A826PG ti aiuteranno sicuramente a prendere una decisione relativa all’acquisto.
In una situazione in cui hai già il Omega Engineering OME-A826PG, ma non hai ancora letto il manuale d’uso, dovresti farlo per le ragioni sopra descritte. Saprai quindi se hai correttamente usato le funzioni disponibili, e se hai commesso errori che possono ridurre la durata di vita del Omega Engineering OME-A826PG.
Tuttavia, uno dei ruoli più importanti per l’utente svolti dal manuale d’uso è quello di aiutare a risolvere i problemi con il Omega Engineering OME-A826PG. Quasi sempre, ci troverai Troubleshooting, cioè i guasti più frequenti e malfunzionamenti del dispositivo Omega Engineering OME-A826PG insieme con le istruzioni su come risolverli. Anche se non si riesci a risolvere il problema, il manuale d’uso ti mostrerà il percorso di ulteriori procedimenti – il contatto con il centro servizio clienti o il servizio più vicino.