EMS CPC-PP Скачать руководство пользователя страница 4

User Manual

CPC-PP

EMS

Dr. Thomas Wünsche

3

2

Software

The software consists of two parts which com-
municate across the parallel printer port of the
PC. One part is executed by the microproces-
sor inside CPC-PP and can not be changed by
the user. The application program runs on the
PC and makes use of the interface library.

2.1 Functions of CPC-PP

CPC-PP offers enhanced functionality for CAN
communication:

Transmission and reception of
CAN-messages

Filtering and buffering of received mes-
sages

Measurement of bus-load

The functions of CPC-PP are accessed across
the interface library of the PC.

2.2 Application program: Realization concepts

The library of interface functions supports two
ways to implement the application program.
The synchronous mode complies with conven-
tional programming. The sequence of program
steps is given by the program structure. Asyn-
chronous mode allows event driven program-
ming similar to the way used 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.

2.4 Asynchronous Interface

The asynchronous interface
provides enhanced flexibility
in reaction to events which
are not predictable in their
sequence of occurrence.
Communication objects can
be processed independently
of program state, reactions
can be configured flexible.

For this purpose every com-
munication object is handed
on to a set of handling
functions. Such functions are
provided within the program-
ming library. The application
programmer can add routi-
nes as required by applicati-
on purposes.

CPC-PP

User Manual

4

EMS

Dr. Thomas Wünsche

command

execution

by CPC-PP

command

initiation

wait for result

continue

main

program

command

execution

by CPC-PP

command

initiation

further

program

execution

use result

main

program

Содержание 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...

Отзывы: