Skip to end of banner
Go to start of banner

Ethercat.xml file cannot be downloaded

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Usually all cards are configured by a .NXD file, which is a configuration database.
In addition, the EtherCat devices are also configurable via a .XML file. The actual version of the VxWorks driver was developed before the XML configuration was indruduced by EtherCAT and
therefore, XML files do not have a build in support in the VxWorls driver.

XML support can easily be added to the driver by adding the following source code line(s):

File: USER_VxWorks.c
Function: USER_GetConfigurationFileCount()

 

/*****************************************************************************/
/*! Returns the number of firmware files associated with the card/channel,
*   passed as argument.
*   \param ptDevInfo DeviceInfo including channel number, for which the
*                    firmware file count should be read
*   \return number of firmware files, to download. The returned value will
*           be used as a maximum value for ulIdx in calls to
*           USER_GetFirmwareFile                                             */
/*****************************************************************************/
uint32_t USER_GetFirmwareFileCount(PCIFX_DEVICE_INFORMATION ptDevInfo)
{  
  uint32_t ulRet = 0;

  if(NULL != g_szDriverBaseDir)  
  {
    char szDir[CIFX_MAX_FILE_NAME_LENGTH];

    GetChannelDir(szDir, sizeof(szDir), ptDevInfo);

    /* count all .NXF, .NXO files */
    ulRet = GetNumberOfFiles(szDir, ".NXO") +  
            GetNumberOfFiles(szDir, ".NXF") + 
            GetNumberOfFiles(szDir, ".XML");
  }
  return ulRet;
}

  • No labels