KYOWA PCD Series Instruction Manual

Sensor interface

Advertisement

Quick Links

Thank you for purchasing KYOWA's product PCD SERIES SENSOR
INTERFACE.
Read this Instruction Manual carefully in order to make full use of the high
performance capabilities of the product.
Do not use the product in methods other than described in this Manual.
This Instruction Manual is related to method for controlling the PCD Series.
For details of Hardware and Software, customers are required to refer to the
respective Instruction Manuals.
Copyright © Kyowa Electronic Instruments Co., Ltd. All rights reserved.
Windows2000/XP/Vista are registered trademarks of the Microsoft Corporation US.
Generally, company names and trade names described in this Instruction Manual are trademarks or registered
trademarks of the companies.
This Instruction Manual may not be copied or reproduced, in whole or part, without consent of KYOWA.
The contents of the Instruction Manual are subjected to change without prior notice.
SENSOR INTERFACE
PCD SERIES
CONTROL FUNCTION
INSTRUCTION MANUAL
IM-A-731-C NOVEMBER 2008

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PCD Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for KYOWA PCD Series

  • Page 1 Generally, company names and trade names described in this Instruction Manual are trademarks or registered trademarks of the companies. This Instruction Manual may not be copied or reproduced, in whole or part, without consent of KYOWA. The contents of the Instruction Manual are subjected to change without prior notice.
  • Page 2: Table Of Contents

    CONTENTS 1. INTRODUCTION ............................... 1 2. OPERATIONAL ENVIRONMENT.......................... 1 3. NECESSARY FILES..............................1 4. CONTROL FUNCTION............................. 2 4-1 LIST OF FUNCTIONS..................................2 4-1-1 Precautions on Functions ..................................2 4-1-2 Basic Functions....................................3 4-1-3 Individual Functions ..................................4 4-2 SPECIFICATIONS COMMON TO VARIOUS FUNCTIONS ......................5 4-2-1 Return Value of Function ..................................5 4-2-2 PcdNo........................................5 4-3 DETAILS OF BASIC FUNCTION..............................6...
  • Page 3 4-4-7 PcdOMS......................................29 4-4-8 PcdCMS ......................................30 4-4-9 PcdRNG ......................................30 4-4-10 PcdFLT......................................31 4-4-11 PcdCUP......................................31 4-4-12 PcdTES ......................................32 4-4-13 PcdTER......................................32 4-4-14 PcdBAL......................................33 4-4-15 PcdBAR ......................................33 4-4-16 PcdSTA ......................................34 4-4-17 PcdSTP......................................34 4-4-18 PcdPRR......................................35 4-4-19 PcdERR......................................36 4-4-20 PcdECL......................................36 4-4-21 PcdCHK ......................................37 4-4-22 PcdCHR ......................................37 4-4-23 PcdDMS......................................38 4-4-24 Pcd_MOD .....................................39 4-4-25 Pcd_TED.......................................39 4-4-26 Pcd_TEJ ......................................39...
  • Page 4: Introduction

    When the PCD is connected to the PC for the first time, it is required to install the USB driver to the Windows system. For installing the USB driver, refer to the PCD Series Instruction Manual for USB Driver Installation.
  • Page 5: Control Function

    4. CONTROL FUNCTION The control function is roughly classified into 2 groups; basic function and individual function. Features of the respective functions are described in the following. Basic function • Capable of controlling the PCD to some extent with few control commands. •...
  • Page 6: Basic Functions

    PCD control functions are listed in the following table. 4-1-2 Basic Functions Function Name Function Section PcdOpen Initialize PCD.DLL. 4-3-1 PcdClose Close PCD.DLL. 4-3-2 PcdSetOsc Set oscillator. 4-3-3 PcdSetSync Set synchronous clock. 4-3-4 PcdSetSamp Set sampling frequency. 4-3-5 PcdSetChParam Set channel condition. (For physical value data) 4-3-6 PcdSetChParamEx Set channel condition.
  • Page 7: Individual Functions

    4-1-3 Individual Functions Function Name Function Section dPcdGetDevices Check connected state. 4-4-1 dPcdStart Start monitor. 4-4-2 dPcdStop Stop monitor. 4-4-3 dPcdGet Data Obtain monitor data. 4-4-4 dPcdGetStatus Obtain status. 4-4-5 PcdSPD Set sampling frequency. 4-4-6 PcdOMS Set oscillator. 4-4-7 PcdCMS Set synchronous clock.
  • Page 8: Specifications Common To Various Functions

    4-2 SPECIFICATIONS COMMON TO VARIOUS FUNCTIONS 4-2-1 Return Value of Function 1) Unless no descriptions are made, return values of various functions are set as follows. Ends normally Command or parameter error No PCD is connected. No PCD300B.DLL exists. Windows system error. Communication error between the PCD Receive buffer over flow Setting not able because during A/D...
  • Page 9: Details Of Basic Function

    4-3 DETAILS OF BASIC FUNCTION 4-3-1 PcdOpen • Function Initializes the PCD.DLL. Firstly, before using the PCD.DLL, it is required to call this function. Or, no other functions are called. • Definition __declspec(dllimport) long __stdcall PcdOpen(char *DllPath) • Argument *DllPath Pathname of PCD.DLL The size of pathname assignment should be 260 bytes or more.
  • Page 10: Pdsetsync

    4-3-4 PdSetSync • Function Sets synchronous clock. • Definition __declspec(dllimport) long __stdcall PcdSetSync (long PcdNo. long Sync) • Argument PcdNo Set PCD No. (0 to 3) for setting the synchronous clock. Sync Synchronous clock Slave Master • Others 1) Set the synchronous clock while stopping monitoring. No synchronous clock is set during monitoring.
  • Page 11: Pcdsetchparam

    4-3-6 PcdSetChParam • Function Sets measuring conditions of channels of the PCD-300A and PCD-300B, PCD-300B-T, PCD-300B-H, PCD-300B-HT. • Definition __declspec(dllimport) long __stdcall PcdSetChParam (long Ch ,long Range, float Coeff, float, Offset) • Argument Channel No. (1 to 16) Set PCD No. to PCD ID×4. Ex.) When PCD ID is 1: Set channel Nos.
  • Page 12: Pcdsetchparamex

    4-3-7 PcdSetChParamEx • Function Sets measuring conditions of channels. • Definition __declspec(dllimport) long __stdcall PcdSetChParam (long Ch ,long Range, long Filter, long Coupling, float Coef, float Offset) • Argument Channel No. (1 to 16) Set PCD Nos. to PCD ID×4. Ex.) When PCD ID is 1: Set channel No.
  • Page 13 3) This function is set only as the internal variable of the PCD.DLL and not sending the actual command.
  • Page 14: Pcdmonistart

    4-3-8 PcdMoniStart • Function Starts monitoring. (To obtain physical value data) • Definition __declspec(dllimport) long __stdcall PcdMoniStart (void) • Argument None • Others 1) This function is used together with the following functions for obtaining physical value monitor data. 2) This function is calling various functions such as dPcdStart, PcdOMS, PcdCMS, PcdRNG, PcdFLT, PcdCUP, and PcdSTA inside this function.
  • Page 15: Pcdgetmonidata

    4-3-10 PcdGetMoniData • Function Obtains physical value monitor data. For application program, call this function within approximately 0.3 sec to obtain the monitor data. • Definition __declspec(dllimport) long __stdcall PcdGetMoniData (float *MeasData) • Argument *MeasData Monitor data converted into physical value data from the preset range, CAL coefficient, and offset.
  • Page 16: Pcdstartad

    4-3-11 PcdStartAd • Function Starts monitoring. (To obtain A/D data) • Definition __declspec(dllimport) long __stdcall PcdStartAd (long PcdNo.) • Argument PcdNo. Set PCD ID No. for starting monitoring. Unlike other functions, this function sets the PCD ID No. Start monitoring of all the connected PCD units. 1 to 4: Start monitoring of only 1 preset PCD.
  • Page 17: Pcdgetmeasdata

    4-3-13 PcdGetMeasData • Function Obtains A/D value monitor data. For application program, call this function within an interval of approximately 0.3 sec to obtain the desired monitor data. • Definition __declspec(dllimport) long __stdcall PcdGetMeasData (short *MeasData) • Argument *MeasData A/D data outputted from the PCD-300A/PCD-320A. Channel assignment is described in the following.
  • Page 18 4) How to convert data into physical value data Full scale A/D value of the PCD-300A Series is ±2000 digits. Therefore, physical value can be obtained by calculating range, CAL coefficient, and offset in the following expression. Physical value = Range/Full scale A/D value (2000)×Meas data×CAL coefficient+Offset Ex.) Suppose range: 200μm/m, Meas data: 1234, CAL coefficient: 2.0, and offset: 1.5 200/2000 ×...
  • Page 19: Pcdbalance

    4-3-14 PcdBalance • Function Conducts balance. • Definition __declspec(dllimport) long __stdcall PcdBalance (long *BalCh, long TotalBalCh, long *BalResult) • Argument *BalCh Set balance channel assignment. No balance is conducted. Or no PCD-300A or PCD-300BSeries is connected. Conduct balance. TotalBalCh Set the number of preset balance conducting channels. *BalResult Balance results of the preset BalCh.
  • Page 20: Pcdtest

    4-3-15 PcdTest • Function Conducts self-test. • Definition __declspec(dllimport) long __stdcall PcdTest (long *TesNo, long TotalTesNo, long *TesResult) • Argument *TesNo Set whether or not self-test is conducted for every PCD No. No self-test is conducted Or no PCD is connected. Conduct self-test.
  • Page 21: Pcdconnect

    4-3-16 PcdConnect • Function Checks connected state. • Definition __declspec(dllimport) long __stdcall PcdConnect (long PcdNo, long *Connect) • Argument PcdNo Set PCD No. (0 to 3) for checking the connected state. *Connect PCD connected state Not connected Connected • Others 1) Check the connected state while stopping monitoring.
  • Page 22: Pcdgettype

    4-3-18 PcdGetType • Function Obtains the PCD type. • Definition __declspec(dllimport) long __stdcall PcdGetType (long PcdNo, long *PcdType) • Argument PcdNo Set.PCD No. (0 to 3) for obtaining the PCD type. *PcdType Not connected PCD-300A PCD-320A PCD-300B PCD-300B-F System reserve System reserve System reserve System reserve...
  • Page 23: Pcd_Setdatatype

    4-3-19 Pcd_SetDataType • Function Sets A/D data format of PCD-300B/PCD-300B-F. • Definition __declspec(dllimport) long __stdcall Pcd_SetDataType (long lDataType) • Argument lDataType Set A/D data format. 12-bit A/D conversion (2000 digits) Code extension 12-bit A/D conversion (2000 bits) 16-bit A/D conversion (32000 digits) (*: PCD-300B Series) 24-bit A/D conversion (8200000 digits) (*: P CD-300B Series)
  • Page 24: Pcd_Getstoragedatafloat

    4-3-21 Pcd_GetStorageDataFloat • Function Obtains storage data acquired from the DLL. • Definition __declspec(dllimport)long __stdcall Pcd_GetStorageDataFlat (long lStartPoint, long lDataNum, float *vfData) • Argument lStartPoint Load start point (0 or more) The number of loaded lDataNum data (per channel) *vfData Data obtained from the PCD •...
  • Page 25: Pcd_Getmonidata

    4-3-24 Pcd_GetMoniData • Function Obtains A/D value monitor data. (Corresponding to the PCD-300B Series) For application program, call this function within interval of approximately 0.3 sec and obtain the monitor data. • Definition __declspec(dllimport) long __stdcall Pcd_GetMoniData (void *vMoniData) • Argument *vMoniData A/D data outputted by the PCD.
  • Page 26 0: External trigger information + System reserve: 3 bits + : 12-bit A/D data         15 14 13 12 11 2’s complement System reserve External trigger bit 0: Without ext trigger 1: With ext trigger 1: Code extension: 12-bit A/D data  ...
  • Page 27 4) How to convert data into physical value data Full scale A/D value of the PCD-300B Series is described in the following. A/D data format set by the Pcd_SetDataType Corresponding full scale A/D value 0: 12-bit A/D conversion data ±200 digits 1: Code extension 12-bit A/D conversion data ±2000 digits 2: 16-bit A/D conversion data...
  • Page 28: Details Of Individual Functions

    4-4 DETAILS OF INDIVIDUAL FUNCTIONS 4-4-1 dPcdGetDevices • Function Checks connection state. • Definition __declspec(dllimport) DWORD __stdcall dPcdGetDevices (DWORD PcdNo, DWORD *Connect) • Argument PcdNo: Set PCD Nos. (0 to 3) for checking connection. *Connect: PCD connected state Unconnected Connected •...
  • Page 29: Dpcestop

    4-4-3 dPceStop • Function USB driver stops loading monitor data from the PCD. • Definition __declspec(dllimport) DWORD __stdcall dPcdStop (DWORD PcdNo) • Argument PcdNo: Set PCD No. (0 to 3) for stopping loading monitor data. • Others 1) To stop monitoring data, after stopping the A/D conversion of the PCD by the PcdSTP function, it is required to set the slave PCD to monitor stop state.
  • Page 30: Dpcdgetdata

    4-4-4 dPcdGetData • Function Load monitor data via USB driver for the PCD. • Definition __declspec(dllimport) DWORD __stdcall dPcdGetData (DWORD PcdNo, void *pSizeStruct, char *pReciveData) • Argument PcdNo: Set PCD No. (0 to 3) for loading monitor data. *pSizeStruct Pointer of SIZE_INFO structure Typedef struct _size_info DWORD dwReqSize: The number of desired bytes...
  • Page 31: Dpcdgetstatus

    4-4-5 dPcdGetStatus • Function Obtains PCD status. • Definition __declspec(dllimport) DWORD __stdcall dPcdGetStatus (DWORD PcdNo, DWORD *Status) • Argument PcdNo: Set PCD No. (0 to 3) for obtaining PCD status. *Status PCD status Stopping A/D conversion Not defined • Others None 4-4-6 PcdSPD •...
  • Page 32: Pcdoms

    4-4-7 PcdOMS • Function Sets oscillator. • Definition __declspec(dllimport) long __stdcall PcdOMS (long PcNo, long Oms) • Argument PcdNo Set PCD No445. (0 to 3) for setting oscillator. Oscillator Slave Master • Others 1) Oscillator and synchronous clock of the PCD-300A and PCD-300B Series become master units when the PCD units are turned ON and when the USB cable is connected/disconnected.
  • Page 33: Pcdcms

    4-4-8 PcdCMS • Function Sets synchronous clock. • Definition __declspec(dllimport) long __stdcall PcdCMS (long PcNo., long Cms) • Argument PcdNo: Set PCD No (0 to 3) for setting synchronous clock. Synchronous clock Slave Master • Others 1) When the PCD is turned ON or when the USB cable is connected/disconnected. The oscillator and synchronous clock become master.
  • Page 34: Pcdflt

    4-4-10 PcdFLT • Function Sets low pass filter of channels. This function is dedicated for PCD-320A and PCD-300B-F and PCD-330B Series. • Definition __declspec(dllimport) long __stdcall PcdFLT (long PcNo., long *sFlt) • Argument PcdNo Set PCD No. (0 to 3) for setting low pass filter. PCD-300A PCD-300B-F PCD-330B Series(Voltage)
  • Page 35: Pcdtes

    4-4-12 PcdTES • Function Conducts self-test. • Definition __declspec(dllimport) long __stdcall PcdTES (long PcdNo) • Argument PcdNo Set PCD No. (0 to 3) for conducting self-test. • Others 1) This function is only available while stopping monitoring. 2) For the PCD-300A and PCD-300B Series, before starting the self-test, do not forget to set the PCdOMS.
  • Page 36: Pcdbal

    4-4-14 PcdBAL • Function Conducts balance. This function is dedicated for PCD-300A and PCD-300B Series. • Definition __declspec(dllimport) long __stdcall PcdBAL (long PcdNo, long *sBal) • Argument PcdNo: Set PCD No. (0 to 3) for conducting balance. *sBal Set balance channel. Conduct balance.
  • Page 37: Pcdsta

    4-4-16 PcdSTA • Function Starts A/D conversion of the PCD. • Definition __declspec(dllimport) long __stdcall PcdSTA (long PcdNo) • Argument PcdNo: Set PCD No. (0 to 3) for starting A/D conversion. • Others See description on dPcdStart. 4-4-17 PcdSTP • Function Stops A/D conversion of the PCD.
  • Page 38: Pcdprr

    4-4-18 PcdPRR • Function Loads PCD parameters. • Definition __declspec(dllimport) long __stdcall PcdPRR (long PcdNo, long sPrr, long *Prr) • Argument PcdNo: Set PCD No. (0 to 3) for loading parameters. sPrr Set desired parameter types. 0x00000001 Type 0x00000002 Software version 0x00000003 FPGA version 0x00000004...
  • Page 39: Pcderr

    4-4-19 PcdERR • Function Loads PCD error information. • Definition __declspec(dllimport) long __stdcall PcdERR (long PcdNo, long *Err) • Argument PcdNo: Set PCD No. (0 to 3) for loading error information. *Err Set the loaded error information. Normal Other than 0: Error occurred (Error contents are corresponding to bit) 31 8 7 6 5 4 3 2 1 0 System reserve...
  • Page 40: Pcdchk

    4-4-21 PcdCHK • Function Checks PCD hardware. • Definition __declspec(dllimport) long __stdcall PcdCHK (long PcdNo) • Argument PcdNo: Set PCD No. (0 to 3) for checking the hardware. • Others Checking the hardware is only available while stopping monitoring. 4-4-22 PcdCHR •...
  • Page 41: Pcddms

    4-4-23 PcdDMS • Function Sets A/D data format. • Definition __declspec(dllimport) long __stdcall PcdDMS (long PcdNo, long Dms) • Argument PcdNo: Set PCD No. (0 to 3) for setting A/D data format. A/D data format 0 External trigger information + 3-bit system reserve + 12-bit A/D conversion data 15 14 13 12 11 2’s complement...
  • Page 42: Pcd_Mod

    4-4-24 Pcd_MOD • Function Sets Meas mode of PCD channels. (Dedicated for the PCD-300B Series) • Definition __declspec(dllimport) long __stdcall Pcd_MOD (long PcdNo, long *ChMod) • Argument PcdNo Set PCD No. (0 to 3) for setting Meas mode. *ChMod Pointer of channel assignment preset with Meas mode of channels. 1G mode 2G mode 4G mode...
  • Page 43: Pcdprr_Float

    4-4-27 PcdPRR_Float • Function Loads PCD parameters. (When return value is float data type.) • Definition __declspec(dllimport) long __stdcall PcdPRR_Float (long PcdNo, long sPrr, float *Prr) • Argument PcdNo: Set PCD No. (0 to 3) for loading parameters. sPrr Set the desired parameter type to be loaded 0x00000200 TEDS calibration coefficient Oxoooo11oo...

Table of Contents