ADLINK PCI-7841, cPCI-7841 User Manual

NuCOM©
PCI-7841/cPCI-7841/PM-7841
Dual-Port Isolated CAN Interface Card
User’s Manual
Manual Rev. 3.00
Revision Date: June 28, 2006
Part No: 50-11109-1010
Advance Technologies; Automate the World.
All Rights Reserved.
The information in this document is subject to change without prior notice in order to improve reliability, design, and function and does not represent a commitment on the part of the manufacturer.
In no event will the manufacturer be liable for direct, indirect, spe­cial, incidental, or consequential damages arising out of the use or inability to use the product or documentation, even if advised of the possibility of such damages.
This document contains proprietary information protected by copy­right. All rights are reserved. No part of this manual may be repro­duced by any mechanical, electronic, or other means in any form without prior written permission of the manufacturer.
Trademarks
NuDAQ, NuIPC, DAQBench are registered trademarks of ADLINK TECHNOLOGY INC.
Product names mentioned herein are used for identification pur­poses only and may be trademarks and/or registered trademarks of their respective companies.
Getting Service from ADLINK
Customer Satisfaction is top priority for ADLINK Technology Inc. Please contact us should you require any service or assistance.
ADLINK TECHNOLOGY INC.
Web Site: http://www.adlinktech.com
Sales & Service: Service@adlinktech.com
TEL: +886-2-82265877
FAX: +886-2-82265717
Address: 9F, No. 166, Jian Yi Road, Chungho City,
Taipei, 235 Taiwan
Please email or FAX this completed service form for prompt and satisfactory service.
Company Information
Company/Organization
Contact Person
E-mail Address
Address
Country
TEL FAX:
Web Site
Product Information
Product Model
OS:
Environment
M/B: CPU: Chipset: BIOS:
Please give a detailed description of the problem(s):

Table of Contents

Table of Contents..................................................................... i
List of Tables.......................................................................... iii
List of Figures ........................................................................ iv
1 Introduction ........................................................................ 1
1.1 PCI/cPCI/PM-7841 Features ............................................... 1
1.2 Applications ......................................................................... 3
1.3 Specifications....................................................................... 4
2 Installation .......................................................................... 7
2.1 Before Installing the PCI/cPCI/PM-7841.............................. 7
2.2 Installing PCI-7841 .............................................................. 7
2.3 Installing cPCI-7841............................................................. 9
2.4 Installing PM-7841 ............................................................. 10
2.5 Jumper and DIP Switch Description .................................. 12
2.6 Base Address Setting ........................................................ 12
2.7 IRQ Level Setting............................................................... 14
3 Function Reference.......................................................... 15
3.1 Functions Table ................................................................. 15
PORT_STRUCT structure define ................................. 16
CAN_PACKET structure define .................................... 18
Members ....................................................................... 18
DEVICENET_PACKET structure define ....................... 19
Members ....................................................................... 19
3.2 CAN LAYER Functions...................................................... 20
CAN-layer Card Initialization Functions ........................ 20
PM7841_Install(base, irq_chn, 0xd000) ....................... 20
GetDriverVersion() ........................................................ 20
CanOpenDriver() .......................................................... 21
CanCloseDriver() .......................................................... 21
CanConfigPort() ............................................................ 22
CanDetectBaudrate() .................................................... 23
CanRead() .................................................................... 24
CanWrite() .................................................................... 24
CAN-layer I/O Functions ............................................... 24
Table of Contents i
CanEnableReceive() ..................................................... 24
CanDisableReceive() .................................................... 25
CanSendMsg() .............................................................. 25
CanRcvMsg() ................................................................ 26
CAN-layer Status Functions ......................................... 27
CanClearOverrun() ....................................................... 27
CanClearRxBuffer() ...................................................... 28
CanClearTxBuffer() ....................................................... 28
CanGetErrorCode() ...................................................... 29
CanSetErrorWarningLimit() .......................................... 31
CanGetErrorWarningLimit() .......................................... 32
CanGetRxErrorCount() ................................................. 32
CanGetTxErrorCount() ................................................. 33
CanSetTxErrorCount() .................................................. 33
CanGetPortStatus() ...................................................... 34
CanGetLedStatus() ....................................................... 35
CanSetLedStatus() ....................................................... 35
CanGetRcvCnt() ........................................................... 36
Error and Event Handling Functions ............................. 37
CanInstallCallBack() ..................................................... 37
CanRemoveCallBack() ................................................. 38
CanCloseDriver(handle); .............................................. 40
CanGetReceiveEvent() ................................................. 40
CanInstallEvent() .......................................................... 41
Warranty Policy ..................................................................... 43
ii Table of Contents

