CAN Objects

Introduction

The CAN object allow the user easy access to the I/O nodes connected to a controller's CANOpen interface.

If a controller does not support the CANOpen interface, the meiCanValidate function will return MEICanMessageINTERFACE_NOT_FOUND.

The CAN system uses the MEICanConfig and MEICanNodeConfig structures to hold all of the user configurable quantities. These structures are stored in non-volatile flash memory. When the XMP is released from reset (normally soon after the host powers up or after a call to mpiControlReset), the CAN Processor will initialize itself with data from MEICanConfig and MEICanNodeConfig before starting to scanning the network for nodes.

The functions meiCanConfigGet, meiCanConfigSet, meiCanNodeConfigGet and meiCanNodeConfigSet allow the user to modify the current configuration of the CAN Processor. meiCanFlashConfigGet and meiCanFlashConfigSet functions allow the user to modify the configuration that the CAN system will use after the next reset.

The MEICanVersion structure returns the version information about the CAN system on a controller.

After the CAN processor has finished scanning the network, it will have completed the MEICanNodeInfo structures for each node. The user can call the meiCanNodeInfo function to query this initial configuration for each of the nodes.

Bit Rate | Transmission Types | Bus State | CAN Hardware | Node Health |
Emergency Messages | Handling Events | CAN Hardware on the XMP | CAN Analog Values

| Error Messages |

Methods

Create, Delete, Validate Methods
  meiCanCreate Create Can object
  meiCanDelete Delete Can object
  meiCanValidate Validate Can object

Configuration and Information Methods
meiCanConfigGet Get Can's configuration
meiCanConfigSet Set Can's configuration
meiCanFlashConfigGet Get Can's flash configuration
meiCanFlashConfigSet Set Can's flash configuration
meiCanStatus Get status of the CAN controller.
meiCanVersion Returns the version information about a controller's CAN system.
meiCanCommand Get Can's flash configuration
meiCanNodeConfigGet Return a copy of the current configuration
meiCanNodeConfigSet Update the current configuration that the specified CAN node is using.
meiCanNodeFlashConfigGet Get the flash configuration of the Can node
meiCanNodeFlashConfigSet Set the flash configuration of the Can node
meiCanNodeStatus Get the instantaneous state of the local CAN interface.
meiCanNodeInfo Return the node information after the XMP finishes scanning the network.
 
I/O Methods
meiCanNodeAnalogIn  
meiCanNodeAnalogOutGet  
meiCanNodeAnalogOutSet  
meiCanNodeDigitalIn  
meiCanNodeDigitalOutGet  
meiCanNodeDigitalOutSet  

Event Methods
meiCanEventNotifyGet Get event mask of events for which host notification has been requested
meiCanEventNotifySet Set event mask of events for which host notification will be requested

Firmware Methods
meiCanFirmwareDownload Downloads firmware to the Can controller
meiCanFirmwareErase Erases firmware on the Can controller
meiCanFirmwareUpload Uploads firmware from the Can controller

Memory Methods
meiCanMemory Get address to Can's memory
meiCanMemoryGet Copy data from Can memory to application memory
meiCanMemorySet Copy data from application memory to Recorder memory

Action Methods
meiCanInit  

Relational Methods
meiCanControl  
meiCanNumber  


Data Types

MEICanBitRate  
MEICanBusState  
MEICanCallback  
MEICanCommand  
MEICanCommandType  
MEICanConfig  
MEICanHealthType  
  MEICanMessage  
MEICanNodeConfig  
MEICanNodeInfo  
MEICanNodeInfoProductCode  
MEICanNodeInfoVendor  
MEICanNodeStatus  
MEICanNodeType  
MEICanNMTState  
MEICanStatus  
MEICanTransmissionType  
MEICanVersion  

 

Constants

MEICanNetworkMAX