background image

CAN-PC Interface

CPC-PP

User Manual

EMS

THOMAS WÜNSCHE

Sonnenhang 3
D-85304 Ilmmünster
Tel +49-8441/490260
Fax +49-8441/81860

Documentation for CAN-Interface CPC-PP

Document version: V2.0
Documentation date: January 17th, 2005.

No part of this document or the software described herein
may be reproduced in any form without prior written
agreement from EMS Dr. Thomas Wünsche.

For technical assistance please contact:

EMS Dr. Thomas Wünsche
Sonnenhang 3

D-85304 Ilmmünster

Tel.:

+49-8441/490260

Fax:

+49-8441/81860

e-mail: [email protected]

Our products are continuously improved. Due to this fact
specifications may be changed at any time and without
announcement.

WARNING:

CPC-PP hardware and software may not be
used in applications where damage to life,
health or private property may result from
failures in or caused by these components.

CPC-PP

User Manual

ii

EMS

Dr. Thomas Wünsche

Содержание CPC-PP

Страница 1: ...ement from EMS Dr Thomas Wünsche For technical assistance please contact EMS Dr Thomas Wünsche Sonnenhang 3 D 85304 Ilmmünster Tel 49 8441 490260 Fax 49 8441 81860 e mail support ems wuensche com Our products are continuously improved Due to this fact specifications may be changed at any time and without announcement WARNING CPC PP hardware and software may not be used in applications where damage...

Страница 2: ... program Realization concepts 3 2 3 Synchronous Interface 4 2 4 Asynchronous Interface 4 2 5 Data Structures and Library Functions 5 2 6 MS Windows Driver Additional Information 13 3 Electrical Characteristics 15 3 1 Absolute Limiting Values 15 3 2 Nominal Values 16 4 Operating Instructions 17 4 1 Connection Scheme 17 4 2 Installation 18 THIS PAGE INTENTIONALLY LEFT BLANK CPC PP User Manual iv EMS...

Страница 3: ...s the development of application software on the PC The integrated microcon troller takes load of the PC CPU and prepro cesses CAN messages A high level program ming interface with modular design eases soft ware development A library of interface routines for Borland C Borland Pascal and Microsoft C 6 0 is included Power supply for CPC PP is provided directly across the CAN bus conforming with CiA...

Страница 4: ...sed in graphical user interfaces 2 3 Synchronous Interface The implementation of the main program with synchro nous interface allows simple and clearly arranged pro grams with sequential flow It is suitable mainly for simple applications which allow a predefinition of events to pro cess This is true if for exam ple only CAN messages are to be received or only bus load measurement is to be realized...

Страница 5: ...nsigned char textmsg char versionmsg char serialmsg struct CPC_CAN_MSG canmsg unsigned char canstatemsg struct CPC_CAN_PARAMS can_params_msg Description CPC_MSG serves for parameter transfer bet ween application program and interface library struct CPC_CAN_MSG Declaration struct CPC_CAN_MSG unsigned short id unsigned char length unsigned char overrun unsigned char msg 8 Description CPC_CAN_MSG ser...

Страница 6: ...re data transmission across the CAN bus Return value CPC_Control Syntax include cpc h int CPC_Control int Description CPC_Control serves for set up of the com munication object types to be transmitted from CPC PP to the PC The upper 6 bits select the type of communication object the lower 2 bits determine the transmission The properties that can be influenced are described in cpc h Return value CP...

Страница 7: ...it void Description CPC_Init initialises the communication with CPC PP CPC PP is initialised to standard pa rameters which are stored in the global struc ture CPC_Init_Params declaration in cpc h These parameters can be changed on de mand before calling CPC_Init CPC_Init is to be called before usage of the other functions of the interface library Return value 0 for correct initialization 1 for ini...

Страница 8: ... the Asynchronous Programming Interface CPC_Add_Handler Syntax include cpc h int CPC_Add_Handler void handler const struct CPC_MSG Description CPC_Add_Handler adds the handler indica ted by the pointer passed at function call to the list of handlers which are executed on any in coming CPC PP message Return value 0 on error free execution 1 if the list of handlers is full CPC_Remove_Handler Syntax ...

Страница 9: ...or information on the new version please read the CPC Series Development Kit for MS Windows environment manual The software functionality and interface equals the MS DOS version Differences exist in the software setup and a few additional functions 2 6 1 Installation The installation is provided by the setup pro gram Run SETUP EXE from delivery disk The installation program performs the follo wing...

Страница 10: ...ltage on bus connections 4 15 V Voltage on bus connections EX version 30 30 V Current across ground connection 1 A Extended temperature range on demand 3 2 Nominal Values Parameter Min Typ Max Unit Current consumption 40 120 mA Supply voltage standard version 7 14 V Supply voltage EX version 16 28 V CAN controller clock frequency 16 MHz Bus data rate 10 20 50 100 125 250 500 1000 and others kBit s...

Страница 11: ...e Installation may only be done with power re moved from the PC as well as the CAN bus CPC PP should first be connected to the PC then to the CAN bus To prevent damage due to electrostatic discharge equal electrical po tential between CPC PP and PC has to be in forced Power supply for CPC PP is achieved through the CAN bus with ground on pin 3 of the 9 pin CAN connector positive supply on pin 9 Fo...

Отзывы: