PCE-D122 Series. Programming Manual TPM. Version: V N15. To properly use the product, read this manual thoroughly is necessary.

Similar documents
[ACT 005] Manual E 5/25/05 9:24 PM Page 3 MULTI-FUNCTION

RPS900W Redundant Power Supply. Installation Guide.

12V AIR STATION ALL-IN-ONE

A4 Operation Manual. Fig.1-1 Controller Socket Diagram

A4s Operation Manual

Pedometer with PC download. Model: FB322 OVERVIEW FRONT VIEW INDEX

Stand-Alone Bubble Detection System

September 10, 2014 Revision 2. Puncher Unit-BE1/BF1/BG1/BH1 Service Manual

Product Overview. Product Description CHAPTER

MAGICFX CONFETTIPISTOL USER AND INSTALLATION MANUAL

EasySas. The most advanced airlock electronics on the market. Recyclable product. Eco-design. Energy savings

BD Cytopeia Fluidic Kit User s Guide

AR740 RPS Redundant Power Supply Quick Install Guide

HumiSys HF High Flow RH Generator

EC214 EC215 - EC215R Bench Conductivity Meters

Storage Shelving. User Manual [Revision 3.0 May 2017]

Technical Data Sheet MF010-O-LC

URC Voltage Sensor SEN-VOLT for use with MRX units containing sensor ports

VLI Visible Level Interface Operation & Maintenance Manual

2600T Series Pressure Transmitters Plugged Impulse Line Detection Diagnostic. Pressure Measurement Engineered solutions for all applications

ORB-400 BUBBLE/HAZE MACHINE. Item ref: UK User Manual

BMR 2100XL Operating Instructions Page 1 of 13

256 Pneumatic Pressure Indicator

AHE58/59 AC Servo System

DIY - PC - Interface for Suunto Cobra/Vyper/Mosquito

Oxygen Meter User Manual

STARLOG. Capacitive Water Depth Probe

PS Plasma 375 Plasma Cutter Kit Assembly & Operating Instructions

Scoreboard Operator s Instructions MPC Control

Version-E Manual

Safe Schools: A Health and Safety Check

COMPACT AIR COMPRESSOR MODEL NO OWNER S MANUAL

KMW3000C. User Manual. Water Chiller for Xcalibur and Gemini systems. Version 1.6, September 2010

Application Instruction Manual

The HumiSys. RH Generator. Operation. Applications. Designed, built, and supported by InstruQuest Inc.

ETT Olfactometer: Getting started guide 2013a. ETT Olfactometer quick start

Bruker Sample Transport

WELCOME TO THE REVOLUTION

215 Liquid Handler Up-Grade Manual

Supplementary Operator s Manual 42/24-14 EN Rev. 3

Fiber Cable Puller with Tuf-Lugger lite

Elcometer ISO Groove Depth Checker. Operating Instructions

Model GFC 7000T CO 2 Analyzer (Addendum to GFC 7000TA Manual, PN 07272)

User s Manual P/N , 4420, and 4440 Cutter

User Manual. Heads-Up Display (HUD) DiveCAN. Mechanical Button Version

PRODUCT MANUAL. Diver Smart Interface Cable AS346

ID-Cube. Installation and Operations Manual For ID-Cube Source and Power Supply. Revision 2 Document #:

Please note. Right now, the ongoing version of emax (3.9C) is not already completely compatible with the newest firmware version of Shimano!

User Manual 1 P a g e Rev. V1.6-EN 11/08/2014

Nuclear Associates

Roller AC Servo System

Operating instructions Electrical switching facility pco

Operating instructions Safety Rope Emergency Stop Switches ZB0052 / ZB0053 ZB0072 / ZB0073

Mass Flow Meter (MFM) for gases

GMB HR84. GMM 518 Zero

Doc. no.dit om005 PRODUCT NAME. IO-Link/ELECTRO-PNEUMATIC REGULATOR. MODEL / Series / Product Number ITV*0*0-IO****-X395

5 Channel Calibrator

ECE 477 Digital Systems Senior Design Project Rev 9/12. User Manual

Pressure Dump Valve Service Kit for Series 2300 Units

INFLATION STATION. Cordless OWNER S MANUAL MODEL NO: RCP-C65B

User Manual MFCS TM -EZ

User's Manual. Heavy Duty Dissolved Oxygen Meter. Model

Burner Management System DEMO Operating instructions

