Home
User`s Manual - ICP DAS USA`s I
Contents
1. PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 21 4 Installation DLL Driver The DLL driver is the collection of function calls on the PISO CAN200 400 200U 400U 200E and PCM CAN200 cards used for Windows 98 Me NT4 2000 XP systems The application structure is presented in the following figure The user application programs which have been developed by the following designated tools VB VC Delphi and Borland C Builder etc can call the PISOCAN DLL driver in user mode And then the DLL driver will bypass the function call into the KP_CAN sys and windrvr6 sys the windrvr6 sys is for windows 98 Me NT4 to access the hardware system as shown in the following Figure Application pisocan dll User Mode Kernel Mode KP CAN sys windrvr6 sys PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 22 4 1 DLL Function Definition and Description All the functions provided in the PISO CAN 200 400 200U 400U 200E or PCM CANZ200 are listed in the following table and detailed information for every function is presented in the following sub section However in order to make the descriptions more simplified and clear the attributes for the both the input and output parameter functions are given as input and output respectively as shown in following table Keyword Set parameter by user before calling this function Get the data from this par
2. Fort 2 UI Mode 0 10 123h ATR 0 DLC 8 Datalhes11 22 33 44 55 66 77 88 TimeStamp 3734 3343501377 sec Status L Clear Overrun Figure 5 1 The form of demo1 program DEMO2 PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 65 In demo 2 we provide a demonstration on how to send out a CAN message through port 1 and receive the CAN message in port 2 by means of the interrupt mode Contained within this operation the user can key in the CAN message into the port 1 frame area and click on the Send button to send out the CAN message At the same time the CAN message will be received at port 2 by means of the interrupt mode As shown in the following figure port 2 can automatically receive the CAN message and store it within the 4K bytes of buffer software When the user clicks the Receive button all the messages stored in the 4K bytes buffer will all be presented in the TEXT edit area as shown in the following figure PIO CAN400 200 demo2 SEE Fart 1 ID eu ATR DLC 1 EXIT Fe fo f a fa pele ps pe 7 ae M Extened 29 bit ID status Send Ban O1 Mode 0 I0 1K ATA 0 DLC 8 Datafhes 11 22 33 44 55 66 77 DD Timebtamp 3843 3503034603Esec 02 Mode 0 ID 2h ATA 0 DLC 8 Datafhes 11 22 33 44 55 66 77 08 Timebtamp 3845 320337 64068sec 03 Mode 0 ID 3h ATA 0 OLC 8 Data hex 11 22 33 44 55 66 77 88 Timebtamp 3647 065891 7 Dese 04 Mode 0 ID 4h ATA 0 OLC 8 Dat
3. Pin3 Shield JP7 CAN Port 4 Connector 123 connecting PISO CAN400U board and ADP 9 board Pin1 CAN L Pin2 CAN H Pin3 Shield Port 1 terminator resister 120Q selection Port 2 terminator resister 120Q selection Port 3 terminator resister 120Q selection Port 4 terminator resister 120Q selection PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 13 PISO CAN200E D T Table 2 3 Jumper Selections e Semer me CASELLA Port 1 terminator resister 1200 selection Port 2 terminator resister 1200 selection PCM CAN200 Table 2 3 shows the appropriate switch setting and signals used for each module in the stack Table 2 4 Rotary Switch Settings Table 2 5 Jumper Selections e See me Enable Disable Port 1 terminator resister 120Q selection 321 321 Port 2 terminator resister 120Q selection PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 14 2 3 Connector Pin Assignment The PISO CAN 200 T 400 T 200U T 400U T 200E T are equipped with two four sets of 5 pin screw terminal connectors the PISO CAN 200 D 400 D 200U D 400U D 200E D and PCM CAN200 are equipped with two four sets of 9 pin D sub male connectors for wire connection of the CAN bus The connector s pin assignment is specified as follows 2 3 1 5 pin screw terminal connector The 5 pin screw terminal connector of the CAN bus interface is shown
4. CAN PortNumbereError Port number is not correct CAN ActiveBoardError This board is not activated CAN ConfigError Port has not been configured successfully CAN ReceiveBufferEmpty CAN controller s RXFIFO is empty CAN_SoftBufferlsEmpty Software RX Buffer is empty CAN_SoftBufferlsFull Software RX Buffer is full PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 53 4 1 24 CAN ClearSofiBuffer Description Clear the software buffer of the PISOCAN DLL driver Syntax int CAN ClearSoftBuffe BYTE BoardNo BYTE Port Parameter BoardNo input PISO CAN or PCM CAN board number 0 7 Port input CAN port number 1 4 or 1 2 Return CAN_NoError OK CAN_BoardNumberError BoardNo is not correct or exceeds the current total board number CAN_PortNumberError Port number is not correct PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 54 4 1 25 CAN ClearDataOverrun e Description Clear the data overrun status bit for the CAN controller e Syntax int CAN ClearDataOverrun BYTE BoardNo BYTE Port e Parameter BoardNo input PISO CAN or PCM CAN board number 0 7 Port input CAN port number 1 4 or 1 2 e Return CAN_NoError OK CAN_BoardNumberError BoardNo is not correct or exceeds the current total board number CAN_PortNumberError Port number is not correct CAN ActiveBoardError This board is not activated CAN Config
5. PISO CAN or PCM CAN board number 0 7 Return CAN_NoError OK CAN DriverError Kernel driver can t be opened CAN BoardNumberError BoardNo is not correct or exceeds the current total board number CAN ActiveBoardError This board is not activated CAN RemovelrqFailure Disable or stop IRQ failure PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 42 4 1 17 CAN_IrqStatus Description Obtain IRQ status of the PISO CAN 200 400 200U 400U 200E or PCM CAN 200 board Syntax int CAN_IrqStatus BYTE BoardNo BYTE bSitatus Parameter BoardNo input PISO CAN or PCM CAN board number 0 7 bStatus output O IRQ disable 1 IRQ enable Return CAN_NoError OK CAN DriverError Kernel driver can t be opened CAN_BoardNumberError BoardNo is not correct or exceeds the current total board number CAN ActiveBoardError This board is not activated PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 43 4 1 18 CAN Siatus e Description Obtain the status of CAN controller for PISO CAN 200 400 200U 400U 200E or PCM CAN 200 board e Syntax int CAN Status BYTE BoardNo BYTE Port BYTE bStatus e Parameter BoardNo input PISO CAN or PCM CAN board number 0 7 bStatus output Status value of CAN controller Table 4 3 Bit interpretation of the bStatus ch Sa paso AN Error Status ae Status Receive Status r
6. only for Windows 2000 XP e Description Using this function can allow users to apply ISR interrupt service routine When users put their ISR into this function the interrupt of receiving CAN message will trigger the users ISR e Syntax int CAN InstallUserisr BYTE BoardNo void UserlSR BY TE BoardNo e Parameter BoardNo input PISO CAN or PCM CAN board number 0 7 UserlISR BYTE BoardNo input The pointer which points a function with format void XXX BYTE BoardNo The XXX is the function name of users ISR The parameter BoardNo indicates the number of the board which produces an interrupt signal e Return CAN_NoError OK CAN DriverError Kernel driver can t be opened CAN BoardNumbereError BoardNo is not correct or exceeds the current total board number CAN ActiveBoardError This board is not activated CAN InstalllrgqFailure Enable or start IRQ failure CAN InstalllsrError Enable or start ISR failure PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 59 4 1 30 CAN RemoveUserisr only for Windows 2000 XP e Description When users don t need the ISR function call this function to remove users ISR e Syntax Int CAN RemoveUserisr BYTE BoadNo e Parameter BoardNo input PISO CAN or PCM CAN board number 0 7 e Return CAN_NoError OK CAN DriverError Kernel driver can t be opened CAN BoardNumberError BoardNo is not correct or
7. again There are only 5 CAN message can be sending cyclically from one CAN port at the same time CAN Utility PISO CAN4000 See File Configuration About Port Port Port3 Porta Mode TD the ETE Den Du Difi Dihi Dsth Dh Doth Doth DIK Timerimsi 11 bit ID wi 2CD No 8 vf 88 77 66 55 44 33 22 11 500 N 8 l 2B 3C 4D 5E ee 77 7 0 UL 11 btID 145 02 11 bit ID 2 AC D 4 CAN Reception Function The following figure shows the receive part of a selected CAN port There are four functions for reception list PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 69 Ha Mode IL ETE Len DO D1 De D3 D4 DS Db DO Time Stampsis a l1 11 bit ID ol WH os OO 00 OO OO OO OO 00 UU 20095 56434 2 11 bit ID 70l N 1 UU 26095 90666 Board Wo 0 Port Status Enable Band Rate 1I2335 ACC Code 00 00 00 00 ACT Mask FE FF FF FF Rx Pause Click this button to stop the CAN message reception from specific CAN port Click it again to continue the message reception Clear Button Click this button to delete all CAN messages shown in the reception list Goto Last Click this button to show the last received CAN message Scrolling Button When the button is pushed down the reception list is always scrolled automatically to the last received CAN message If this button is pushed up the reception list will stop to scroll automati
8. exceeds the current total board number CAN ActiveBoardError This board is not activated CAN RemovelrqFailure Disable or stop IRQ failure PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 60 4 2 Flow Diagram for Application In this section we will show the operation procedure of PISO CAN or PCM CAN board for sending and receiving CAN message Figure 4 1 presents the Send CAN Message procedure Figure 4 2 and 4 3 stand for the receiving CAN Message in polling and in interrupt mode respectively Users need to follow the operation principle of PISO CAN or PCM CAN board for correctly and easily send and receive the CAN message through CAN network For more detail information please refer to the demo programs in section 5 Start of Application CAN_ActiveBoard CAN Reset _ CAN_Init CAN Config CAN_SendMsg CAN CloseBoard End of Application Figure 4 1 Flow Chart Send CAN Massage PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 61 Start of Application CAN ActiveBoard CAN Reset CAN Init CAN Config CAN_RxMsgCount gt 0 NO CAN ReceiveMsg CAN CloseBoard End of Application Figure 4 2 Flow Chart Receive CAN Massage PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 Start of Application CAN ActiveBoard C
9. in Figure 2 8 The details for the pin assignment are presented in Table 2 6 CAN L Shield CAN H Figure2 8 5 pin screw terminal connector Table 2 6 Pin assignment of 5 pin screw terminal connector 5 pin screw terminal connectors pin assignment Reserved Ka CAN L BECH CAN SHLD A CAN H CS Reserved PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 15 2 3 2 9 pin D sub male connectors The 9 pin D sub male connector of the CAN bus interface is shown in Figure 2 9 and the corresponding pin assignments are given in Table 2 7 CAN L shield CAN H Figure2 9 9 pin D sub male connector Table 2 7 Pin assignment of the 9 pin D sub male connector D sub male connector pin assignment 2 CANE 3 Reserved n 4 Reserved n 5 CAN SHLD n 6 Reserved n 8 Reserved n 9 Reserved PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 16 2 4 Installation Configure the jumper settings on your PISO CAN200 PISO CAN400 PISO CAN200U PISO CAN400U PISO CAN200E PCM CAN200 in accordance with your particular requirements Shutdown your system and take off the chassis of your machine Plug in your PISO CAN 200 400 200U 400U 200E or PCM CAN200 into a suitable empty PCI slot Replace your chassis Plug your CAN bus cable s into the 5 pin screw terminal connector or the 9 pin D sub connector When the hardware installation is compl
10. number 0 7 Port input CAN port number 1 4 or 1 2 bStatus output O receive interrupt disable 1 receive interrupt enable Return CAN_NoError OK CAN DriverError Kernel driver can t be opened CAN BoardNumberError BoardNo is not correct or exceeds the current total board number CAN PoriNumberError Port number is not correct CAN ActiveBoardError This board is not activated PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 40 4 1 15 CAN insitallirq Description Enable or start IRQ for PISO CAN 200 400 200U 400U 200E or PCM CAN 200 Board Before calling this function GAN EnableRxirq must to be called first Syntax int CAN_Installlrq BYTE BoardNo Parameter BoardNo input PISO CAN or PCM CAN board number 0 7 Return CAN_NoError OK CAN DriverError Kernel driver can t be opened CAN BoardNumbereError BoardNo is not correct or exceeds the current total board number CAN ActiveBoardError This board is not activated CAN InstalllrqFailure Enable or start IRQ failure PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 41 4 1 16 CAN Removelrq Description Disable or stop IRQ for PISO CAN 200 400 200U 400U 200E or PCM CAN 200 Board After calling this function the interrupts for all CAN controllers on board will be disabled Syntax int CAN Removelrq BYTE BoardNo Parameter BoardNo input
11. 7 SOMWare INSTA ANON E 18 INSTAIATION DEL DIVE kose bn kb on n np e n n n nn tate n n n ka kk om 22 4 1 DLL Function Definition and Description rreeerresseresastenssnanannnnn 23 4 1 1 CAN GetDIIVErSION 0urnantnarnana nana annan anana annan nana nan anan nnnnanannn 26 4 1 2 CAN TotalBOAaFQ reeanrnarnananannannna nannan REENEN REENEN REENEN KN 26 4 1 3 CAN GOeflBOarOiTM sense nos ka ak ak aie ko k aa na ae kaa man im 27 4 1 4 CAN GetCardPOriNUM csccccececceseuceececeececeeeuseeceseeeeseuees 28 4 1 5 CAN ActiveBOAaFQ ou ccscecececceceecuceececuceeeeeuseeecuseeeueuneeeeeenes 29 4 1 6 GAN CIOSOEBOAF WEE 30 4 1 7 GAN BOaFOISACHVO en ee ka kaka ak sea asasen 31 4 1 8 GAN OS OCT gedet la a kot kt da a a kk af n a 32 4 1 9 GAN MI kool b n v b b k b on ik n iii e D a n ko a ba it 33 41 10 CAN GON HO iii dwat k ao j pw ia ok kw kt w kt ra n e a on ek 34 4 1 11 CAN ConfigWithoutStrUCI UFE vreeeeeressteresssstnasannnnannnnnn 36 4112 GAN E able RX O e use so kin ou iv k a l a e ko da e ke bi a ake 38 4 1 13 CAN DisableRXIfQ 0rrrreeerrrroeaoroooaaanonnaaannnnaaannannannnnnnn 39 4 114 CAN AXING EN 40 4 14 13 CAIN Install Osua 41 4 14 16 CAN FROMOVEIG E 42 4 1 17 GAN e ET 43 41 18 ei ET 44 A ES E NN CAN Sena e E 46 4 1 20 CAN SendWithoutStirUCH 0 veeeeeseeessetesssssasassasasnsnnnnnnnnnn 48 4 1 21 CAN RxMSQCOUMNI 0rr2onrrrroeereoraorensasonsannonaasanoaannnaannnnnn 49 4 1 22 CAN Recei
12. AN Reset CAN Init CAN Config CAN EnableRxlrq CAN Installlrq CAN RxMsgCount O NO YES CAN ReceiveMsg CAN DisableRxlrq CAN Removelrq CAN CloseBoard End of Application Figure 4 3 Flow Chart Receive CAN Massage with IRQ PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 63 5 Demo Programs for Windows All of demo programs will not work normally if DLL driver would not be installed correctly During the installation process of DLL driver the install shields will register the correct kernel driver to the operation system and copy the DLL driver and demo programs to the correct position based on the driver software package you have selected Win98 Me NT win2000 XP After driver installation the related demo programs and development library and declaration header files for different development environments are presented as follows Demo gt Demo program BCB3 5 for Borland C Builder 3 CAN H gt Header file PISOCAN LIB gt Linkage library for BCB Delphi4 gt for Delphi 4 LACAN DAS gt Declaration file VC6 gt for Visual C 6 CAN H gt Header file PISOCAN LIB gt Linkage library for VC6 VB6 gt for Visual Basic 6 CAN BAS The list of demo programs DEMO1 gt Declaration file Transmit and receive CAN messages DEMO2 Transmit and re
13. E Port e Parameter BoardNo input PISO CAN or PCM CAN board number 0 7 Port input CAN port number 1 4 or 1 2 e Return CAN_NoError OK CAN DriverError Kernel driver can t be opened CAN BoardNumberError BoardNo is not correct or exceeds the current total board number CAN PortNumbereError Port number is not correct CAN ActiveBoardError This board is not activated CAN EnableRxirqgFailure Enable receives interrupt failure PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 38 4 1 13 CAN DisableRxirq Description Disable receive interrupt of the CAN controller Syntax Int CAN DisableRxilrq BYTE BoardNo BYTE Port Parameter BoardNo input PISO CAN or PCM CAN board number 0 7 Port input CAN port number 1 4 or 1 2 Return CAN_NoError OK CAN DriverError Kernel driver can t be opened CAN BoardNumberError BoardNo is not correct or exceeds the current total board number CAN PortNumbereError Port number is not correct CAN ActiveBoardError This board is not activated CAN DisableRxilrqFailure Disable receives interrupt failure PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 39 4 1 14 CAN RxirqStatus Description Obtain receive interrupt status of the CAN controller Syntax int CAN RxirqgStatus BYTE BoardNo BYTE Port BYTE bStatus Parameter BoardNo input PISO CAN or PCM CAN board
14. Error CAN controller enter operating mode failure PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 55 4 1 26 CAN OutputByte e Description Write data to CAN chip SJA1000 e Syntax void CAN OutputByte BYTE BoardNo BYTE Port WORD wOffset BYTE bValue e Parameter BoardNo input PISO CAN or PCM CAN board number 0 7 Port input CAN port number 1 4 or 1 2 wOffset input Address offset from base address bValue input Data byte e Return None FESO CAN Seles Card A CMe eee SET S Menten VETE LTA to No e oo 4 1 27 CAN inputByte e Description Read data from CAN chip SJA1000 e Syntax BYTE CAN InputByte BYTE BoardNo BYTE Port WORD wOffset e Parameter BoardNo input PISO CAN or PCM CAN board number 0 7 Port input GAN port number 1 4 or 1 2 wOffset input Address offset from base address e Return Data Byte of CAN chip PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 57 4 1 28 CAN GetSystemFreq e Description Get the clock frequency It is useful for calculate the time of the time stamp for reception message e Syntax LONGLONG CAN GetSystemFreq void e Parameter None e Return In Windows 98 Me NT4 is clock frequency in Windows 2000 XP is always 10000000 PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 58 4 1 29 CAN IinstaliUserisr
15. N Cc N PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 24 Table 4 2 Interpretation of the return code Return Code Comment CAN DriverError Driver error 3 CAN ActiveBoardError This board can t be activated 7 maximum board number 7 CAN PortNumberError The port number exceeds the H maximum port number 5 CAN_ResetError CAN chip hardware reset error 6 CAN SofiResetEror CAN chip software reset error GAN InifEror CAN chip initiation error CAN ConfigError CAN chip configure error CAN SetACRError Set to Acceptance Code Register a error CAN SetAMRError Set to Acceptance Mask Register a error MO GAN SetBaudRateError Set Baud Rate error m GAN EnableRxirqFailure Enable CAN chip receive interrupt 7 failure CAN_InstalllrqFailure Installing PCI board IRQ failure CAN RemovelrqFailure Removing PCI board IRQ failure CAN TransmitBufferLocked Transmit buffer in CAN chip is ge locked 17 CAN Transmitincomplete Previously transmission is not yet a completed 18 AN ReceiveBufferEmpty CAN chip RXFIFO is empty Data was lost because there was CAN DataOverrun not enough space in CAN chip RXFIFO 20 GAN ReceiveError Receive data is not completed 21 CAN SofiBufferisEmpty Software buffer in driver is empty 28 CAN SofiBuferisFul Software buffer in driver is full CAN TimeOut Function no response and timeout 24 CAN_InstalllsrError Installing user ISR failure mm CAN D
16. N message into the text boxes above the transmission list Then click add button to insert this CAN message into transmission list The transmission list can include maximum 20 CAN PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 68 messages After adding the message into transmission list users can send this message to CAN network by using Send button Modify Button If users want to modify the content of some CAN message in the transmission list select this CAN messages in the transmission list firstly Then this CAN message information will be shown in the text boxes above the transmission list Users can modify the CAN message in these text boxes directly Finally click Modify button to save the modification in the transmission list Delete Button If some CAN message in the transmission list is useless users can select it and click delete button to delete this CAN message from transmission list Send Button After users select one CAN message from transmission list click Send button to send this CAN message once from the selected CAN port lf the timer parameter of this CAN message is not 0 the CAN message will be send depending on this timer parameter periodically In this case the status filed of this CAN message in transmission list will display Running and the text shown on the Send button will be changed to Pause If uses want to stop the message transmission click this button
17. O CAN400 PISO CAN200U PISO CAN 400U PISO CAN200E PCM CAN200 card ADP 9 Board for PISO CAN400 PISO CAN4OOU only Software CD ROM it is recommended that users read the release note first All the important information needed will be provided in the release note as follows DI DI DI DI Where you can find the software driver utility and demo programs How to install software amp utility Where is the diagnostic program FAQ s and answers Attention lf any of these items are missing or damaged please contact your local field agent Keep aside the shipping materials and carton in case you want to ship or store the product in the future PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 7 2 Hardware Configuration This section will describe the hardware settings of the PISO CAN200 PISO CAN400 PISO 200U PISO CAN400U PISO CAN200E PCM CANZ200 This information includes the wire connection and terminal resistance configuration for the CAN network 2 1 Board Layout JPG JP7 wee D n acasa A FE LI PISO CAN200 Figure2 1 PISO CAN200 Board LAYOUT PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 8 LI SJA1000T LJ Ja eee Pi oO SJA1000T Le sel 0 JPo ee el Elei PISO GANJOU Figure2 2 PISO CAN400 Board LAYOUT EH E LODOLWNAS LOOOLWIS Port 2 JP O 5
18. PISO CAN 200 200U 400 400U 200E or PCM CANZ200 only for PISO CM100 PISO CPM100 and PISO DNM100 Configuration Menu File Mini About Board Configuration Data Format Dr oftware ID Mask TRIP INTO Board Configuration Users can click Board Configuration to re configure the CAN board Please refer to 1 CAN Configure Dialog of this section for more detail information m Data Format In this function user can set what kind of format such as hexadecimal decimal or ASCII the CAN message with specific ID will be displayed on the reception list The setting dialog is as follows For example set the data format of the byte2 byte6 of the CAN message with ID 0x1AA to the decimal format Then the reception list will display the byte2 byte 6 data of the message with ID 0x1AA by using decimal format and display the other bytes of this message by using hexadecimal format Any message without configuring data format will be shown by using hexadecimal format Users can configure maximum 20 different ID messages in this dialog PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 71 Data Converter Port NO Port 1 Port 1 Data Format Byte 0 Byte 1 Byte 2 Byte3 Byte A BGyte5 Byteb Byte Jaa Hex Hex v Dec Dec Dec v Dec v Dec Hex en DIE l Bwn Seil Bye Bye Dyed Byes Byk6 Gil HEX HEX DEC DEC DEC DEC DEC WR Software ID Mask If user
19. PISO CAN400 CAN200 D T PISO CAN400U CAN200U D T PISO CAN200E PCM CAN200 D User s Manual Warranty All products manufactured by ICP DAS are warranted against defective materials for a period of one year from the date of delivery to the original purchaser Warning ICP DAS assume no liability for damages consequent to the use of this product ICP DAS reserves the right to change this manual at any time without notice The information furnished by ICP DAS is believed to be accurate and reliable However no responsibility is assumed by ICP DAS for its use nor for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright 2003 by ICP DAS All rights are reserved Trademark The names used for identification only maybe registered trademarks of their respective companies PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 l Tables of Content 1 General NONM AU ON EE 4 Lr SITET OOU CHOI E 4 12 FONUF S triye kin ak lk a kk a n m e kn n n e e 5 1 3 Specifications E 6 1 4 PIOOUCT CHECKLIST ina ayin an kn n E 7 Hardware Configuration E 8 ZA BON LAV OU EN 8 2 2 Jumper SClCCHON EE 12 2 3 Connector Pin ASSIQNMENI 0 00rveeeeeressssrensssenaasnonaaannnaannnnaannnnn 15 2 3 1 5 pin screw terminal CONNECHOL rreeeressseessrasanenannnannnnan 15 2 3 2 9 pin D sub male connectors rvaerreassresastasasnanannnnannnnannn 16 24 AVSIM AU OW E 1
20. SO CAN or PCM CAN board number 0 7 Port input CAN port number 1 4 or 1 2 AccCode Acceptance code for CAN controller AccMask Acceptance mask for CAN controller BaudRate O user defined must to set BTO BT1 1 10Kbps 2 20Kbps 3 50Kbps 4 125Kbps 5 250Kbps 6 500Kbps 7 800Kbps 8 1Mbps BTO BT1 user defined baud rate used only if BaudRate 0 For example BTO Ox04 BT1 0x1C then baud rate setting for the CAN controller is 100Kbps For more detail baud rate setting please refer to manual of SJA1000 CAN controller e Return CAN_NoError OK PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 36 CAN DriverError Kernel driver can t be opened CAN BoardNumberError BoardNo is not correct or exceeds the current total board number CAN PoriNumberError Port number is not correct CAN ActiveBoardError This board is not activated CAN SoftResetError CAN controller software reset error CAN_SetACRError Set Acceptance code to CAN controller error CAN_SetAMRError Set Acceptance mask to CAN controller error CAN_SetBaudRateError Set baud rate to CAN controller error CAN ConfigError CAN controller enter operating mode failure PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 37 4 1 12 CAN EnableRxirq e Description Enable receive interrupt for CAN controller e Syntax int CAN EnableRxlrq BYTE BoardNo BYT
21. a hes 11 22 33 44 55 6677 88 Timebtamp 3645 841925719361 sec 05 Mode 0 I0 5h ATA 0 DLC 8 Datafhes 11 22 33 44 55 66 77 86 Timebtamp 3850 62713166053sec Status E Figure 5 2 The form of demo2 program PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 66 6 CANUtility Program for Windows For PISO CAN 200 400 200U 400U 200E or PCM CAN 200 we provide a friendly CAN bus utility tool to allow users to send receive the CAN messages to from CAN network easily This utility tool can be thought as a useful tool for monitoring CAN messages or testing CAN devices on the CAN network It supplies several functions such as sending CAN messages receiving CAN messages storing CAN messages cyclic transmission and so forth The operation principle will be addressed in the following sub section 1 CAN Configure Dialog Please click the Board No combo box to select which CAN board plugged on the pc will be used Check the Port Enable check boxes to enable CAN ports Then select CAN port tag According to CAN communication requirement users need to set the proper baud rate acceptance code and acceptance mask The Baud Rate combo box has eight kinds of baud 10K 20K 50K 125K 250K 500K 800K and 1M Users can also define the special baud by using BTO and BI 1 field If users select the user defined baud rate users must have the background of the CAN chip SJA1000 Afterwards click OK to save the con
22. ameter after calling this function input Yes No output No Yes PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 23 Table 4 1 DLL function definition Function definition WORD CAN GetDilVersion 6 int CAN TotalBoard int CAN GetBoardinf BYTE BoardNo DWORD dw VID DWORD dwDID DWORD dwSVID DWORD dwSDID DWORD 21 int CAN BoardlsActive BYTE BoardNo int CAN Config BYTE BoardNo BYTE Port ConfigStruct CanConfig int CAN ConfigWithoutStructure BYTE BoardNo BYTE Port DWORD 36 AccCode DWORD AccMask BYTE BaudRate BYTE BTO BYTE BT1 int CAN Removelrq BYTE BoardNo int CAN IrqStatus BYTE BoardNo BYTE bStatus 43 int CAN Status BYTE BoardNo BYTE Port BYTE bStatus int CAN SendMsg BYTE BoardNo BYTE Port PacketStruct CanPacket 46 int CAN SendWithoutStruct BYTE BoardNo BYTE Port BYTE Mode DWORD ld BYTE Rtr BYTE Dlen BYTE Data int CAN RxMsgCount BYTE BoardNo BYTE Port int CAN ReceiveMsg BYTE BoardNo BYTE Port PacketStruct CanPacket 5 int CAN ReceiveWithoutStruct BYTE BoardNo BYTE Port BYTE Mode DWORD ld BYTE Rtr BYTE Dlen BYTE Data LONGLONG MsgTimeStamps int CAN_ClearSoftBuffer BYTE BoardNo BYTE Port int CAN ClearDataOverrun BYTE BoardNo BYTE Port void CAN OutputByte BYTE BoardNo BYTE Port WORD wOffset BYTE bValue A K O1 O1 O1 O1 IO OH O1 A gt A O COIN Oo iOS
23. cally but reception list still get the CAN messages from CAN port The default status of this button is pushed down 5 Menu Function There are three functions on the CAN Utility menu ie Configuration About Load Configuration l 3 For pave Confisuratiorn pave Reception List x Update Firmware File Menu HM Load Configuration If users had have saved the configuration by using CANUtility before users can click Load Configuration function to load the older records into these lists of CAN Utility HM Save Configuration The function is used for saving the transmission list data format list and ID mask list of each CAN port to a txt file m Save Reception List Save Receive List is used for saving the CAN messages that is received on the reception list The data in PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 70 the reception list of each different CAN port will be saved into different txt file except that the reception list has no message For example if users want to save the data in the reception list to test txt file generally these data will be saved to four txt files text port01 txt text port02 txt text portO3 txt and text portO4 txt when users using PISO CAN400 If the reception list of the port 2 has no data the text port02 txt file will not be produced WR Update Firmare Update firmware of the CAN board This function can not be used to the
24. ceive CAN messages with IRQ PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 64 A brief introduction of the demo programs DEMO1 Demo1 is the example used for starting the PISO CAN or PCM CAN board This demo program is designed to send out the CAN message through Port 1 and receive the CAN message immediately at port 2 in the same PISO CAN or PCM CAN board Before exercising this demo the user needs to finish the CAN median wiring connection between port 1 and port 2 Based on this demo the user can key in the CAN message into the port 1 frame area and then click the Send button in order to send out the CAN message to port 2 lf you click the Receive button in the CAN port 2 frame area the CAN message received by CAN port 2 will be presented in TEXT box This is shown in the below screenshot Note that if port 2 displays a warning message like CAN Data Overrun then it is an indication that the un read messages within the 64 bytes RXFIFO CAN buffer have been covered by another message This means that the messages that are being received from the CAN bus may be in error and or they may be missing part of the message Then the user can click on the Clear Overrun button to clear the RXFIFO buffer overrun status within the CAN controller w PISO CAN400 200 demo1 Fart 1 ID thes ATR DLC 1 2 3 4 S E T a 23 o NW o RW 22 2 un sa oc ou o M Extened 29 bit ID status a Send
25. e called once before exiting the user s application program e Syntax int CAN CloseBoard BYTE BoardNo e Parameter BoardNo input PISO CAN 200 400 200U 400U 200E or PCM CAN 200 board number 0 7 e Return CAN NoeError OK CAN ActiveBoardError The board is not activated CAN BoardNumberError BoardNo exceeds the current total board number PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 30 4 1 7 CAN BoardisActive e Description Obtain the information about the specific board is active or not e Syntax int CAN BoardisActive BYTE BoardNo e Parameter BoardNo input PISO CAN 200 400 200U 400U 200E or PCM CAN 200 board number 0 7 e Return 0 means the board is inactive 1 means the board is active EE 4 1 8 CAN Reset e Description Hardware reset CAN controller e Syntax int CAN Reset BYTE BoardNo BYTE Port e Parameter BoardNo input PISO CAN or PCM CAN board number 0 7 Port input CAN port number 1 4 or 1 2 e Return CAN NoeError OK CAN DriverError Kernel driver can t be opened CAN BoardNumbereError BoardNo is not correct or exceeds the current total board number CAN PortNumbereError Port number is not correct CAN ActiveBoardError This board is not activated PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 32 4 1 9 CAN init e Description Initiate CAN controller e Sy
26. en 1 bit 3 Transmission Complete Status 1 complete 0 incomplete bit 2 Transmit Buffer Status sed bit 1 Data Overrun Status 1 loverrun 0 absent ep Buffer Status ES full not empty o pm e Return EEO LAN SSES Card A PON eee T SETS MANGAN VECE LTA E CAN NoError OK CAN BoardNumberError BoardNo is not correct or exceeds the current total board number CAN PoriNumberError Port number is not correct CAN ActiveBoardError This board is not activated PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 45 4 1 19 CAN SendMsg Description Send a CAN message immediately Syntax int CAN SendMsg BYTE BoardNo BYTE Port PacketStruct CanPacket Parameter BoardNo input PISO CAN or PCM CAN board number 0 7 Port input CAN port number 1 4 or 1 2 CanPacket input The point of structure for CanPacket is defined as following typedef struct packet d LONG ONG MsgTimeStamps BYTE mode DWORD id BYTE rtr BYTE len BYTE data 8 PacketStruct MsgTimeStamps Not use in this function mode 0 11 bit identifier 1 29 bit identifier id Identifier rtr Remote transmission request len Data length PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 46 data 8 data byte e Return CAN NoeError OK CAN BoardNumberError BoardNo is not correct or exceeds the current total board number CAN Po
27. ete please turn on the computer again PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 17 3 Software Installation The driver of PISO CAN or PCM CAN can be used in 98 Me NT 2K XP Windows environments Users can find the driver in the path of ACANIPCIPISO CAN200 400 in the Fieldbus CD Execute the PISO CAN exe file to start install the driver Install the PISO CAN or PCM CAN card driver Step 1 Insert the product CD into the CD ROM and find the path CAN PCI PISO CAN200 400 2K XP ex the OS is Windows 2000 or XP Then execute the PISO CAN exe to install the PISO CAN card driver Ge PISO CAN200_400 fa felled BRE RE WA BeBe Tam 4 0O O 3 Pee gt ax BALD DACAMPCHPISO CAN200_400 ei EI PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 18 Step 2 Click Next to start the PISO CAN installation PISO CAN2Z00400 D T Setup Welcome to the PISO CAN200400 D T Yer 1 17 for Windows XP Steup This wizard will install the driver of PISO CANZO0400 DT on your computer Click Next to continue or Cancel to exit Setup Wizard i Cancel Step 3 Select the folder where the PISO CAN setup would be installed and click Next button to continue PISO CAN2Z00400 D T Setup Choose Destination Location Select folder where setup will install files Install PISO CANZOD400 DAT to CAICPOAS DG AN Change In
28. figuration Configuration PISO CAN4AD0U Board No Board No 0 PISO CAMN4Q0U PertEnable w Port 1 w Pont Port 3 Port 4 Acceptance Mask Baud Hate ACH 0 FF 125K vi ACM 1 FF BTOf 00 ACM 2 FF ACM 3 FF sl 2 Main Dialog The CAN Utility main dialog is as following figure There are 2 tags and 4 tags for two port card PISO CAN 200 PCM CAN 200 and four port card PISO CAN 400 respectively In the bottom of the main dialog the status bar shows five parameters board number port status baud rate acceptance code and acceptance mask for the selected port CAN Utility PISO CAN400U File Configuration About Port Port2 Port Porta Mode Die RIR Dien DO Dih Dah Dh Dah Demo D Deh Timerlmsi miom No ee WI UE No Mode ID RIR Len DO D D2 D3 D4 DS D6 Di Timer Status end IL ETE Len DU D1 De D3 D4 DS Do D Time Stamps s a Bau Bauen Port Status Enable Band Rate 125 ACC Code 00 00 00 00 ACU Mask FE FE FF FF 3 CAN Transmission Function In the CAN port transmits part page as follow figure there are four function buttons for transmission list to use CAN Utility PISO CAN400T File Configuration About Port Port2 Port Forts Mode Did RIR Dien DO Did Daw D3h Dao Di Doth Du Timertms muwpl Ne sif8sf PANNAN Mo Mode D RR Len DO DI 3 DA D 05 06 07 timer se Add Button User can key in the CA
29. hat the bit in the same position of message ID needs to be checked Acceptance Filtering CAN Message send trams RTR bi 11 bit dentier Datat Data2 Bits used for acceptance filtering Receive l FIFO Filter oo OR Extended Frame RTR bit 11 bit Identifier A 18 bit Identifier W Bits used for acceptance filtering Figure A 1 Acceptance Filter PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 73 Example 1 Assume that a message with a Standard Frame is considered The Acceptance Code Registers ACRn and Acceptance Mask Registers AMRn is set as follows SCHREIER ACRn O1xx x010 xxxx XXXX XXXX XXXX XXXX AMRn 001 1000 1111 1111 1111 11111 1111 Accepted messages ID 28 ID 18 RTR xv zdont care only the upper 4 bits of ACHT and AMR1 are used 01xx x010 XXXX In this case the ACRO and the AMRO are used for the upper 8 bits of message ID The upper 4 bits of the ACR1 and AMR1 are used for the lower 3 bits of the message ID and RTR bit The lower 4 bits of the ACR1 and AMR1 are useless The ACR2 and AMR2 are used for the first data byte of the CAN message The ACR3 and AMR3 are used for the second data byte of the CAN message Therefore no matter the CAN message is remote transmit request message or not the message ID with the format 01xx x010 xxx will be accepted x means don t care PISO CAN Series Card amp PCM CAN200 User s Ma
30. isableRxlrqFailure Disable CAN chip receive interrupt 8 failure PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 25 4 1 1 CAN GetDilVersion e Description Obtain the version information of PISOCAN dII driver e Syntax WORD CAN GetDilVersion viod e Parameter None e Return DLL version information For example If 101 hex is return it means driver version is 1 01 4 1 2 CAN TotalBoard e Description Obtain the amount of all PISO CAN or PCM CAN boards installed in the PCI bus e Syntax int CAN TotalBoard void e Parameter None e Return Return the amount of all board PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 26 4 1 3 CAN GetBoardinf Description Obtain the information of PISO CAN or PCM CAN boards which include vender ID device ID and interrupt number Syntax int CAN GetBoardinf BYTE BoardNo DWORD dw VID DWORD dwDID DWORD dwSVID DWORD dwSDID DWORD dwSAuxiD DWORD dwlrqNo Parameter BoardNo input PISO CAN or PCM CAN board number dwVID output vendor ID of this board dwDID output device ID of this board dwSVID output sub vendor ID of this board dwSDID output sub device ID of this board dwSAuxilD output sub auxiliary ID of this board dwlrq output logical interrupt number of this board Return CAN NoeError OK CAN DriverError Kernel dr
31. iver can not be opened CAN BoardNumberError BoardNo exceeds the current total board number PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 21 4 1 4 CAN GetCardPortiNum FESO CAN Seles Gao POM eee L SETS Antan VECE LTA to do ee oo Description Call this function to Get CAN port number of the CAN card Syntax int CAN GetCardPortNum BYTE BoardNo BYTE bGetPortNum Parameter BoardNo input PISO CAN or PCM CAN board number 0 7 bGetPortNum output Port number of the CAN card Return CAN NoeError OK CAN DriverError Kernel driver can not be opened CAN BoardNumberError BoardNo exceeds the current total board number 4 1 5 CAN ActiveBoard e Description Activate the device It must be called once before using other functions of PISO CAN 200 400 200U 400U 200E or PCM CAN 200 board e Syntax int CAN ActiveBoard BYTE BoardNo e Parameter BoardNo input PISO CAN 200 400 200U 400U 200E or PCM CAN 200 board number 0 7 e Return CAN_NoError OK CAN_BoardNumberError BoardNo exceeds the current total board number CAN_ActiveBoardError This board can not be activated or kernel driver can not be found PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 29 4 1 6 CAN CloseBoard e Description Stop and close the kernel driver and release the device resource from computer device resource This method must b
32. m J 2 3 PISO GANZOOU Figure2 3 PISO CAN200U Board LAYOUT PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 9 un La Lo L T Je jan jn CH CX CH CX 3 JF PISO CAN400U Figure2 4 PISO CAN400U Board LAYOUT Figure2 5 ADP 9 Board LAYOUT For PISO CAN400 PISO CAN400U Only PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 10 PISO CANZODE Figure2 6 PISO CAN200E Board LAYOUT Figure2 7 PCM CAN200 Board LAYOUT PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 11 2 2 Jumper Selection PISO CAN200 D T and PISO CAN400 D T Table 2 1 Jumper Selections e Semer me CAN Port 3 Connector connecting PISO CAN400 board and ADP 9 board CAN Port 4 Connector connecting PISO CAN400 board and ADP 9 board resister 120Q selection Port 2 terminator resister 120Q selection Port 3 terminator resister 120Q selection Port 4 terminator resister 120Q selection Port 1 terminator PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 JP1 DEE BE 12 3 3 Pint CAN L Pin2 CAN H Pin3 Shield ge W DE BE 123 3 Pin1 CAN L Pin2 CAN H Pin3 Shield PISO CAN200U D T and PISO CAN400U D T Table 2 2 Jumper Selections e Semer me JP5 e e a CAN Port 3 Connector 123 connecting PISO CAN400U ae board and ADP 9 board Ee Pin2 CAN H
33. ntax int CAN Init BYTE BoardNo BYTE Port e Parameter BoardNo input PISO CAN or PCM CAN board number 0 7 Port input CAN port number 1 4 or 1 2 e Return CAN NoeError OK CAN DriverError Kernel driver can t be opened CAN BoardNumberError BoardNo is not correct or exceeds the current total board number CAN PortNumbereError Port number is not correct CAN ActiveBoardError This board is not activated CAN InitError Initiating CAN controller failure PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 33 4 1 10 CAN Config e Description Configure CAN controller After calling this function the CAN controller will enter operating mode e sSyntax int CAN Config BYTE BoardNo BYTE Port ConfigStruct CanConifig e Parameter BoardNo input PISO CAN or PCM CAN board number 0 7 Port input GAN port number 1 4 or 1 2 ConfigStruct input The point of structure for ConfigStruct is defined as following typedef struct config d BYTE AccCode 4 BYTE AccMask 4 BYTE BaudRate BYTE BTO BT1 ConfigStruct AccCode 4 Acceptance code for CAN controller AccMask 4 Acceptance mask for CAN controller BaudRate O user defined must to set BT0 BT1 1 10Kbps 2 20Kbps 350Kbps 4 125Kbps 5 250Kbps 6 500Kbps 800Kbps 8 1Mbps BTO BT 1 user defined baud rate used only if BaudRate 0 For PISO CAN Series Card amp PCM CAN200 Use
34. nual Ver 2 1 12 15 08 74 Example 2 Assume that a message with an Extended Frame is considered The Acceptance Code Registers ACRn and Acceptance Mask Registers AMRn is set as follows ACRn 1011 0100 1011 000x 1100 3 xxxx 0011 Oxxx AMRn 0000 0000 0000 0001 0000 1111 0000 0111 Accepted messages ID 28 ID 0 RTR 1011 0100 1011 000x 1100 xxxx 0011 Ox xv zsdont care only the upper 6 bits of ACR3 and AMR3 are used In this case the lower 2 bits of AMR3 and AMR3 are useless All the other bits of Acceptance Code and Acceptance Mask will be used for the 29 bit message ID and the RTR bit Therefore no matter the CAN message is RTR remote transmit request message or not the message ID follows the format 1011 0100 1011 000x 1100 xxxx 0011 Ox x means don t care will be accepted PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 75
35. provide this function is for that the structure address of some application development is allocated different from the PISOCAN lib like dot Net 2003 So if users use CAN ReceiveMsg and can t receive CAN message correctly the CAN ReceiveWithoutStruct function can instead e Syntax int CAN ReceiveWithoutStruct BYTE BoardNo BYTE Port BYTE Mode DWORD ld BYTE Rtr BYTE Dlen BYTE Data DWORD H_MsgTimeStamps DWORD L_MsgTimeStamps e Parameter BoardNo input PISO CAN or PCM CAN board number 0 7 Port input CAN port number 1 4 or 1 2 Mode 0 11 bit identifier 1 29 bit identifier Id Identifier Rtr Remote transmission request Dlen Data length Data data byte H MsgTimeStamps L_MsglimeStamps These parameters in Windows 98 Me NT4 will record the time with system clock counter and in Windows 2000 XP will record the system interrupt time count of 100 ns unit when the CAN message is received from SJA1000 The H MsgTimeStamps is the high PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 52 DWORD and the L MsgTimeStamps is the low DWORD The system clock counter starts to count after the PC boots up li more than one CAN messages are received and stored in the G4 byte SJA1000 FIFO the time stamps of these CAN messages may be closed e Return CAN NoError OK CAN BoardNumberError BoardNo is not correct or exceeds the current total board number
36. r s Manual Ver 2 1 12 15 08 34 example BTO Ox04 BT1 0x1C then baud rate setting for the CAN controller is 100Kbps For more detail baud rate setting please refer to manual of SJA1000 CAN controller e Return CAN_NoError OK CAN DriverError Kernel driver can t be opened CAN BoardNumberError BoardNo is not correct or exceeds the current total board number CAN PortNumbereError Port number is not correct CAN ActiveBoardError This board is not activated CAN SoftResetError CAN controller software reset error CAN_SetACRError Set Acceptance code to CAN controller error CAN_SetAMRError Set Acceptance mask to CAN controller error CAN_SetBaudRateError Set baud rate to CAN controller error CAN ConfigError CAN controller enter operating mode failure PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 35 4 1 11 CAN ConfigWithoutStructure e Description This function is the same as CAN Config But this function doesn t use ConfigStruct structure type To provide this function is for that the structure address of some application development is allocated different from the PISOCAN lib So if users use CAN Config and can t configure CAN card correctly the CAN ConfigWithoutStruct function can instead e Syntax int CAN ConfigWithoutStructure BYTE BoardNo BYTE Port DWORD AccCode DWORD AccMask BYTE BaudRate BYTE BTO BYTE BT1 e Parameter BoardNo input PI
37. riNumberError Port number is not correct CAN ActiveBoardError This board is not activated CAN TransmitBufferLocked Transmit buffer in CAN chip is locked CAN Transmitincomplete Transmission is not yet completed CAN ConfigError Port has not been configured successfully PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 47 4 1 20 CAN_SendWithoutStruct Description This function is the same as CAN_SendMsg But this function doesn t use PacketStruct structure type If users use CAN SendMSsg and can t send CAN message correctly with some application development like dot Net 2003 the CAN SendwWithoutSitruct function can instead Syntax int CAN SendWithoutStruct BYTE BoardNo BYTE Port BYTE Mode DWORD ld BYTE Rtr BYTE Dlen BYTE Data Parameter BoardNo input PISO CAN or PCM CAN board number 0 7 Port input CAN port number 1 4 or 1 2 Mode 0 11 bit identifier 1 29 bit identifier ld Identifier Rtr Remote transmission request Dien Data length Data data byte Return CAN_NoError OK CAN_BoardNumberError BoardNo is not correct CAN PoriNumberError Port number is not correct CAN ActiveBoardError This board is not activated CAN TransmitBufferLocked Transmit buffer in CAN chip is locked CAN Transmitincomplete Transmission is not yet completed CAN ConfigError Port has not been configured successfully PISO CAN Series Card 8 PCM CAN200 U
38. s don t want to show some message with specific ID on the reception list the ID mask function is useful for that As following figure users can set maximum 20 different ID message in the ID mask list Afterwards if the CAN port receives the message with the ID set in ID mask list the CAN message will not shown in the reception list ID Hasker Part NO Port 1 vi Port 1 Data Format About Show the information about the CAN Utility version and the ICP DAS home page About CANT tility CANT tility Version 3 04 Beta Copyright C 2007 by ICP DAS CO LTD Al rights are reserved Website http www Acpdas con PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 12 f Appendix 1 Acceptance Filtering Four 8 bits Acceptance Code registers ACO AC1 AC2 and AC3 and Acceptance Mask registers AMO AM1 AM2 and AM3 are available for a various filtering of messages These registers can be used for controlling a 4 byte filter which can check the specific bits of a CAN message and decide if this message will be passed to the CAN card or not The message filter general concept is shown in Figure A 1 The Acceptance Code Register is mainly used for deciding what kind of message ID the CAN card will accept The Acceptance Mask Register is mainly used for deciding which bit of message ID will need to check by using the Acceptance Code Register If the bit of the Acceptance Mask is set to O it means t
39. ser s Manual Ver 2 1 12 15 08 48 4 1 21 CAN RxMsgCount e Description Obtain the amount of CAN messages available within the CAN controller s RXFIFO or the software buffer 4KBytes After calling the functions CAN EnableRxirq and CAN Installlrq the amount of CAN messages is within the software buffer otherwise it is within the CAN controller s RXFIFO e Syntax int CAN RxMsgCount BYTE BoardNo BYTE Port e Parameter BoardNo input PISO CAN or PCM CAN board number 0 7 Port input CAN port number 1 4 or 1 2 e Return The amount of CAN messages Note If the parameter for BoardNo or Port isn t correct the return value will always be 0 PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 49 4 1 22 CAN ReceiveMsg e Description Obtain receive message from CAN controller s RXFIFO or software buffer After calling the functions CAN EnableRxirq and CAN_Installirq the messages is within the software buffer otherwise it is within the CAN controller s RXFIFO Note If users PC go into Standby mode or Sleep mode this function will can t receive any message e Syntax int CAN ReceiveMsg BYTE BoardNo BYTE Port PacketStruct CanPacket e Parameter BoardNo input PISO CAN or PCM CAN board number 0 7 Port input CAN port number 1 4 or 1 2 CanPacket output The structure for CanPacket is defined below typedef struct packe
40. stall5hield i Lancel PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 19 Step 4 Click the button Install to continue PISO CAN2Z00400 D T Setup Ready to Install the Program The wizard tt ready to begin installation Click Install ta begin the installation IF you want to review or change any of pour installation settings click Back Click Cancel to exit the wizard Cancel Step 5 Finally restart the computer to complete the installation Restarting Windows Setup has finished copying files to pour computer Before pou can use the program pou must restart pour computer Select one of the following options and click D to finish setup ee Eerie CA ON es ee ee eee When finishing the installation The PISO CAN folder would be found at the Start menu shown as below fm ICPDAS Mama Utility Ver 3 11 gt H Mam Studio Ver 1 00 ti EH CAN Gateway ki fai PISO CAN Mi Demo en Modbus Utility H Ca Driver en PISO CM100 H gt Manual 7 CAN Zug KR E ReadMe EH EZ Data Logger vi e ia ANS k 8 C Paus Dm WhaiNew Remove the PISO CAN driver If the PISO CAN driver is not used any more users can click the Uninstall to remove the PISO CAN driver below 2 Demo 2 Driver ReadMe PISOCANK ri E Mate Utility Ver 3 11 gt g CANUElity MiniOS7 Studio Ver 1 00 CEE iE CAN Gateway 1 Whatew fai PISO CAN
41. system In CAN networks there IS no addressing of subscribers or stations in the conventional sense but instead prioritized messages are transmitted As a stand alone CAN controller PISO CAN 200 400 200U 400U 200E and PCM CAN 200 represents an economic solution within which an active CAN board can have two or four independent CAN bus communication ports with either a 5 pin screw terminal connector or a 9 pin D sub connector It can be a master slave interface and be applied in various CAN applications In addition these CAN cards use the new NXP SJA1000T and transceiver 82C250 251 which provide the bus arbitration and error detection The differences between these CAN cards are the interface of PC Some are for PCI interface some are for PCI Express interface and some are for PCI 104 interface To get the detail information for the features and the specification of these CAN cards please refer to the section 1 2 and 1 3 FESO CEN Sees Card A CBU eee SET S Menten VET E LTA tye 1 2 Features PCI BUS interface 2500Vrms photo isolation protection Four or two independent CAN communication ports Compatible with CAN specification 2 0 parts A and B On board optical isolation protection Programmable transfer rate up to 1 Mbps Jumper select 120Q terminator resistor for each port Direct memory mapping to the CAN controllers PISO CAN 200 D T and PISO CAN 400 D T E 33MHz 32bit 5V PCI bus V2 1 plug and play technology m PCI card supports 5V PCI b
42. t d LONG ONG MsgTimeStamps BYTE mode DWORD id BYTE rtr BYTE len BYTE data 8 PacketStruct MsgTimeStamps This parameter in Windows 98 Me NT4 will record the PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 50 time with system clock counter and in Windows 2000 XP will record the system interrupt time count of 100 ns unit when the CAN message is received from SJA1000 The system clock counter starts to count after the PC boots up If more than one CAN messages are received and stored in the 64 byte SJA1000 FIFO the time stamps of these CAN messages may be closed mode 0 11 bit identifier 1 29 bit identifier id Identifier rtr Remote transmission request len Data length data 8 data byte e Return CAN_NoError OK CAN_BoardNumberError BoardNo is not correct or exceeds the current total board number CAN_PortNumberError Port number is not correct CAN ActiveBoardError This board is not activated CAN ConfigError Port has not been configured successfully CAN ReceiveBufferEmpty CAN controller s RXFIFO is empty CAN_SoftBufferlsEmpty Software RX Buffer is empty CAN_SoftBufferlsFull Software RX Buffer Is full PISO CAN Series Card amp PCM CAN200 User s Manual Ver 2 1 12 15 08 51 4 1 23 CAN ReceiveWithoutStruct e Description This function is the same as CAN ReceiveMsg But this function doesn t use PacketStruct structure type To
43. us WR 3KV galvanic isolation m 2 4 independent CAN channels for PISO CAN 200 400 e PISO CAN 200U D T and PISO CAN 400U D T HM PCI v2 2 compliant 32 bit 33MHZ HM Universal PCI card supports both 5V and 3 3V PCI bus WR 3KV galvanic isolation m 2 4 independent CAN channels for PISO CAN 200U 400U e PISO CAN 200E D T HM 32 bit 33MHz X1 PCI Express Bus m According to PCI Express specification R1 0 WR 3KV galvanic isolation m 2 independent CAN channels e PCM CAN 200 D HM PCI104 compliant E 9 pin D sub connector m 1KV galvanic isolation E 2 independent CAN channels e Driver supported for Windows 98 ME NT4 2000 XP EE 1 3 Specifications CAN controller Phillips SJA1000T CAN transceiver Phillips 82C250 251 Signal support CAN H CAN L CAN controller frequency 16 MHZ Connector 5 pin screw terminal connector or 9 pin D sub male connector Isolation voltage 2500Vrms Power requirements PISO CAN200 5V 380mA PISO CAN400 5V 640mA PISO CAN200U 5V 165mA PISO CAN400U 5V 300mA PISO CAN200E 3 3V 100mA and 12V 200mA PCM CAN200 5V 165mA 6 Environmental Operating temp 0 60 C Storage temp 20 80 C Humidity 0 90 non condensing Dimensions PISO CAN200 400 126mm X 85mm PISO CAN200U 400U 126mm X 85mm PISO CAN200E 120mm X 85mm PCM CAN200 96mm X 90mm FESO CANDO es Gao CBU eee SET S Antan VETE LTA tye 1 4 Product Check List Besides this manual the package includes the following items DI PISO CAN200 PIS
44. veMSQ 00 0r00arraearranarronasnonasnonaannaannnaaanoanannnann 50 PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 2 4 1 23 CAN ReceiveWithoutSirUCI veeeeeesessssessessoseosnssassnnanne 52 4 1 24 CAN ClearSoftBUffCf cccccccceceeeeccesceceseeceeeuceeeueeesenees 54 4 1 25 CAN _ ClearDataQve run ccccccsccccccccceececeecuceecueeecueeeeunees 55 4 1 26 GAN TT 56 4 1 27 CAN IDPUIBVIO eseye w toke kai e kk a a n a kk a 57 4 1 28 CAN GetSyStemFTrEOQ 0rr2nrrrooeoreosaoreosasnooaaannoaannnnaannnnn 58 4 1 29 CAN instaliUserisr only for Windows 2000 XP 59 4 1 30 CAN_RemoveuUserlsr only for Windows 2000 XP 60 4 2 Flow Diagram for Application rveerreeasressstesastasasnanannanannanannnnannnnn 61 Demo Programs for Vmdowe kte kte krak nana t aaa aaenasanasannoaananannnannnaannnan 64 CANUtility Program for WiINKOWSG cccessesseseeseseeeeeseesenseesennenees 67 AP P Le EE 73 7 1 ACCEDIANCE FNTONNN kikonk on a n an a a ka kk a a kn kek ken aaa 73 PISO CAN Series Card 8 PCM CAN200 User s Manual Ver 2 1 12 15 08 3 1 General Information 1 1 Introduction The CAN Controller Area Network is a serial communication protocol which efficiently supports distributed real time control with a very high level of security It is especially suited for networking intelligent devices as well as sensors and actuators within a system or sub
Download Pdf Manuals
Related Search
Related Contents
Cables to Go TE100-S55 User's Manual MANUAL DE INSTRUÇÕES DO ALICATE DIGITAL MODELO AD-7710 Foster Dissipatore 375 W Sartorius LA Reference - Waagen User Manual iris 506Q Bedienungsanleitung WCC-CCS-4000 - MacNeil Wash Systems Manual de Instalação Inbit Messenger Copyright © All rights reserved.
Failed to retrieve file