User ManualPCI-1680U2-Port CAN Interface Universal PCI Communication Card w/ IsolationPCI-1682U2-port CAN Interface Universal PCI Communication Card w
PCI-1680U/1682U User Manual 4
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
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
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
97 PCI-1680U/1682U User ManualChapter 5 Pin Assignments and Wiring
www.advantech.com.cnPlease verify specifications before quoting. This guide is intended for referencepurposes only.All product specifications are subj
Chapter 22 Install WDM driverThis chapter shows how to install WDM driver.Sections include: PCI device setup ISA device setup Port setup Device se
PCI-1680U/1682U User Manual 62.1 Begin to use Advantech CAN device driverThe following chart shows procedures of developing applications with Advantec
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
PCI-1680U/1682U User Manual 83. Click "Finish" as the following. 2.1.2 ISA device setupThe following installation procedures are for ISA dev
9 PCI-1680U/1682U User ManualChapter 2 Install WDM driver3. Click "Next" as the following. 4. Click "Next" as the following.
PCI-1680U/1682U User Manual 105. Click "Next" as the following. 6. Click "Next" as the following.
11 PCI-1680U/1682U User ManualChapter 2 Install WDM driver7. Click "Have Disk...". 8. Suppose inf file is installed under C:\Program Files\A
PCI-1680U/1682U User Manual 129. Click "Next" as the following. 10. When the installation is complete, click "View or change resources
13 PCI-1680U/1682U User ManualChapter 2 Install WDM driver11. Select "Set Configuration Manually". 12. Configure according to your hardware.
PCI-1680U/1682U User Manual iiCopyrightThe documentation and the software included with this product are copyrighted 2010by Advantech Co., Ltd. All ri
PCI-1680U/1682U User Manual 142.1.3 Port setupWhen bus driver is installed, users can install port driver AdvCanPort.sys accordingto the instructions.
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
PCI-1680U/1682U User Manual 16
Chapter 33 Hardware InstallationThis chapter covers inspection and installation of hardware and drivers.Sections include: Initial inspection Jumper
PCI-1680U/1682U User Manual 183.1 Initial InspectionYou should find the following items inside the shipping package: PCI communication interface card
19 PCI-1680U/1682U User ManualChapter 3 Hardware Installation3.2 Jumper Locations & SettingFigure 3.1 PCI-1680U Silk Screen
PCI-1680U/1682U User Manual 20Figure 3.2 PCI-1682U Silk Screen
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
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
Chapter 44 Software RequirementsThis chapter has information on the software of PCI-1680U/1682U.
iii PCI-1680U/1682U User Manual Declaration of ConformityCEThis product has passed the CE test for environmental specifications when shieldedcables ar
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
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
PCI-1680U/1682U User Manual 26Hardware SupportUsers of Windows CE can refer to Guide for developing applicationsReferences"SJA1000 Standard-alone
27 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.3 Introduction to API Main API used in current development are:Only brief introduction
PCI-1680U/1682U User Manual 28ParametersReturn ValueSuccessful, return effective HANDLE. Unsuccessful, return INVALID_HANLDLE_VALUE. ExampleSynchronou
29 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.3.2 CloseHandleClose the port by calling this function when operation is completed.Synt
PCI-1680U/1682U User Manual 30Parameters Return ValueSuccessful: return non-zero values. Unsuccessful: return zero value. Please call Get-LastError fu
31 PCI-1680U/1682U User ManualChapter 4 Software RequirementsbSuccess = DeviceIoControl (hDevice,CAN_IOCTL_CONFIG,&config,sizeof(Command_par),NULL
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
33 PCI-1680U/1682U User ManualChapter 4 Software Requirements);if(!bSuccess){//error}Set listen only mode: DWORD dwReturned;Command_par_t cmd;Config_
PCI-1680U/1682U User Manual ivSafety Precaution - Static ElectricityFollow these simple precautions to protect yourself from harm and the products fro
PCI-1680U/1682U User Manual 34sizeof(Command_par),NULL,0,&dwReturned,NULL);if(!bSuccess){//error}Reset chip: DWORD dwReturned;Command_par_t cmd;cm
35 PCI-1680U/1682U User ManualChapter 4 Software RequirementsClear receive buffer: DWORD dwReturned;Command_par_t cmd;cmd.cmd = CMD_CLEARBUFFERS;BOOL
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
37 PCI-1680U/1682U User ManualChapter 4 Software RequirementsReturn ValueIt will be considered successful if non-zero values are returned in the follo
PCI-1680U/1682U User Manual 38 { //receive buffer overflow } if(ReadBuffer.flags & MSG_BUSOFF) {
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
PCI-1680U/1682U User Manual 40In asynchronous mode, operation will be pending if drivers cannot complete user'swrite request at present, and GetL
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
PCI-1680U/1682U User Manual 424.3.7 GetCommMaskUsers can call GetCommMask to get event type set in SetCommMask.SyntaxBOOL GetCommMask( HANDLE hDevice
43 PCI-1680U/1682U User ManualChapter 4 Software RequirementsReturn ValueSuccessful: return non-zero values. Unsuccessful: return zero value. Please c
v PCI-1680U/1682U User Manual ContentsChapter 1 Introduction...11.1 Description ...
PCI-1680U/1682U User Manual 444.3.9 ClearCommErrorWhen error occurs, users can use ClearCommError to get the specific type of error.SyntaxBOOL ClearCo
45 PCI-1680U/1682U User ManualChapter 4 Software RequirementsExampleWait event in synchronous mode.DWORD dwMask;BOOL bSuccess = WaitCommEvent(hDevice,
PCI-1680U/1682U User Manual 464.3.10 GetOverlappedResultWhen user's operation cannot be finished immediately in asynchronous mode, thisfunction s
47 PCI-1680U/1682U User ManualChapter 4 Software Requirements if (hDevice == INVALID_HANDLE_VALUE) { // Handle the error. printf
PCI-1680U/1682U User Manual 48 } } else { DWORD dwRet = GetLastError(); if( ERROR_IO_PENDING == dwRet) {
49 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.4.1 canmsg_tWhen users directly use ReadFile or WriteFile interface of Windows Native A
PCI-1680U/1682U User Manual 504.4.2 CanStatusPar_tDeviceIOControl's parameter dwIoControlCode is CAN_IOCTL_STATUS(0x222554). It uses this structu
51 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.4.3 Command_parWhen users directly use DeviceIOControl interface of Windows Native API
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/******
53 PCI-1680U/1682U User ManualChapter 4 Software RequirementsUser can also refer to receive and send examples for details usage.How to calculate BTR0
PCI-1680U/1682U User Manual vi4.5.4 How to dispose received messages. ... 554.6 Acceptance filtering...
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.
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
PCI-1680U/1682U User Manual 56 //self reception } if(ReadBuffer.flags & MSG_BOVR) { //receive buffer o
57 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.6 Acceptance filteringAcceptance code corresponds to 4 registers: ACR0, ACR1, ACR2, ACR
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
59 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.7 Advantech CAN Windows WDM&CE Driver application development guideUsers can direct
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
61 PCI-1680U/1682U User ManualChapter 4 Software RequirementsWrite code in empty source file.#include <stdio.h>#include <windows.h>#includ
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
63 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.7.2.2 Add files and design graphical interfaces1. Add Include header files (AdvCan.bas)
Chapter 11 IntroductionThis chapter provides a general description of the PCI-1680U and PCI-1682U.Sections include: Description Features Specificat
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
65 PCI-1680U/1682U User ManualChapter 4 Software Requirements End If TextBox1.Text = "Baud rate= " + CStr(Status.baud) TextBox2.Text =
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
67 PCI-1680U/1682U User ManualChapter 4 Software Requirements2. Design graphical interfaces. Add one Button and six Text controls to Form1.
PCI-1680U/1682U User Manual 684.7.3.3 Write codeWrite code in source file.#include <windows.h>#include "../../../Include/AdvCan.h"priv
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
PCI-1680U/1682U User Manual 70Please follow the following procedures to create a new VB.NET project:1. Select "File"->"New"->
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
PCI-1680U/1682U User Manual 72 TextBox2.Text = "Accept code = " & Hex(status.acceptance-code) TextBox3.Text = "Mask code = &quo
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
PCI-1680U/1682U User Manual 21.1 DescriptionPCI-1680U/1682U is special purpose communication card that offers connectivity toController Area Networks
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
75 PCI-1680U/1682U User ManualChapter 4 Software Requirements2. Design graphical interfaces. Add one Button and six TextBox controls to Form1.
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
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
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
79 PCI-1680U/1682U User ManualChapter 4 Software Requirements WDM CE
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
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
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
83 PCI-1680U/1682U User ManualChapter 4 Software Requirements CE 4.8.2 Flow Chart4.8.2.1 Send flow chart
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
PCI-1680U/1682U User Manual 844.8.2.2 Receive flow chart
85 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.8.2.3 Configure flow chart
PCI-1680U/1682U User Manual 864.8.2.4 Event flow chartEither flow chart of the two sub threads is as below:
87 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.9 Use Utility to test hardwareAn Utility is provided for users to test whether hardware
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
89 PCI-1680U/1682U User ManualChapter 4 Software Requirements4.10.1 Function IntroductionThis section introduces the functions that CANMonitor support
PCI-1680U/1682U User Manual 904.10.2 Introduction to Main Items in Menu ScreenMenu IntroductionFileFile has the following functions:ViewView has the f
91 PCI-1680U/1682U User ManualChapter 4 Software RequirementsData FormatData Format has following setting:FunctionFunction has the following functions
PCI-1680U/1682U User Manual 92CANopenCANopen has the following functions:FilterFilter has CAN Filter settingand CANopen Filter setting.Name Function L
93 PCI-1680U/1682U User ManualChapter 4 Software RequirementsToolbar IntroductionStatus Bar IntroductionName Function New Open device Close Close Devi
Commentaires sur ces manuels