                     README.TXT file, 31-08-2012

                     README file for LeanCANopen
             CANopen Client based on Softing CAN Layer2 API
            (C) Copyright Softing Industrial Automation GmbH


===========================================================================================
  CONTENTS
===========================================================================================

1  ABOUT LeanCANopen (CANopen Client V5.17 for CAN Layer2)
  
2  Sample Code

3  Required Runtime Components

4  Additional Functions for Layer Setting Services

5  Parameter Length Definition for All Exported Functions



1 ABOUT LeanCANopen

  LeanCANopen is a CANopen Client based on Softing'S CAN Layer2 API. The Layer7 (CANopen)
  part of the software runs on the PC under Windows 7/Vista/XP.
  
  LeanCANopen provides the following features:
  
  SDO Transfer (expedited, segmented or block)
  PDO Transfer (max. 512 receive and 512 transmit PDO)
  SYNC Master
  NMT Services
  LSS Layer Setting Services
  Error Control (Heartbeat, Node Guarding)

  Please see the "Softing CANopen Client API User Manual" for further details.
  
  Because Windows is not a realtime OS, some restrictions regarding time precision may
  apply (e.g. for SYNC generation or cyclic PDO transfer).



2  Sample Code
  LeanCANopen comes with a set of sample applications. These applications are intended
  to serve as educational examples showing the basic features of the API. They may as well
  serve as a starting point for custom applications.
  - All samples are supplied as C source code and as executable files.
  - The source code can be found in [program files]\Softing\LeanCANopen\Win32\Win32samples\C
  - Ready to use executables are located in
    [program files]\Softing\LeanCANopen\Win32\Win32samples\EXE
  - In order to start a custom project from the supplied source code you can use the sample
    project settings for Visual Studio. Each sample comes with a project file (.sln) for
    Microsoft Visual Studio 2010. You may as well use these project files together with
    later versions of Visual Studio.


  
3 Required Runtime Files:

  CANopenL2.dll: CANopen Library (Win32)
  CanL2.dll:     Layer2 Library (Win32)
  CANusbM.dll:   Additional Layer2 Library, only required if CANusb is to be used.

  The above mentioned DLLs should be placed in the application directory.
  All other required components like device drivers, Softing CAN Interface Manager or
  registry settings are automatically supplied by the mandatory CAN Layer2 Runtime System
  setup.  




4 Additional Functions for Layer Setting Services

 4.1 About Layer Setting Services

  The CANopen Client API offers an additional set of functions that implement the
  Layer Setting Services (LSS) according to [DSP CiA 305 V1.1.1].
  LSS offers the possibility to inquire and change the settings of certain parameters of a
  CANopen module with LSS Slave capabilities by a CANopen module with LSS Master
  capabilities via the CAN Network.
  
  The following parameters can be inquired and/or changed by the use of LSS:
  - Node-ID of the CANopen Slave
  - Bit timing parameters of the physical layer (baud rate)
  - LSS address (Identity Object, Index 1018H)

  By using LSS a LSS Slave can be configured for a CANopen network without using any
  hardware components like DIP switches for setting the parameters. There are several
  solutions available for LSS Slaves with and without a unique LSS-address or non-volatile
  storage.

  Please see cmadef.h and [CiA 305 V1.1.1] for more information.

 4.2 Available LSS Function Calls
      
  - LSS_ActivateBitTiming (see DSP CiA-305, 5.4.3)
  - LSS_ConfigureBitTiming (see DSP CiA-305, 5.4.2)
  - LSS_ConfigureNodeID (see DSP CiA-305, 5.4.1)
  - LSS_IdentifyNonConfiguredSlaves (see DSP CiA-305, 5.6.3)
  - LSS_IdentityRemoteSlaves (see DSP CiA-305, 5.6.1)
  - LSS_InitLSSMan (must be called to enable LSS)
  - LSS_InquireNodeID (see DSP CiA-305, 5.5.2)
  - LSS_InquireProductCode (see DSP CiA-305, 5.5.1.2)
  - LSS_InquireRevNr (see DSP CiA-305, 5.5.1.3)
  - LSS_InquireSerialNr (see DSP CiA-305, 5.5.1.4)
  - LSS_InquireVendorID (see DSP CiA-305, 5.5.1.1)
  - LSS_StoreConfiguration (see DSP CiA-305, 5.4.4)
  - LSS_SwitchModeGloabal (see DSP CiA-305, 5.3.1)
  - LSS_SwitchModeSelective (see DSP CiA-305, 5.3.2)

     
 
 
5 Parameter Length Definition for All Exported Functions

  The following shows the length of parameter data for each function.
  This may be useful information if the CANopen Client API DLL is to be linked
  to a 3rd party environment that supports the "stdcall" calling convention.
  The number behind the '@' symbol indicates the total amount of parameter data.
  Together with the function prototype in cmadef.h the actual starting position
  of each parameter should easily be determined.
  Each parameter requires 4 bytes at a 4byte aligned offset even if the actual
  size of a parameter is smaller (e.g. 1 byte for "unsigned char").


  _CMA_CloseCard@4
  _CMA_InitializeCard@20
  _CMA_Startup@4
  _CMA_ReadEvent@8
  _CMA_AddNode@16
  _CMA_RequestGuarding@12
  _CMA_ChangeState@12
  _CMA_RemoveNode@12
  _CMA_ConfigCANChannel@12
  _CMA_GetVersion@8
  _CMA_InitSDOMan@12
  _CMA_InitNodeMan@8
  _CMA_Shutdown@4
  _CMA_ConfigSyncMan@16
  _CMA_AbortSDOTransmission@8
  _CMA_InitDownload@24
  _CMA_InitBlockDownload@24
  _CMA_InitUpload@16
  _CMA_InitBlockUpload@20
  _CMA_ReadData@24
  _CMA_InstallPDO@28
  _CMA_GetAllCANChannels@16
  _CMA_InstallPDO_E@28
  _CMA_RemovePDO@8
  _CMA_WritePDO@20
  _CMA_WritePDOBit@16
  _CMA_ReadPDO@12
  _CMA_SendRemotePDO@8
  _CMA_SetIntEvent@8


  _LSS_InitLSSMan@8
  _LSS_SwitchModeGloabal@8
  _LSS_SwitchModeSelective@20
  _LSS_ConfigureNodeID@8
  _LSS_ConfigureBitTiming@12
  _LSS_ActivateBitTiming@8
  _LSS_StoreConfiguration@4
  _LSS_InquireVendorID@8
  _LSS_InquireProductCode@8
  _LSS_InquireSerialNr@8
  _LSS_InquireRevNr@8
  _LSS_InquireNodeID@8
  _LSS_IdentityRemoteSlaves@28
  _LSS_IdentifyNonConfiguredSlaves@4
 
