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.
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...
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.
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. •...
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.
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...
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.
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.
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.
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.
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.
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.
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.
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 ×...
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.
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.
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.
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...
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 •...
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...
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.
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...
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.
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.
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)
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.
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.
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.
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...
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...
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 •...
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...
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...
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...
Need help?
Do you have a question about the PCD Series and is the answer not in the manual?
Questions and answers