List of Tables

Table 1-1: PCI-7841 Specifications ........................................... 4
Table 1-2: cPCI-7841 Specifications ......................................... 4
Table 1-3: PM-7841 Specifications ............................................ 5
List of Tables iii

List of Figures

Figure 2-1: Default Base Address Configuration........................ 13
Figure 2-2: IRQ Settings ............................................................ 14
iv List of Figures

1 Introduction

The PCI/cPCI/PM-7841 is a Controller Area Network (CAN) inter­face card used for industrial PC with PCI, Compact-PCI, and PC104 bus. It supports dual ports CAN’s interface that can run independently or bridged at the same time. The built-in CAN con­troller provides bus arbitration and error detection with auto cor­rection and re-transmission function. The PCI cards are plug and play therefore it is not necessary to set any jumper for matching the PC environment.
The CAN (Controller Area Network) is a serial bus system origi­nally developed by Bosch for use in automobiles, is increasing being used in industry automation. It multi-master protocol, real­time capability, error correction and high noise immunity make it especially suited for intelligent I/O devices control network.
The PCI/cPCI/PM-7841 is programmed by using the ADLINK‘s software library. The programming of this PCI card is as easy as AT bus add-on cards.

1.1 PCI/cPCI/PM-7841 Features

The PCI-7841 is a Dual-Port Isolated CAN Interface Card with the following features:
X Two independent CAN network operation
X Bridge function supports
X Compatible with CAN specification 2.0 parts A and B
X Optically isolated CAN interface up to 2500 Vrms isolation
protection
X Direct memory mapping to the CAN controllers
X Powerful master interface for CANopen, DeviceNet and
SDS application layer protocol
X Up to 1Mbps programmable transfer rate
X Supports standard DeviceNet data rates 125, 250 and 500
Kbps
X PCI bus plug and play
X DOS library and examples included
Introduction 1
The cPCI-7841 is a Dual-Port Isolated CAN Interface Card with the following features:
X Two independent CAN network operation
X Bridge function supports
X Compatible with CAN specification 2.0 parts A and B
X Optically isolated CAN interface up to 2500 Vrms isolation
protection
X Direct memory mapping to the CAN controllers
X Powerful master interface for CANopen, DeviceNet and
SDS application layer protocol
X Up to 1Mbps programmable transfer rate
X Supports standard DeviceNet data rates 125, 250 and 500
Kbps
X PCI bus plug and play
X compact-PCI industry bus
X DOS library and examples included
The PM-7841 is a Dual-Port Isolated CAN Interface Card with the following features:
X Two independent CAN network operation
X Bridge function supports
X Compatible with CAN specification 2.0 parts A and B
X Optically isolated CAN interface up to 2500 Vrms isolation
protection
X Direct memory mapping to the CAN controllers
X Powerful master interface for CANopen, DeviceNet and
SDS application layer protocol
X Up to 1Mbps programmable transfer rate
X Supports standard DeviceNet data rates 125, 250 and 500
Kbps
X DIP-Switch for base address configuration
X Software Programmable Memory-Mapped Address
X PC-104 industry form factor
X DOS library and examples included
2Introduction

1.2 Applications

X Industry automation
X Industry process monitoring and control
X Manufacture automation
X Product testing
Introduction 3