FOOD INTAKE MONITOR. Hardware and Software User s Manual DOC-047 Rev 3.0. Copyright 2009 All Rights Reserved

12V Mini Air Compressor

SAUTER flexotron 800 heating. List of network variables for Modbus communication. Manual P A P

HI 2314 HI 2315 HI 23151

Technology Roadmap for Organizing Committees of INDIVIDUAL (GRAND-PRIX) FOIL tournaments using StM WIRELESS

9A5N Solid State CW Paddle

APPLICATION NOTES. WIND MEASURING SYSTEMS using XDi-N indicators. Document no.: B

User Manual. MEGP 25 Electric Gripper. Document version: 1.1

Series 2G Diaphragm Actuators

Everyday INFLATION STATION CORDLESS

RAM Operation Manual

Proportional pressure regulators VPPE

Pressure Dump Valve Service Kit for Series 3000 Units

Sequence of Operations

Transmitter CS 21 Operation Manual

36G22, 36G23, 36G24 & 36G52 36J22, 36J23, 36J24 & 36J52 DSI and HSI Single Stage Combination Gas Valve

BUDDY Gorgeous and easy to use GPS Navigation Kit USER GUIDE. Love from Intempo Digital xx

Miris Ultrasonic Processor

Troubleshooting Guide: 640 Pediatric Exam Table with Midmark Scale

BGA244 Binary Gas Analyzer

Reflow Oven HHL3000 INSTRUCTION MANUAL POHUA - jedyny autoryzowany przedstawiciel w Polsce

Media-Isolated Mag Plus Probe Low Pressure-ISO Kit

T i m i n g S y s t e m s. RACEAMERICA, Inc. P.O. Box 3469 Santa Clara, CA (408)

OxyScan Graphic. Operating Instructions. UMS Micro-oxygen sensor 501. Microprocessor instrument

OUTDOOR LED SCOREBOARD CARE & OPERATIONS MANUAL

Help Manual. (ROAD Edition)

Mass Flow Controller (MFC) for Gases

Digital Vacuum Regulator

Agilent Flowmeter ADM1000

Electrical Safety. Hazard Awareness

Agilent Dimension Software for ELSD User Manual

Contents. Page. Page. System Settings 10. Components 3. Basic Operation 4. Brightness. Volume (for use with sat nav software only) Play Golf

Mass Flow Controller (MFC) for Gases

IBU3 Manual Addendum 1

Gas Mixing System (GMS)

ASE SOLVENT CONTROLLER INSTALLATION INSTRUCTIONS Dionex Corporation

e2c 20 - easy to connect

Transcription:

PCE-D122 Series Programming Manual Version: V1.1 2015N15 To properly use the product, read this manual thoroughly is necessary. Part No.: 81-05D122X10-010 1

Revision History Date Revision 2015/08/18 1.0 Document Creation 2015/11/15 1.1 Add description for PCE-D132, PCE-D105, PCE-150 2

Copyright 2014 TPM The product, including the product itself, the accessories, the software, the manual and the software description in it, without the permission of TPM Inc. ( TPM ), is not allowed to be reproduced, transmitted, transcribed, stored in a retrieval system, or translated into any language in any form or by any means, except the documentation kept by the purchaser for backup purposes. The names of products and corporations appearing in this manual may or may not be registered trademarks, and may or may not have copyrights of their respective companies. These names should be used only for identification or explanation, and to the owners benefit, should not be infringed without any intention. The product s name and version number are both printed on the product itself. Released manual visions for each product design are represented by the digit before and after the period of the manual vision number. Manual updates are represented by the third digit in the manual vision number. Trademark MS-DOS and Windows 95/98/NT/2000/XP/CE, Visual Studio, Visual C++, Visual BASIC are registered trademarks of Microsoft. BCB (Borland C++ Builder) is registered trademark of Borland. MULTIPROG is registered trademark of KW software. product names mentioned herein are used for identification purposes only and may be trademarks and/or registered trademarks of their respective companies. 3

