background image

PCAN-PC/104 – User Manual 
 

33 

 

Output language depends on operating system 

 

Debugging information can be defined individually 

Tip: 

An overview of the API functions is located in the header 

files. You can find detailed information about the PCAN-Basic 
API on the provided DVD in the text and help files (file name 
extensions 

.txt

 and 

.chm

). 

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

 

Initialization 

2.

 

Interaction 

3.

 

Completion 

Initialization 

A channel must be initialized before using it. This is done by the 
simple call of the function 

CAN_Initialize

 for CAN and 

CAN_InitializeFD

 for CAN FD. Depending on the type of the CAN 

hardware, up to 16 CAN channels can be opened at the same time. 
After a successful initialization the CAN channel is ready. No further 
configuration steps are required. 

Interaction 

For receiving and transmitting messages the functions 

CAN_Read

 

and 

CAN_Write

 as well as 

CAN_ReadFD

 and 

CAN_WriteFD 

are 

available. Additional settings can be made, e.g. setting up message 
filters to confine to specific CAN IDs or setting the CAN controller to 
listen-only mode. 

Содержание PCAN-PC/104 Series

Страница 1: ...CAN Interface for PC 104 User Manual PCAN PC 104 Document version 2 6 0 2019 03 06...

Страница 2: ...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 They are n...

Страница 3: ...ing the Computer s BIOS Settings 15 2 4 1 Indicating Used Interrupts 15 2 4 2 Deactivating the APIC Mode 16 3 Connecting the CAN Bus 17 3 1 Connection over D Sub Connector 17 3 1 1 Slot Bracket with D...

Страница 4: ...s with PCAN Basic 31 4 2 1 Features of PCAN Basic 32 4 2 2 Principle Description of the API 33 4 2 3 Notes about the License 34 5 Technical Specifications 35 Appendix A CE Certificate 37 Appendix B Di...

Страница 5: ...PCAN Basic for the development of applications with CAN connection are included in the scope of supply Device drivers exist for different operating systems so programs can easily access a connected CA...

Страница 6: ...nnection up to 500 V only opto decoupled models separate for each CAN channel Extended operating temperature range of 40 to 85 C 40 to 185 F Note This manual describes the use of the PCAN PC 104 card...

Страница 7: ...0 8 1 7 32 bit and Linux 32 64 bit Device driver for Windows CE 6 x x86 and ARMv4 processor support CAN monitor PCAN View for Windows CAN monitor PCAN View for DOS Programming interface PCAN Basic for...

Страница 8: ...livery the PCAN PC 104 card has the following default settings CAN channel IRQ I O address range Comment 1 10 300h 31Fh 2 5 320h 33Fh Dual Channel model only Tip If the given resources are not permane...

Страница 9: ...ry for CAN channel 1 is interrupt 10 for CAN channel 2 interrupt 5 Figure 1 Position of the jumper fields for setting the interrupts JP1 for CAN channel 1 lower jumper field JP2 for CAN channel 2 uppe...

Страница 10: ...ield JP3 for CAN channel 1 and jumper field JP4 for CAN channel 2 latter refers only to the Dual Channel model One or several jumpers are needed for each jumper field Figure 2 Position of the jumper f...

Страница 11: ...A B C D E I O address range X 200h 21Fh X X 220h 23Fh X X 240h 25Fh X X X 260h 27Fh X X 280h 29Fh X X X 2A0h 2BFh X X X 2C0h 2DFh X X X X 2E0h 2FFh X X 300h 31Fh X X X 320h 33Fh X X X 340h 35Fh X X X...

Страница 12: ...starts 2 Select in the main menu Drivers and click on Install now 3 Confirm the message of the User Account Control related to Installer database of PEAK Drivers The driver setup starts 4 Follow the...

Страница 13: ...roy components on the card Take precautions to avoid ESD 1 Shut down the computer 2 Disconnect the computer from the power supply 3 Plug the PCAN PC 104 card onto a PC 104 connector 4 Interconnect the...

Страница 14: ...PCAN PC 104 User Manual 14 Figure 4 Connectors for the flat cables to the CAN connectors J3 for CAN channel one lower position J4 for CAN channel 2 upper position Dual Channel model only...

Страница 15: ...w how to start the computer s BIOS setup please consult the corresponding documentation Usually you can enter the BIOS setup by pressing the Del or F2 key shortly after switching on the computer 2 4 1...

Страница 16: ...es by type 2 Open the branch of Interrupt request IRQ If entries with interrupt numbers greater than 15 are listed the APIC mode is active and you must deactivate it Do the following to deactivate the...

Страница 17: ...The pin assignment corresponds to the specification CiA 303 1 Figure 5 Pin assignment High speed CAN view onto connector of the slot bracket Low power devices e g bus converters can be supplied direct...

