Peak Beam Systems PCAN-USB User Manual

Usb to can interface

Advertisement

Quick Links

PCAN-USB
USB to CAN Interface
User Manual
V2.0.4

Advertisement

Table of Contents
loading

Summary of Contents for Peak Beam Systems PCAN-USB

  • Page 1 PCAN-USB USB to CAN Interface User Manual V2.0.4...
  • Page 2 Galvanic isolation for CAN IPEH-002022 interface The cover picture shows the product PCAN-USB opto-decoupled. CANopen® and CiA® are registered community trade marks of CAN in Automation e.V. All other product names mentioned in this document may be the trademarks or registered trademarks of their respective companies.
  • Page 3: Table Of Contents

    PCAN-USB – User Manual Contents Introduction Properties at a Glance System Requirements Scope of Supply Installing the Software and the Adapter Connecting the CAN Bus D-Sub Connector Supplying External Devices via the CAN Connector Cabling 3.3.1 Termination 3.3.2 Example of a Connection 3.3.3...
  • Page 4 PCAN-USB – User Manual Technical Specifications PCAN-USB Appendix A CE Certificate Appendix B Dimension Drawings Appendix C Quick Reference...
  • Page 5: Introduction

    PCAN-USB – User Manual Introduction The PCAN-USB adapter provides one CAN channel at computers with USB ports. Device drivers and programming interfaces exist for different operating systems, so programs can easily access a connected CAN bus. Tip: At the end of this manual (Appendix C) you can find a...
  • Page 6: System Requirements

    Extended operating temperature range from -40 to 85 °C (-40 to 185 °F) Note: This manual describes the use of PCAN-USB adapter with Windows. You can find device drivers for Linux and the corresponding application information on the provided CD in the directory branch Develop and on our website under www.peak-system.com/linux.
  • Page 7 PCAN-USB – User Manual PCAN-Basic programming interface consisting of an interface DLL, examples, and header files for all common programming languages Manual in PDF format...
  • Page 8: Installing The Software And The Adapter

    PCAN-USB – User Manual Installing the Software and the Adapter This chapter covers the software setup for the PCAN-USB adapter under Windows and the connection of the adapter to the computer. Setup the driver before connecting the PCAN-USB adapter to the computer for the first time.
  • Page 9 PCAN-USB – User Manual Do the following to connect the PCAN-USB adapter to the computer and complete the initialization: Note: Do not use a USB extension cable to connect the PCAN- USB adapter to the computer. The use of an extension cable does not comply with the USB specification and can lead to malfunction of the adapter.
  • Page 10: Connecting The Can Bus

    CiA® 102. Figure 1: Pin assignment High-speed CAN (view onto connector of the PCAN-USB adapter) With the pins 1 and 9 devices with low power consumption (e.g. bus converters) can be directly supplied via the CAN connector. At deli- very these pins are not assigned.
  • Page 11: Supplying External Devices Via The Can Connector

    Therefore the current output is limited to 50 mA. Proceed as follows to activate the 5-Volt supply: In order to access the board open the casing of the PCAN-USB adapter by cautiously pushing in the latches on both sides, e.g. with a flat tip screwdriver.
  • Page 12 5-Volt supply → None Pin 1 Pin 9 Pin 1 + Pin 9 PCAN-USB, solder field Figure 3: Bottom side of the PCAN-USB opto-decoupled board (IPEH-002022), solder field R11 5-Volt supply → None Pin 1 PCAN-USB opto-decoupled, solder field R11 For reassembly place the board overhead onto the top part of the casing.
  • Page 13: Cabling

    The PCAN-USB adapter does not have an internal termination. Use the adapter on a terminated CAN bus. 3.3.2 Example of a Connection Figure 4: Simple CAN connection In this example, the PCAN-USB adapter is connected with a control unit by a cable that is terminated at both ends.
  • Page 14: Maximum Bus Length

    PCAN-USB – User Manual 3.3.3 Maximum Bus Length CAN networks may have bit rates of up to 1 Mbit/s, where all CAN nodes must be able to process messages simultaneously. The maximum bus length depends on the bit rate. The following table shows some examples with the bus length in...
  • Page 15: Operation

    PCAN-USB – User Manual Operation Status LED The PCAN-USB adapter has a red status LED which can be in one of the following conditions: Status Meaning There's a connection to a driver of the operating system. Slow blinking A software application is connected to the adapter.
  • Page 16: Using The Software

    PCAN-USB – User Manual Using the Software This chapter covers the provided software PCAN-View and the programming interface PCAN-Basic. CAN Monitor PCAN-View for Windows PCAN-View for Windows is a simple CAN monitor for viewing, transmitting, and logging CAN messages. Figure 5: PCAN-View for Windows...
  • Page 17 PCAN-USB – User Manual If you haven't installed PCAN-View together with the device driver, you can start the program directly from the supplied CD. In the navigation program (Intro.exe) go to English > Tools, and under PCAN-View for Windows select the link Start.
  • Page 18: Receive/Transmit Tab

    PCAN-USB – User Manual 5.1.1 Receive/Transmit Tab Figure 7: Receive/Transmit tab The Receive/Transmit tab is the main element of PCAN-View. It contains two lists, one for received messages and one for the transmit messages. Representation of CAN data is in hexadecimal format.
  • Page 19 PCAN-USB – User Manual Figure 8: Dialog box New transmit message Enter the ID and the data for the new CAN message. The field Cycle Time indicates if the message shall be transmitted manually or periodically. If you want to transmit the message periodically, you must enter a value greater than 0.
  • Page 20: Trace Tab

    PCAN-USB – User Manual 5.1.2 Trace Tab Figure 9: Trace tab On the Trace tab the data tracer of PCAN-View is used for logging the communication on a CAN bus. During this process the CAN messages are cached in the working memory of the PC. Afterwards they can be saved to a file.
  • Page 21: Pcan-Usb Tab

    5.1.3 PCAN-USB Tab Figure 10: PCAN-USB tab With the PCAN-USB tab you can assign a device ID to the adapter. Then it can be clearly identified during operation of several PCAN- USB adapters on a single computer. Furthermore, the current firmware version of the connected adapter is displayed on the tab.
  • Page 22: Linking Own Programs With Pcan-Basic

    PCAN-USB – User Manual Linking Own Programs with PCAN-Basic Figure 12: PCAN-Basic On the provided CD you can find files of the programming interface PCAN-Basic in the directory branch Develop. This API provides basic functions for linking own programs to CAN interfaces by...
  • Page 23: Features Of Pcan-Basic

    PCAN-USB – User Manual 5.2.1 Features of PCAN-Basic Multiple PEAK-System applications and a single one of your own can be used on a physical CAN channel at the same time A single DLL for all supported hardware types Use of up to 8 channels for each hardware unit (depending on...
  • Page 24: Principle Description Of The Api

    PCAN-USB – User Manual 5.2.2 Principle Description of the API The PCAN-Basic API is the interface between the user application and device driver. In Windows operating systems this is a DLL (Dynamic Link Library). The sequence of accessing the CAN interface is divided into three phases: 1.
  • Page 25: Notes About The License

    PCAN-USB – User Manual Completion To end the communication the function CAN_Uninitialize is called in order to release the reserved resources for the CAN channel, among others. In addition the CAN channel is marked as "Free" and is available to other applications.
  • Page 26: Technical Specifications Pcan-Usb

    NXP (Philips) PCA82C251 Galvanic isolation PCAN-USB: none PCAN-USB opto: up to 500 V Supplying external PCAN-USB: D-Sub pin 1/pin 9; 5 V, max. 100 mA devices PCAN-USB opto: D-Sub pin 1; 5 V, max. 50 mA Not assigned at delivery Termination...
  • Page 27 EN 55024:2003-10 EN 55022:2007-04 EC directive 2004/108/EG Ingress protection IP20 (IEC 60529) Measures Size (w/o cable) PCAN-USB: 75 x 43 x 22 mm PCAN-USB opto: 87 x 43 x 22 mm Weight (with cable) PCAN-USB: 78 g PCAN-USB opto: 83 g...
  • Page 28: Appendix A Ce Certificate

    PCAN-USB – User Manual Appendix A CE Certificate...
  • Page 29: Appendix B Dimension Drawings

    PCAN-USB – User Manual Appendix B Dimension Drawings Figure 13: View PCAN-USB Figure 14: View PCAN-USB opto-decoupled The figures don't show the actual size of the product.
  • Page 30: Appendix C Quick Reference

    PCAN-USB – User Manual Appendix C Quick Reference Software/Hardware Installation under Windows Before connecting the PCAN-USB adapter to the computer set up the corresponding software package from the supplied CD (with administrator privileges). Afterwards connect the PCAN-USB adapter to a USB port at your computer. The adapter is recognized by Windows and the driver is initialized.

Table of Contents