Electrical safely To prevent electrical shock hazard, disconnect the power cable from the electrical outlet before relocating the system. When adding or removing devices to or from the system, ensure that the power cables for the devices are unplugged before the signal cables are connected. Disconnect all power cables from the existing system before you add a device. Before connecting or removing signal cables from motherboard, ensure that all power cables are unplugged. Seek professional assistance before using an adapter or extension card. These devices could interrupt the grounding circuit. Make sure that your power supply is set to the voltage available in your area. If the power supply is broken, contact a qualified service technician or your retailer. Operational safely Please carefully read all the manuals that came with the package, before installing the new device. Before use ensure all cables are correctly connected and the power cables are not damaged. If you detect and damage, contact the dealer immediately. To avoid short circuits, keep paper clips, screws, and staples away from connectors, slots, sockets and circuitry. Avoid dust, humidity, and temperature extremes. Do not place the product in any area where it may become wet. If you encounter technical problems with the product, contact a qualified service technician or the dealer. 4

Contents CONTENTS... 5 1. OPERATIONAL PRINCIPLE... 6 1.1. SYSTEM INITIALIZATION... 6 2. HARDWARE INITIALIZATION... 8 2.1. _D122_OPEN... 9 2.2. _D122_CLOSE... 10 2.3. _D122_GET_SWITCH_CARD_NUM... 11 2.4. _D122_CHECK_SWITCH_CARD_NUM... 12 2.5. _D122_GET_CARD_TYPE... 13 2.6. _D122_GET_CPLD_VERSION... 14 3. DIGITAL INPUT / OUTPUT FUNCTIONS... 15 3.1. _D122_READ_INPUT... 16 3.2. _D122_READ_OUTPUT... 17 3.3. _D122_WRITE_OUTPUT... 18 3.4. _D122_READ_INPUT_BIT... 19 3.5. _D122_READ_OUTPUT_BIT... 20 3.6. _D122_WRITE_OUTPUT_BIT... 21 3.7. _D122_TOGGLE_OUTPUT_BIT... 22 3.8. _D122_READ_PORT... 23 3.9. _D122_WRITE_PORT... 24 4. APPENDIX A ERROR CODES... 25 5

1. Operational Principle PCE-D122 series including these models, PCE-D122-SN, PCE-D132-SN, PCE-D150-SX and PCE-D105-XN are advanced-performance data acquisition cards based on PCI Express x1 bus architecture. PCE-D122-SN is a 32/32-ch high-density isolated digital input/output card. PCE-D132-SN is a 48/32-ch high-density isolated digital input/output card. PCE-D150-SX is an 80-ch high-density isolated digital input card. PCE-D105-XN is an 80-ch high-density isolated digital output card. This chapter describes the operational principle of the PCE-D122 series. (hereinafter referred to as PCE-D122.) 1.1. System Initialization PCE-D122 series is Plug-and-Play card. The hardware must be installed under Windows operating system first. After successful hardware initialization, Windows will allocate appropriate system resources for it, for example, IRQ and base memory address. Each individual card must be initialized respectively before its operation. The following message in Windows registry indicates that this hardware initialization is completed successfully. Figure 1-1: PCE-D122 Shown in Device Manager 6

The PCE-D122 would be fully functioned after the hardware initialization call, _d122_open (). _pce_d122_open ExistCard = 3 Card Index = 0 SwitchCardNo = 2 Card Index = 1 SwitchCardNo = 4 Card Index = 2 SwitchCardNo = 6 Relative functions: _d122_open, _d122_close Figure 1-2: System initialization 7

2. Hardware Initialization Function name _d122_open _d122_close _d122_get_switch_card_num _d122_check_switch_card_num _d122_get_card_type _d122_get_cpld_version Allocate hardware resources and get the amount of the I/O card. Release hardware resources Get the card number from the card index Check the existence of the PCE-D122 with a card number. Get the PCE-D122 card type 8

2.1. _d122_open Allocate hardware resources and get the amount of the I/O card. I16 _d122_open (U16 *existcards) Name Type existcards U16 * Get master card count in your PC 9

2.2. _d122_close Release hardware resources : I16 _d122_close () N/A 10

2.3. _d122_get_switch_card_num Get the card number from the card index. I16 _d122_get_switch_card_num (U16 CardIndex, U16 *SwitchCardNo) Name Type CardIndex U16 The number of the card index. SwitchCardNo U16 * The number of the card to be checked with the rotary switch setting. Note. CardIndex is auto-incrementing from 0, and the SwitchCardNo is decision by rotary switch on I/O card. For example, there are 3 PCE-D122 I/O cards installed in PC, we can get the SwitchCardNo by API. Card Index = 0 SwitchCardNo = 2 Card Index = 1 SwitchCardNo = 4 Card Index = 2 SwitchCardNo = 6 11

