EMS CPC-PP User Manual

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: 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 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
User Manual CPC-PP
EMS Dr. Thomas Wünsche iii
Contents
1 Overview..................1
1.1 Attributes ...................1
1.2 General description ..............1
1.3 Sample Applications .............2
1.4 Ordering Information .............2
2 Software ..................3
2.1 Functions of CPC-PP .............3
2.2 Application 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 Dr. Thomas Wünsche
User Manual CPC-PP
EMS Dr. Thomas Wünsche 1
1 Overview
1.1 Attributes
CPC-PP offers a range of unique features which make it valuable for many CAN based applications:
Low cost CAN-interface for IBM PC and compatibles
Connection to the parallel printer port ­usable also on notebook computers
CiA and ISO 11898 compatible bus-interface
Smart system with integrated microcon­troller of 80C32-family
Directly integrated into connector
Small size for use in low-space condi-
tions
Modular application interface with libra-
ries for Borland C++, Borland Pascal and Microsoft C 6.0
Optional MS-Windows driver with DLL based API and VxD/SYS technology for high communication throughput
1.2 General description
The small size CPC-PP module provides easy access to CAN-networks using the parallel printer port of the PC. Due to the fact that no internal card slot is required, CPC-PP can also be used with laptop or notebook computers.
CPC-PP eases 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 stan­dard DS-102. A power saving mode using va­riation of processor clock can be activated by software at low bus-speeds. Besides the con­ceptual properties also the price of CPC-PP supports low overall costs.
1.3 Sample Applications
The application area of CPC-PP is very wide. Some sample applications are detailed in the following:
Online-configuration of CAN networks
Network setup and analysis
Use of PCs as CAN nodes on the appli-
cation level
Visualisation of process parameters in CAN based systems
1.4 Ordering Information
10-00-040-20 CPC–PP
Active CAN-PC interface for printer port
10-00-140-20 CPC–PP/EX
Active CAN-PC interface for printer port with extended supply voltage range
CPC-PP User Manual
2 EMS Dr. Thomas Wünsche
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
Loading...
+ 7 hidden pages