1.3 Specifications

PCI-7841 Specification Table
Ports 2 CAN channels (V2.0 A,B)
CAN Controller SJA1000
CAN Transceiver 82c250
Signal Support CAN_H, CAN_L
Isolation Voltage 2500 Vrms
Connectors Dual DB-9 male connectors
Operation Temperature
Storage Temperature
Humidity 5% ~ 95% non-condensing
IRQ Level Set by Plug and Play BIOS
I/O port address Set by Plug and Play BIOS
Power Consumption
(without external devices)
Size 132(L)mm x 98(H)mm
Table 1-1: PCI-7841 Specifications
cPCI-7841 Specification Table
Ports 2 CAN channels (V2.0 A,B)
CAN Controller SJA1000
CAN Transceiver 82c250
Signal Support CAN_H, CAN_L
Isolation Voltage 2500 Vrms
Connectors Dual male connectors
Operation Temperature
Storage Temperature
Humidity 5% ~ 95% non-condensing
IRQ Level Set by Plug and Play BIOS
I/O port address Set by Plug and Play BIOS
Power Consumption
(without external devices)
Table 1-2: cPCI-7841 Specifications
0 ~ 60
°C
-20°C ~ 80°C
400mA @5VDC ( Typical)
900mA @5VDC ( Maximum)
0 ~ 60
°C
-20
°C ~ 80°C
400mA @5VDC ( Typical)
900mA @5VDC ( Maximum)
4Introduction
Size 132(L)mm x 98(H)mm
Table 1-2: cPCI-7841 Specifications
PM-7841 Specification Table
Ports 2 CAN channels (V2.0 A,B)
CAN Controller SJA1000
CAN Transceiver 82c250/82c251
Signal Support CAN_H, CAN_L
Isolation Voltage 1000 Vrms
Connectors Dual 5 male connectors
Operation Temperature
Storage Temperature
Humidity 5% ~ 95% non-condensing
IRQ Level Set by Jumper
I/O port address Set by DIP Switch
Memory Mapped Space 128 Bytes by Software
Power Consumption
(without external devices)
Size 90.17(L)mm x 95.89(H)mm
Table 1-3: PM-7841 Specifications
0 ~ 60
°C
-20
°C ~ 80°C
400mA @5VDC ( Typical)
900mA @5VDC ( Maximum)
Introduction 5
6Introduction

2 Installation

This chapter describes how to install the PCI/cPCI/PM-7841. At first, the contents in the package and unpacking information that you should be careful are described.

2.1 Before Installing the PCI/cPCI/PM-7841

Your PCI/cPCI/PM-7841 card contains sensitive electronic compo­nents that can be easily damaged by static electricity.
The card should be done on a grounded anti-static mat. The oper­ator should be wearing an anti-static wristband, grounded at the same point as the anti-static mat.
Inspect the card module carton for obvious damage. Shipping and handling may cause damage to your module. Be sure there are no shipping and handing damages on the module before processing.
After opening the card module carton, exact the system module and place it only on a grounded anti-static surface component side up.
Note: DO NOT APPLY POWER TO THE CARD IF IT HAS BEEN
DAMAGED.
You are now ready to install your PCI/cPCI/PM-7841.

2.2 Installing PCI-7841

What you have:
In addition to this User's Manual, the package includes the follow­ing items:
X PCI-7841 Dual Port PCI Isolated CAN Interface Card
X ADLINK CD-ROM
If any of these items is missing or damaged, contact the dealer from whom you purchased the product. Save the shipping materi­als and carton in case you want to ship or store the product in the future.
Installation 7
PCI-7841 Layout:
Terminator Configuration
A 120 Ohm terminal resistor is installed for each port, while JP1 enables the terminal resistor for port0 and JP2 enables the termi­nal resistor for port 1
Connector Pin Definition
P3 and P4 are CAN connectors; pin definition is as follows:
8Installation
Loading...
+ 36 hidden pages