.

MEICanCommandType

Definition

typedef enum {
    MEICanCommandTypeSDO_READ,
    MEICanCommandTypeSDO_WRITE,
    MEICanCommandTypeCLEAR_STATUS_BITS,
    MEICanCommandTypeBUS_START,
    MEICanCommandTypeBUS_STOP,
MEICanCommandTypeNMT_ENTER_PRE_OPERATIONAL,
MEICanCommandTypeNMT_START_REMOTE_NODE,
MEICanCommandTypeNMT_STOP_REMOTE_NODE,
MEICanCommandTypeNMT_RESET_NODE, MEICanCommandTypeNMT_RESET_COMMUNICATION,
} MEICanCommandType;

Description

MEICanCommandType enumerates the different type of commands that can be used with meiCanCommand.

MEICanCommandTypeSDO_READ
  This command reads the remote nodes object dictionary using the SDO protocol.

Command data:
data[0] = Node
data[1] = Index
data[2] = SubIndex
data[3] = Length

Returned data:
data[0] = Error code
data[4] = Low Data word
data[5] = High Data word

MEICanCommandTypeSDO_WRITE
 

This command writes to a remote nodes object dictionary using the SDO protocol.

Command data:
data[0] = Node
data[1] = Index
data[2] = SubIndex
data[3] = Length
data[4] = Low Data word
data[5] = High Data word

Returned data:
data[0] = Error code

MEICanCommandTypeCLEAR_STATUS_BITS
 

Clear selected MEICanStatusBits.

Command data:
data[0], Bit map of MEICanStatusBits to clear.

Returned data:
data[0] = Error code

MEICanCommandTypeBUS_START
 

This puts the CAN bus into operational state if it is Bus off.

Command data:
None

Returned data:
data[0] = Error code

MEICanCommandTypeBUS_STOP
 

This puts the CAN bus into operational state if it is Bus off.

Command data:
None

Returned data:
data[0] = Error code

MEICanCommandTypeNMT_ENTER_PRE_OPERATIONAL
 

This issues the CANOpen NMT command "Enter Pre-Operational" to a node.

Command data:
data[0] = Node number, (0 broadcasts to all nodes)

Returned data:
data[0] = Error code

MEICanCommandTypeNMT_START_REMOTE_NODE
 

This issues the CANOpen NMT command "Start Remote Node" to a node.

Command data:
data[0] = Node number, (0 broadcasts to all nodes)

Returned data:
data[0] = Error code

MEICanCommandTypeNMT_STOP_REMOTE_NODE
 

This issues the CANOpen NMT command "Stop Remote Node" to a node.

Command data:
data[0] = Node number, (0 broadcasts to all nodes)

Returned data:
data[0] = Error code

MEICanCommandTypeNMT_RESET_NODE
 

This issues the CANOpen NMT command "Reset Node" to a node.

Command data:
data[0] = Node number, (0 broadcasts to all nodes)

Returned data:
data[0] = Error code

MEICanCommandTypeNMT_RESET_COMMUNICATION
 

This issues the CANOpen NMT command "Reset Communication" to a node.

Command data:
data[0] = Node number, (0 broadcasts to all nodes)

Returned data:
data[0] = Error code

See Also

meiCanCommand

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering