Advantech PCI-1682U Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Nein Advantech PCI-1682U herunter. Advantech PCI-1682U User manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 104
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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
Seitenansicht 0
1 2 3 4 5 6 ... 103 104

Inhaltsverzeichnis

Seite 1 - PCI-1682U

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

Seite 2 - Product Warranty (2 years)

PCI-1680U/1682U User Manual 4

Seite 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

Seite 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

Seite 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

Seite 6

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

Seite 7 - Chapter 1

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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.

Seite 13 - Chapter 2 Install WDM driver

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

Seite 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

Seite 15

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

Seite 16

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

Seite 17

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

Seite 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.

Seite 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

Seite 20 - 2.1.3 Port setup

PCI-1680U/1682U User Manual 16

Seite 21

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

Seite 22

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

Seite 23 - Chapter 3

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

Seite 24 - 3.1 Initial Inspection

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

Seite 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

Seite 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

Seite 27 - 3.3 Card Installation

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

Seite 28

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

Seite 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

Seite 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

Seite 31

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

Seite 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

Seite 33 - 4.3 Introduction to API

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

Seite 34

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

Seite 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

Seite 36

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

Seite 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

Seite 38

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

Seite 39

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

Seite 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

Seite 41

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

Seite 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

Seite 43

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

Seite 44

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

Seite 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

Seite 46

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

Seite 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

Seite 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

Seite 49

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

Seite 50 - 4.3.9 ClearCommError

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

Seite 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

Seite 52 - 4.3.10 GetOverlappedResult

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

Seite 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

Seite 54 - 4.4 Structure List

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

Seite 55 - 4.4.1 canmsg_t

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

Seite 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

Seite 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

Seite 58

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

Seite 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/******

Seite 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

Seite 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...

Seite 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.

Seite 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

Seite 64

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

Seite 65

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

Seite 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

Seite 67

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

Seite 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

Seite 69

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

Seite 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

Seite 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)

Seite 72

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

Seite 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

Seite 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 =

Seite 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

Seite 76

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

Seite 77

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

Seite 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

Seite 79

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

Seite 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

Seite 81

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

Seite 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

Seite 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

Seite 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

Seite 85

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

Seite 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

Seite 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

Seite 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

Seite 89 - 4.8.2 Flow Chart

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

Seite 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

Seite 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

Seite 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

Seite 93

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

Seite 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

Seite 95 - 4.10.1 Function Introduction

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

Seite 96 - Menu Introduction

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

Seite 97

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

Seite 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

Seite 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

Seite 100

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

Seite 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

Seite 102 - 5.2 Wiring

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

Seite 103

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

Seite 104

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

Kommentare zu diesen Handbüchern

Keine Kommentare