Advantech PCI-1682U Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Non Advantech PCI-1682U. Advantech PCI-1682U User manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 104
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
User Manual
PCI-1680U
2-Port CAN Interface Universal
PCI Communication Card w/
Isolation
PCI-1682U
2-port CAN Interface Universal
PCI Communication Card w/
CANopen
Vue de la page 0
1 2 3 4 5 6 ... 103 104

Résumé du contenu

Page 1 - PCI-1682U

User ManualPCI-1680U2-Port CAN Interface Universal PCI Communication Card w/ IsolationPCI-1682U2-port CAN Interface Universal PCI Communication Card w

Page 2 - Product Warranty (2 years)

PCI-1680U/1682U User Manual 4

Page 3 - Packing List

PCI-1680U/1682U User Manual 944.11 COTI.DLL for CANopen Conformance Test The COTI DLL allows users to use the CANopen Conformance Test Tool of CiA(CAN

Page 4

Chapter 55 Pin Assignments and WiringThis chapter covers the pin assignment for the CAN connec-tor, and the wiring of the two transmission wires.Secti

Page 5 - Contents

PCI-1680U/1682U User Manual 965.1 Pin AssignmentsFigure 5.1 shows the pin assignment for the card's DB-9 connectors:Figure 5.1 PCI-1680U/1682U DB

Page 6

97 PCI-1680U/1682U User ManualChapter 5 Pin Assignments and Wiring

Page 7 - Chapter 1

www.advantech.com.cnPlease verify specifications before quoting. This guide is intended for referencepurposes only.All product specifications are subj

Page 8 - 1.2 Features

Chapter 22 Install WDM driverThis chapter shows how to install WDM driver.Sections include: PCI device setup ISA device setup Port setup Device se

Page 9 - Chapter 1 Introduction

PCI-1680U/1682U User Manual 62.1 Begin to use Advantech CAN device driverThe following chart shows procedures of developing applications with Advantec

Page 10 - PCI-1680U/1682U User Manual 4

7 PCI-1680U/1682U User ManualChapter 2 Install WDM driver2.1.1 PCI device setup The following installation procedures are for PCI devices.Take PCI-168

Page 11 - Chapter 2

PCI-1680U/1682U User Manual 83. Click "Finish" as the following. 2.1.2 ISA device setupThe following installation procedures are for ISA dev

Page 12 - PCI-1680U/1682U User Manual 6

9 PCI-1680U/1682U User ManualChapter 2 Install WDM driver3. Click "Next" as the following. 4. Click "Next" as the following.

Page 13 - Chapter 2 Install WDM driver

PCI-1680U/1682U User Manual 105. Click "Next" as the following. 6. Click "Next" as the following.

Page 14 - 2.1.2 ISA device setup

11 PCI-1680U/1682U User ManualChapter 2 Install WDM driver7. Click "Have Disk...". 8. Suppose inf file is installed under C:\Program Files\A

Page 15

PCI-1680U/1682U User Manual 129. Click "Next" as the following. 10. When the installation is complete, click "View or change resources

Page 16

13 PCI-1680U/1682U User ManualChapter 2 Install WDM driver11. Select "Set Configuration Manually". 12. Configure according to your hardware.

Page 17

PCI-1680U/1682U User Manual iiCopyrightThe documentation and the software included with this product are copyrighted 2010by Advantech Co., Ltd. All ri

Page 18

PCI-1680U/1682U User Manual 142.1.3 Port setupWhen bus driver is installed, users can install port driver AdvCanPort.sys accordingto the instructions.

Page 19

15 PCI-1680U/1682U User ManualChapter 2 Install WDM driver2.1.4 Device setupUsers can set the device in "Windows Device Manager".1. When dri

Page 20 - 2.1.3 Port setup

PCI-1680U/1682U User Manual 16

Page 21

Chapter 33 Hardware InstallationThis chapter covers inspection and installation of hardware and drivers.Sections include: Initial inspection Jumper

Page 22

PCI-1680U/1682U User Manual 183.1 Initial InspectionYou should find the following items inside the shipping package: PCI communication interface card

Page 23 - Chapter 3

19 PCI-1680U/1682U User ManualChapter 3 Hardware Installation3.2 Jumper Locations & SettingFigure 3.1 PCI-1680U Silk Screen

Page 24 - 3.1 Initial Inspection

PCI-1680U/1682U User Manual 20Figure 3.2 PCI-1682U Silk Screen

Page 25

21 PCI-1680U/1682U User ManualChapter 3 Hardware Installation3.2.1 How to Set JumpersYou configure your card to match the needs of your application by

Page 26

PCI-1680U/1682U User Manual 2212. Press the board firmly into the socket.13. Replace the screw in the expansion slot's retaining bracket. 14. Rep

Page 27 - 3.3 Card Installation

Chapter 44 Software RequirementsThis chapter has information on the software of PCI-1680U/1682U.

Page 28

iii PCI-1680U/1682U User Manual Declaration of ConformityCEThis product has passed the CE test for environmental specifications when shieldedcables ar

Page 29 - Chapter 4

PCI-1680U/1682U User Manual 244.1 IntroductionPCI-1680U/1682U and PCL-841 are Isolated Dual-port CAN communication cards.Each provides two isolated CA

Page 30 - WDM&CE Driver

25 PCI-1680U/1682U User ManualChapter 4 Software RequirementsCAN 2.0A and CAN 2.0BCAN2.0 Spec. includes CAN 2.0A and CAN 2.0B. CAN 2.0A supports stand

Page 31

PCI-1680U/1682U User Manual 26Hardware SupportUsers of Windows CE can refer to Guide for developing applicationsReferences"SJA1000 Standard-alone

Page 32 - Table 4.1: Hardware Support

27 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.3 Introduction to API Main API used in current development are:Only brief introduction

Page 33 - 4.3 Introduction to API

PCI-1680U/1682U User Manual 28ParametersReturn ValueSuccessful, return effective HANDLE. Unsuccessful, return INVALID_HANLDLE_VALUE. ExampleSynchronou

Page 34

29 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.3.2 CloseHandleClose the port by calling this function when operation is completed.Synt

Page 35 - 4.3.3 DeviceIoControl

PCI-1680U/1682U User Manual 30Parameters Return ValueSuccessful: return non-zero values. Unsuccessful: return zero value. Please call Get-LastError fu

Page 36

31 PCI-1680U/1682U User ManualChapter 4 Software RequirementsbSuccess = DeviceIoControl (hDevice,CAN_IOCTL_CONFIG,&config,sizeof(Command_par),NULL

Page 37

PCI-1680U/1682U User Manual 32//error}config.target = CONF_ACC_FILTER;config.val1 = 1; //1: set single filter mode; 0: set dualfilter modebSuccess = D

Page 38

33 PCI-1680U/1682U User ManualChapter 4 Software Requirements);if(!bSuccess){//error}Set listen only mode: DWORD dwReturned;Command_par_t cmd;Config_

Page 39

PCI-1680U/1682U User Manual ivSafety Precaution - Static ElectricityFollow these simple precautions to protect yourself from harm and the products fro

Page 40

PCI-1680U/1682U User Manual 34sizeof(Command_par),NULL,0,&dwReturned,NULL);if(!bSuccess){//error}Reset chip: DWORD dwReturned;Command_par_t cmd;cm

Page 41

35 PCI-1680U/1682U User ManualChapter 4 Software RequirementsClear receive buffer: DWORD dwReturned;Command_par_t cmd;cmd.cmd = CMD_CLEARBUFFERS;BOOL

Page 42 - 4.3.4 ReadFile

PCI-1680U/1682U User Manual 364.3.4 ReadFileUsers can use this interface to read data from CAN port which was opened. One ormore frames can be selecte

Page 43

37 PCI-1680U/1682U User ManualChapter 4 Software RequirementsReturn ValueIt will be considered successful if non-zero values are returned in the follo

Page 44

PCI-1680U/1682U User Manual 38 { //receive buffer overflow } if(ReadBuffer.flags & MSG_BUSOFF) {

Page 45 - 4.3.5 WriteFile

39 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.3.5 WriteFileUsers can use this interface to send data to CAN port which was opened. On

Page 46

PCI-1680U/1682U User Manual 40In asynchronous mode, operation will be pending if drivers cannot complete user'swrite request at present, and GetL

Page 47 - 4.3.6 SetCommMask

41 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.3.6 SetCommMaskUsers can use this interface to set event for CAN port.Users have to cal

Page 48 - 4.3.8 WaitCommEvent

PCI-1680U/1682U User Manual 424.3.7 GetCommMaskUsers can call GetCommMask to get event type set in SetCommMask.SyntaxBOOL GetCommMask( HANDLE hDevice

Page 49

43 PCI-1680U/1682U User ManualChapter 4 Software RequirementsReturn ValueSuccessful: return non-zero values. Unsuccessful: return zero value. Please c

Page 50 - 4.3.9 ClearCommError

v PCI-1680U/1682U User Manual ContentsChapter 1 Introduction...11.1 Description ...

Page 51

PCI-1680U/1682U User Manual 444.3.9 ClearCommErrorWhen error occurs, users can use ClearCommError to get the specific type of error.SyntaxBOOL ClearCo

Page 52 - 4.3.10 GetOverlappedResult

45 PCI-1680U/1682U User ManualChapter 4 Software RequirementsExampleWait event in synchronous mode.DWORD dwMask;BOOL bSuccess = WaitCommEvent(hDevice,

Page 53 - ov.OffsetHigh = 0;

PCI-1680U/1682U User Manual 464.3.10 GetOverlappedResultWhen user's operation cannot be finished immediately in asynchronous mode, thisfunction s

Page 54 - 4.4 Structure List

47 PCI-1680U/1682U User ManualChapter 4 Software Requirements if (hDevice == INVALID_HANDLE_VALUE) { // Handle the error. printf

Page 55 - 4.4.1 canmsg_t

PCI-1680U/1682U User Manual 48 } } else { DWORD dwRet = GetLastError(); if( ERROR_IO_PENDING == dwRet) {

Page 56 - 4.4.2 CanStatusPar_t

49 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.4.1 canmsg_tWhen users directly use ReadFile or WriteFile interface of Windows Native A

Page 57 - 4.4.3 Command_par

PCI-1680U/1682U User Manual 504.4.2 CanStatusPar_tDeviceIOControl's parameter dwIoControlCode is CAN_IOCTL_STATUS(0x222554). It uses this structu

Page 58

51 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.4.3 Command_parWhen users directly use DeviceIOControl interface of Windows Native API

Page 59

PCI-1680U/1682U User Manual 52The following code is the example to custom baud rate by setting BTR0 andBTR1 device register.AdvCANIO.h Line:269/******

Page 60 - 4.5 How to dispose message

53 PCI-1680U/1682U User ManualChapter 4 Software RequirementsUser can also refer to receive and send examples for details usage.How to calculate BTR0

Page 61 - 4.5.3 How to send RTR frame

PCI-1680U/1682U User Manual vi4.5.4 How to dispose received messages. ... 554.6 Acceptance filtering...

Page 62

PCI-1680U/1682U User Manual 542. While configuring target, the following commands are supported:4.5 How to dispose messageCAN2.0 Spec. includes CAN 2.

Page 63 - 4.6 Acceptance filtering

55 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.5.2 How to send Extended frame, compatible with CAN 2.0B.DWORD dwWrite=0;canmsg_t Wr

Page 64

PCI-1680U/1682U User Manual 56 //self reception } if(ReadBuffer.flags & MSG_BOVR) { //receive buffer o

Page 65

57 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.6 Acceptance filteringAcceptance code corresponds to 4 registers: ACR0, ACR1, ACR2, ACR

Page 66

PCI-1680U/1682U User Manual 58Dual ModeDual filtering is more complicated than single filtering. In Dual filtering mode, 4 ACRsand 4 AMRs form two fil

Page 67

59 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.7 Advantech CAN Windows WDM&CE Driver application development guideUsers can direct

Page 68

PCI-1680U/1682U User Manual 604.7.1.2 Add necessary files1. Add Include header files (AdvCan.h) in Advantech CAN Windows WDM&CE Driver. In VC++ wo

Page 69

61 PCI-1680U/1682U User ManualChapter 4 Software RequirementsWrite code in empty source file.#include <stdio.h>#include <windows.h>#includ

Page 70

PCI-1680U/1682U User Manual 624.7.1.4 Test applicationRun the application, the following result will be displayed.4.7.2 Guide for Visual Basic develop

Page 71

63 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.7.2.2 Add files and design graphical interfaces1. Add Include header files (AdvCan.bas)

Page 72

Chapter 11 IntroductionThis chapter provides a general description of the PCI-1680U and PCI-1682U.Sections include: Description Features Specificat

Page 73

PCI-1680U/1682U User Manual 642. Design graphical interfaces. Add one Button and six Text controls to Form1.4.7.2.3 Write code1. Write corresponding c

Page 74 - Write code in source file

65 PCI-1680U/1682U User ManualChapter 4 Software Requirements End If TextBox1.Text = "Baud rate= " + CStr(Status.baud) TextBox2.Text =

Page 75

PCI-1680U/1682U User Manual 664.7.3 Guide for VC.NET developmentWe will give an example by opening a CAN port and reading its current status so asto s

Page 76

67 PCI-1680U/1682U User ManualChapter 4 Software Requirements2. Design graphical interfaces. Add one Button and six Text controls to Form1.

Page 77

PCI-1680U/1682U User Manual 684.7.3.3 Write codeWrite code in source file.#include <windows.h>#include "../../../Include/AdvCan.h"priv

Page 78

69 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.7.3.4 Test applicationRun the application, the following result will be displayed.4.7.4

Page 79

PCI-1680U/1682U User Manual 70Please follow the following procedures to create a new VB.NET project:1. Select "File"->"New"->

Page 80 - Driver

71 PCI-1680U/1682U User ManualChapter 4 Software Requirements2. Design graphical interfaces. Add one Button and six Text controls to Form1.4.7.4.3 Wri

Page 81

PCI-1680U/1682U User Manual 72 TextBox2.Text = "Accept code = " & Hex(status.acceptance-code) TextBox3.Text = "Mask code = &quo

Page 82 - 4.7.5.3 Write code

73 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.7.5 Guide for C# developmentWe will give an example by opening a CAN port and reading i

Page 83 - 4.8 Examples

PCI-1680U/1682U User Manual 21.1 DescriptionPCI-1680U/1682U is special purpose communication card that offers connectivity toController Area Networks

Page 84 - 4.8.1 Interface

PCI-1680U/1682U User Manual 744.7.5.2 Add files and design graphical interfaces1. Add Include header files (AdvCan.cs) in Advantech CAN Windows WDM&am

Page 85

75 PCI-1680U/1682U User ManualChapter 4 Software Requirements2. Design graphical interfaces. Add one Button and six TextBox controls to Form1.

Page 86

PCI-1680U/1682U User Manual 764.7.5.3 Write code1. Add the following code to Button:private void button1_Click(object sender, System.EventArgs e){ u

Page 87

77 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.7.5.4 Test applicationRun the application, the following result will be displayed.4.8 E

Page 88

PCI-1680U/1682U User Manual 78CE:4.8.1 Interface4.8.1.1 SendData is sent. Values of Baud Rate and timeout of the port can be set. Meanwhile, selfrecep

Page 89 - 4.8.2 Flow Chart

79 PCI-1680U/1682U User ManualChapter 4 Software Requirements WDM  CE

Page 90 - 4.8.2.2 Receive flow chart

PCI-1680U/1682U User Manual 804.8.1.2 ReceiveData is received. Values of Baud Rate and timeout of the port can be set. Please refer to Receive flow ch

Page 91 - 4.8.2.3 Configure flow chart

81 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.8.1.3 ConfigureUsers can set values of Baud Rate, Timeout of sending and receiving data

Page 92 - 4.8.2.4 Event flow chart

PCI-1680U/1682U User Manual 82 CE 4.8.1.4 EventThis function is similar to serial port communication, which send/receive data throughevents. Baud Rat

Page 93

83 PCI-1680U/1682U User ManualChapter 4 Software Requirements CE 4.8.2 Flow Chart4.8.2.1 Send flow chart

Page 94 - 4.10 CANMonitor

3 PCI-1680U/1682U User ManualChapter 1 Introduction1.3 Specifications Bus Interface: PCI bus spec. 2.2 compliant Ports: 2 Protocol: CAN 2.0 A/B Co

Page 95 - 4.10.1 Function Introduction

PCI-1680U/1682U User Manual 844.8.2.2 Receive flow chart

Page 96 - Menu Introduction

85 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.8.2.3 Configure flow chart

Page 97

PCI-1680U/1682U User Manual 864.8.2.4 Event flow chartEither flow chart of the two sub threads is as below:

Page 98 - Filter has CAN Filter setting

87 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.9 Use Utility to test hardwareAn Utility is provided for users to test whether hardware

Page 99 - Status Bar Introduction

PCI-1680U/1682U User Manual 884.10 CANMonitorCANMonitor can be used to monitor the messages in CAN network and to show themessages according to differ

Page 100

89 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.10.1 Function IntroductionThis section introduces the functions that CANMonitor support

Page 101 - Chapter 5

PCI-1680U/1682U User Manual 904.10.2 Introduction to Main Items in Menu ScreenMenu IntroductionFileFile has the following functions:ViewView has the f

Page 102 - 5.2 Wiring

91 PCI-1680U/1682U User ManualChapter 4 Software RequirementsData FormatData Format has following setting:FunctionFunction has the following functions

Page 103

PCI-1680U/1682U User Manual 92CANopenCANopen has the following functions:FilterFilter has CAN Filter settingand CANopen Filter setting.Name Function L

Page 104

93 PCI-1680U/1682U User ManualChapter 4 Software RequirementsToolbar IntroductionStatus Bar IntroductionName Function New Open device Close Close Devi

Commentaires sur ces manuels

Pas de commentaire