Skip to main content

CANopenDownloadDomainFromFile

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE

Function Syntax

  • void CANopenDownloadDomainFromFile(dword nodeID, dword index, dword subIndex, char[] domainDataFile, dword blockMode, dword[] errCode); // form 1
  • void CANopenDownloadDomainFromFile(SysVarName, char[] domainDataFile, dword blockMode, dword[] errCode); // form 2
  • void CANopenDownloadDomainFromFile(char[] namespace, char[] variable, char[] domainDataFile, dword blockMode, dword[] errCode); // form 3
  • void CANopenDownloadDomainFromFile(dword clientCOBID, dword serverCOBID, dword index, dword subIndex, char[] domainDataFile, dword flags, dword[] errCode); // form 4

Callback

  • void OnCANopenAbort(dword id, dword index, dword subIndex, dword abortCode);

Description

Writes the contents of a file to an entry of type DOMAIN in the object dictionary of another node…
  • form 1: … by given node ID.
  • form 2, 3: … by given system variable.
  • form 4: … by given COB-ID.

Parameters

  • nodeID: Node ID of the SDO server, i.e. the node that contains the object dictionary with the entry to be changed. Value range 1..127.
  • clientCOBID: CAN ID of the SDO client.
  • serverCOBID: CAN ID of the SDO server.
  • index: Index of the object, value range 1..65,535.
  • subIndex: Subindex of the object, value range 0..255.
  • domainDataFile: Path to a file which contains the domain data to be written.
  • blockMode:
    • 0: Use expedited or segmented data transfer
    • 1: Use block data transfer
  • errCode: Error code buffer (is entered in index 0 of the field):
    • 0: Operation can be started
    • 1: Operation already running
    • 3: Invalid Client-COBID
    • 4: Invalid Server-COBID
    • 5: No CANopen license
    • 6: No CAN channel
  • id: nodeId for form 1-3, serverCOBID for form 4.
  • abortCode: SDO abort code.
  • namespace: Name of the namespace.
  • variable: Name of the CANopen system variable.
  • SysVarName: Name of the fully qualified name of the CANopen system variable, including all namespaces, separated by ”::”. The name must be preceded by “sysVar::”.

Return Values

Example