Страница 18: ...in Assignment Assignment D Sub 1 5 V optional 1 2 GND 6 3 CAN_L 2 4 CAN_H 7 5 GND 3 6 not connected 8 7 not connected 4 8 5 V optional 9 9 not connected 5 10 not connected Tip You can connect a CAN bu...

Страница 19: ...Single channel slot bracket Figure 8 Dual channel slot bracket To connect a CAN bus to the PCAN PC 104 card use the supplied slot brackets After you have connected the cables from the slot bracket wi...

Страница 20: ...Sub connector The opto decoupled models of the card contain an interconnected DC DC converter Therefore the current output is limited to about 50 mA Do the following to activate the voltage supply Ri...

Страница 21: ...position JP6 upper position 5 Volt supply D Sub connector Solder field Without Standard Pin 1 Pin 9 Pin 1 and pin 9 CAN 1 JP5 CAN 2 JP6 Risk of short circuit The 5 Volt supply is not protected separa...

Страница 22: ...the proper operation of the transceivers of the connected CAN nodes CAN interfaces control devices The PCAN PC 104 card does not have an internal termination Use the adapter on a terminated CAN bus 3...

Страница 23: ...ding on the bit rate The following table shows the maximum CAN bus length at diffe rent bit rates Bit rate Bus length 1 Mbit s 40 m 500 kbit s 110 m 250 kbit s 240 m 125 kbit s 500 m 50 kbit s 1 3 km...

Страница 24: ...are PCAN View and the programming interface PCAN Basic 4 1 Monitor Software PCAN View PCAN View is simple Windows software for viewing transmitting and logging CAN and CAN FD messages Note This chapte...

Страница 25: ...View The Connect dialog box appears Figure 12 Selection of the CAN specific hardware and parameters exemplary 2 Select an interface from the list and continue with step 7 3 If no entry is in the list...

Страница 26: ...Under Filter settings you can limit the range of CAN IDs to be received either for standard frames 11 bit IDs or for extended frames 29 bit IDs 9 Activate the Listen only mode if you do not actively p...

Страница 27: ...w It contains two lists one for received messages and one for the transmit messages The CAN data format is hexadecimal by default Do the following to transmit a CAN message with PCAN View 1 Select the...

Страница 28: ...alue greater than 0 to transmit periodically Enter the value 0 to transmit only manually 4 Confirm the entries with OK The created transmit message appears on the Receive Transmit tab 5 Trigger select...

Страница 29: ...ation on a CAN bus During this process the messages are cached in the working memory of the PC Afterwards they can be saved to a file The Tracer runs either in linear or in ring buffer mode The linear...

Страница 30: ...e hardware and driver 4 1 4 Status Bar Figure 18 Display of the status bar The status bar shows information about the current CAN connection about error counters Overruns QXmtFull and shows error mess...

Страница 31: ...s API provides basic functions for linking own programs to CAN and CAN FD interfaces by PEAK System and can be used for the following operating systems Windows 10 8 1 7 32 64 bit Windows CE 6 x x86 AR...

Страница 32: ...be operated on a physical channel at the same time Use of a single DLL for all supported hardware types Use of up to 16 channels for each hardware unit depending on the PEAK CAN interface used Simple...

Страница 33: ...the CAN interface is divided into three phases 1 Initialization 2 Interaction 3 Completion Initialization A channel must be initialized before using it This is done by the simple call of the function...

Страница 34: ...the CAN channel is marked as Free and is available to other applications 4 2 3 Notes about the License Device drivers the interface DLL and further files needed for linking are property of the PEAK S...

Страница 35: ...V separate for each CAN channel Supplying external devices PCAN PC 104 D Sub pin 1 9 5 V max 100 mA PCAN PC 104 opto D Sub pin 1 9 5 V max 50 mA via solder bridge s not assigned at delivery Power sup...

Страница 36: ...ture 40 85 C 40 185 F Temperature for storage and transport 40 125 C 40 257 F Relative humidity 15 90 not condensing Conformity EMV Directive 2014 30 EU DIN EN 55024 2016 05 DIN EN 55032 2016 02 RoHS...

Страница 37: ...PCAN PC 104 User Manual 37 Appendix A CE Certificate...

Страница 38: ...PCAN PC 104 User Manual 38 Appendix B Dimension Drawing Figure 20 View PCAN PC 104 The figure does not show the actual size of the product...

Страница 39: ...Insert the PCAN PC 104 card in the PC 104 stack After switching on the computer enter the BIOS setup In the PnP table mark the interrupts used by the PCAN PC 104 card as reserved Getting Started under...

Отзывы: