PCAN Handle Definitions

PCAN-Basic

PCAN-Basic Documentation
Home
PreviousUpNext
PCAN Handle Definitions

Defines the handles for the different PCAN buses (Channels) within a class. These values are used as parameter where a TPCANHandle is needed. 

 

Default handle value:  

 
Type 
Constant 
Value 
Description 
 
PCAN_NONEBUS 
Undefined/default value for a PCAN bus. 

 

Handles for the ISA Bus (Not Plug & Play):

 
Type 
Constant 
Value 
Description 
 
PCAN_ISABUS1 
0x21 
PCAN-ISA interface, channel 1. 
 
PCAN_ISABUS2 
0x22 
PCAN-ISA interface, channel 2. 
 
PCAN_ISABUS3 
0x23 
PCAN-ISA interface, channel 3. 
 
PCAN_ISABUS4 
0x24 
PCAN-ISA interface, channel 4. 
 
PCAN_ISABUS5 
0x25 
PCAN-ISA interface, channel 5. 
 
PCAN_ISABUS6 
0x26 
PCAN-ISA interface, channel 6. 
 
PCAN_ISABUS7 
0x27 
PCAN-ISA interface, channel 7. 
 
PCAN_ISABUS8 
0x28 
PCAN-ISA interface, channel 8. 

 

Handles for the Dongle Bus (Not Plug & Play):

 
Type 
Constant 
Value 
Description 
 
PCAN_DNGBUS1 
0x31 
PCAN-Dongle/LPT interface, channel 1. 

 

Handles for the PCI Bus:

 
Type 
Constant 
Value 
Description 
 
PCAN_PCIBUS1 
0x41 
PCAN-PCI interface, channel 1. 
 
PCAN_PCIBUS2 
0x42 
PCAN-PCI interface, channel 2. 
 
PCAN_PCIBUS3 
0x43 
PCAN-PCI interface, channel 3. 
 
PCAN_PCIBUS4 
0x44 
PCAN-PCI interface, channel 4. 
 
PCAN_PCIBUS5 
0x45 
PCAN-PCI interface, channel 5. 
 
PCAN_PCIBUS6 
0x46 
PCAN-PCI interface, channel 6. 
 
PCAN_PCIBUS7 
0x47 
PCAN-PCI interface, channel 7. 
 
PCAN_PCIBUS8 
0x48 
PCAN-PCI interface, channel 8. 
 
PCAN_PCIBUS9 
0x409 
PCAN-PCI interface, channel 9. 
 
PCAN_PCIBUS10 
0x40A 
PCAN-PCI interface, channel 10. 
 
PCAN_PCIBUS11 
0x40B 
PCAN-PCI interface, channel 11. 
 
PCAN_PCIBUS12 
0x40C 
PCAN-PCI interface, channel 12. 
 
PCAN_PCIBUS13 
0x40D 
PCAN-PCI interface, channel 13. 
 
PCAN_PCIBUS14 
0x40E 
PCAN-PCI interface, channel 14. 
 
PCAN_PCIBUS15 
0x40F 
PCAN-PCI interface, channel 15. 
 
PCAN_PCIBUS16 
0x410 
PCAN-PCI interface, channel 16. 

 

Handles for the USB Bus:

 
Type 
Constant 
Value 
Description 
 
PCAN_USBBUS1 
0x51 
PCAN-USB interface, channel 1. 
 
PCAN_USBBUS2 
0x52 
PCAN-USB interface, channel 2. 
 
PCAN_USBBUS3 
0x53 
PCAN-USB interface, channel 3. 
 
PCAN_USBBUS4 
0x54 
PCAN-USB interface, channel 4. 
 
PCAN_USBBUS5 
0x55 
PCAN-USB interface, channel 5. 
 
PCAN_USBBUS6 
0x56 
PCAN-USB interface, channel 6. 
 
PCAN_USBBUS7 
0x57 
PCAN-USB interface, channel 7. 
 
PCAN_USBBUS8 
0x58 
PCAN-USB interface, channel 8. 
 