2.4. _d122_check_switch_card_num Check the existence of the PCE-D122 with a card number. I16 _d122_check_switch_card_num (U16 SwitchCardNo, U8 *IsExist) Name Type SwitchCardNo U16 The number of the card to be checked with the rotary switch setting. IsExist U8 * Equal to 1 if the card exists, 0 if the card does not exist. 12

2.5. _d122_get_card_type Get the PCE-D122 card type. I16 _d122_get_card_type (U16 SwitchCardNo, U8 *CardType) Name Type SwitchCardNo U16 The rotary switch set number of the PCE-D122. Card Type Value Meaning 0 CARD_UNKNOWN CardType U8 * 1 CARD_PCE_D122 2 CARD_PCE_D132 3 CARD_PCE_D150 4 CARD_PCE_D105 13

2.6. _d122_get_cpld_version Get the software version of the CPLD. I16 _d122_get_cpld_version (U16 SwitchCardNo, U16 *CpldVer) Name Type SwitchCardNo U16 The rotary switch set number of the PCE-D122. CpldVer U8 * Returns the current CPLD version. 14

3. Digital Input / Output Functions Function name _d122_read_input _d122_read_output _d122_write_output _d122_read_input_bit _d122_read_output_bit _d122_write_output_bit _d122_toggle_output_bit _d122_read_port _d122_write_port Get input status from all input channels. Get input status from all output channels. Generate output signal to all output channels. Get input status from specified BitNo input channel. Get input status from specified BitNo output channel. Generate output signal to specified BitNo output channel. Toggle specified BitNo output channel signal. Get input status from specified input or output port. Generate output signal to specified output port. 15

3.1. _d122_read_input Get input status from all input channels. I16 _d122_read_input (U16 SwitchCardNo, U8 InData[]) Name Type SwitchCardNo U16 The rotary switch set number of the PCE-D122. InData[] U8 Return the status of all the input channels. Note. // U8 InData[] // PCE-D122: InData[4] // PCE-D132: InData[6] // PCE-D150: InData[10] // PCE-D105: NotSupported 16

3.2. _d122_read_output Get input status from all output channels. I16 _d122_read_output(u16 SwitchCardNo, U8 OutData[]) Name Type SwitchCardNo U16 The rotary switch set number of the PCE-D122. OutData[] U8 Return the status of all the output channels. Note. / U8 OutData[] // PCE-D122: OutData[4] // PCE-D132: OutData[4] // PCE-D150: NotSupported // PCE-D105: OutData[10] 17

3.3. _d122_write_output Generate output signal to all output channels. I16 _d122_write_output(u16 SwitchCardNo, U8 OutData[]) Name Type SwitchCardNo U16 The rotary switch set number of the PCE-D122. OutData[] U8 The output value of all channels Note. / U8 OutData[] // PCE-D122: OutData[4] // PCE-D132: OutData[4] // PCE-D150: NotSupported // PCE-D105: OutData[10] 18

3.4. _d122_read_input_bit Get input status from specified BitNo input channel. I16 _d122_read_input_bit(u16 SwitchCardNo, U8 InBitNo, U8 *OnOff) Name Type SwitchCardNo U16 The rotary switch set number of the PCE-D122. InBitNo U8 BitNo of channel OnOff U8* On_Off = 1, Status of BitNo is ON On_Off = 0, Status of BitNo is OFF Note. // U8 InBitNo // PCE-D122: 0 ~ 31 // PCE-D132: 0 ~ 47 // PCE-D150: 0 ~ 79 // PCE-D105: NotSupported 19

3.5. _d122_read_output_bit Get input status from specified BitNo output channel. I16 _d122_read_output_bit(u16 SwitchCardNo, U8 OutBitNo, U8 *OnOff) Name Type SwitchCardNo U16 The rotary switch set number of the PCE-D122. OutBitNo U8 BitNo of channel OnOff U8* On_Off = 1, Status of BitNo is ON On_Off = 0, Status of BitNo is OFF Note. // U8 OutBitNo // PCE-D122: 0 ~ 31 // PCE-D132: 0 ~ 31 // PCE-D150: NotSupported // PCE-D105: 0 ~ 79 20