PCAN_USBBUS9 
0x509 
PCAN-USB interface, channel 9. 
 
PCAN_USBBUS10 
0x50A 
PCAN-USB interface, channel 10. 
 
PCAN_USBBUS11 
0x50B 
PCAN-USB interface, channel 11. 
 
PCAN_USBBUS12 
0x50C 
PCAN-USB interface, channel 12. 
 
PCAN_USBBUS13 
0x50D 
PCAN-USB interface, channel 13. 
 
PCAN_USBBUS14 
0x50E 
PCAN-USB interface, channel 14. 
 
PCAN_USBBUS15 
0x50F 
PCAN-USB interface, channel 15. 
 
PCAN_USBBUS16 
0x510 
PCAN-USB interface, channel 16. 

 

Handles for the PC_Card Bus:

 
Type 
Constant 
Value 
Description 
 
PCAN_PCCBUS1 
0x61 
PCAN-PC Card interface, channel 1. 
 
PCAN_PCCBUS2 
0x62 
PCAN-PC Card interface, channel 2. 

 

Handles for the LAN Bus:

 
Type 
Constant 
Value 
Description 
 
PCAN_LANBUS1 
0x801 
PCAN-LAN interface, channel 1. 
 
PCAN_LANBUS2 
0x802 
PCAN-LAN interface, channel 2. 
 
PCAN_LANBUS3 
0x803 
PCAN-LAN interface, channel 3. 
 
PCAN_LANBUS4 
0x804 
PCAN-LAN interface, channel 4. 
 
PCAN_LANBUS5 
0x805 
PCAN-LAN interface, channel 5. 
 
PCAN_LANBUS6 
0x806 
PCAN-LAN interface, channel 6. 
 
PCAN_LANBUS7 
0x807 
PCAN-LAN interface, channel 7. 
 
PCAN_LANBUS8 
0x808 
PCAN-LAN interface, channel 8. 
 
PCAN_LANBUS9 
0x809 
PCAN-LAN interface, channel 9. 
 
PCAN_LANBUS10 
0x80A 
PCAN-LAN interface, channel 10. 
 
PCAN_LANBUS11 
0x80B 
PCAN-LAN interface, channel 11. 
 
PCAN_LANBUS12 
0x80C 
PCAN-LAN interface, channel 12. 
 
PCAN_LANBUS13 
0x80D 
PCAN-LAN interface, channel 13. 
 
PCAN_LANBUS14 
0x80E 
PCAN-LAN interface, channel 14. 
 
PCAN_LANBUS15 
0x80F 
PCAN-LAN interface, channel 15. 
 
PCAN_LANBUS16 
0x810 
PCAN-LAN interface, channel 16. 

The PCAN_NONEBUS is a value used as default channel value. It is used for general purposes as using and configuring the Log capabilities of the PCAN-Basic API. It can also be used to remove all channel connections made by an application. 

These definitions are constants values in an object oriented environment (Delphi, .NET Framework) and declared as defines in C++ (plain API). 

Hardware Type and Channels

Not Plug & Play: The hardware channels of this kind are used as registered. This mean, for example, it is allowed to register the PCAN_ISABUS3 without having registered PCAN_ISA1 and PCAN_ISA2. It is a decision of each user, how to associate a PCAN-Channel (logical part) and a port/interrupt pair (physical part). 

Plug & Play: For hardware handles of PCI, USB and PC-Card, the availability of the channels is determined by the count of hardware connected to a computer in a given moment, in conjunction with their internal handle. This mean, that having four PCAN-USB connected to a computer will let the user to connect the channels PCAN_USBBUS1 to PCAN_USBBUS4. The association of each channel with a hardware is managed internally using the handle of a hardware. 

Python: 

The definitions of these values have the following form: TPCANHandle(handle) where handle is the value contained in the column with the same name. e.g. PCAN_PCCBUS1 is defined as TPCANHandle(0x61).

Copyright © 2017. PEAK-System Technik GmbH. All rights reserved.
Send feedback to this documentation