3.6. _d122_write_output_bit Generate output signal to specified BitNo output channel. I16 _d122_write_output_bit(u16 SwitchCardNo, U8 BitNo, U8 OnOff) Name Type SwitchCardNo U16 The rotary switch set number of the PCE-D122. OutBitNo U8 BitNo of channel OnOff U8 On_Off = 1, Status of BitNo is ON On_Off = 0, Status of BitNo is OFF Note. // U8 OutBitNo // PCE-D122: 0 ~ 31 // PCE-D132: 0 ~ 31 // PCE-D150: NotSupported // PCE-D105: 0 ~ 79 21

3.7. _d122_toggle_output_bit Toggle the specified BitNo output channel signal. I16 _d122_toggle_output_bit(u16 SwitchCardNo, U8 BitNo) Name Type SwitchCardNo U16 The rotary switch set number of the PCE-D122. OutBitNo U8 BitNo of channel Note. // U8 OutBitNo // PCE-D122: 0 ~ 31 // PCE-D132: 0 ~ 31 // PCE-D150: NotSupported // PCE-D105: 0 ~ 79 22

3.8. _d122_read_port Get input status from specified input or output port. I16 _d122_read_port(u16 SwitchCardNo, U8 PortNo, U8 *Value) Name Type SwitchCardNo U16 The rotary switch set number of the PCE-D122. PortNo U8 Port No 0 ~ 7 Value U8* Return the status of the specified input or output port. Note. // U8 PortNo // PCE-D122: 0 ~ 7 // PCE-D132: 0 ~ 9 // PCE-D150: 0 ~ 9 // PCE-D105: 0 ~ 9 // // D122 D132 D150 D105 // Port0: DI[ 0.. 7] DI[ 0.. 7] DI[ 0.. 7] DO[ 0.. 7] // Port1: DI[ 8..15] DI[ 8..15] DI[ 8..15] DO[ 8..15] // Port2: DI[16..23] DI[16..23] DI[16..23] DO[16..23] // Port3: DI[24..31] DI[24..31] DI[24..31] DO[24..31] // Port4: DO[ 0.. 7] DI[32..39] DI[32..39] DO[32..39] // Port5: DO[ 8..15] DI[40..47] DI[40..47] DO[40..47] // Port6: DO[16..23] DO[ 0.. 7] DI[48..55] DO[48..55] // Port7: DO[24..31] DO[ 8..15] DI[56..63] DO[56..63] // Port8: DO[16..23] DI[64..71] DO[64..71] // Port9: DO[24..31] DI[72..79] DI[72..79] 23

3.9. _d122_write_port Generate output signal to specified output port. I16 _d122_write_port(u16 SwitchCardNo, U8 PortNo, U8 Value) Name Type SwitchCardNo U16 The rotary switch set number of the PCE-D122. PortNo U8 Port No 4 ~ 7 Value U8 Set the status of the specified output port. Note. // U8 PortNo // PCE-D122: 0 ~ 7 // PCE-D132: 0 ~ 9 // PCE-D150: 0 ~ 9 // PCE-D105: 0 ~ 9 // // D122 D132 D150 D105 // Port0: DI[ 0.. 7] DI[ 0.. 7] DI[ 0.. 7] DO[ 0.. 7] // Port1: DI[ 8..15] DI[ 8..15] DI[ 8..15] DO[ 8..15] // Port2: DI[16..23] DI[16..23] DI[16..23] DO[16..23] // Port3: DI[24..31] DI[24..31] DI[24..31] DO[24..31] // Port4: DO[ 0.. 7] DI[32..39] DI[32..39] DO[32..39] // Port5: DO[ 8..15] DI[40..47] DI[40..47] DO[40..47] // Port6: DO[16..23] DO[ 0.. 7] DI[48..55] DO[48..55] // Port7: DO[24..31] DO[ 8..15] DI[56..63] DO[56..63] // Port8: DO[16..23] DI[64..71] DO[64..71] // Port9: DO[24..31] DI[72..79] DI[72..79] 24

4. Appendix A Error Codes 0 ERR_InvalidSwitchCardNumber -1 ERR_SwitchCardNumberRepeated -2 ERR_MapMemoryFailed -3 ERR_CardNotExist -4 ERR_InvalidBoardID -5 ERR_InvalidParameter1-6 ERR_InvalidParameter2-7 ERR_InvalidParameter3-8 ERR_InvalidParameter4-9 ERR_InvalidParameter5-10 ERR_InvalidParameter6-11 ERR_InvalidParameter7-12 ERR_InvalidParameter8-13 ERR_InvalidParameter9-14 D122ERR_NotSupported -15 25