linuxcnc-ethercat
linuxcnc-ethercat copied to clipboard
AdditionalAttributes
Possibility to parse additional attributes to configure some SDO parameters in non generic components
Good issue. Maybe we like to discuss about the specific implementation. Please use english for comments/messages
I've needed something like this to move the stoeber module to the class_enc use. But I have used a little different method that allowes type save preparsing in the lcec_conf module and dynamic allocated items:
https://github.com/sittner/linuxcnc-ethercat/commit/825a9a04009451399285a627ec926e53c22feabb
please check if that will fit your needs.
Yes, it is running, but data format is a little bit unusual:
Test.xml: masters master idx="0" appTimePeriod="4999375" refClockSyncCycles="1000" slave idx="0" type="EK1100" name="EK1100"/ slave idx="1" type="EL1018" name="EL1018"/ slave idx="2" type="EL7041-1000" name="EL7041" initCmds filename="7041_Params.xml"/ /slave /master /masters
7041_Params.xml: ?xml version="1.0" encoding="ISO-8859-1"? EtherCATMailbox><CoE><InitCmds InitCmd Transition>PS</Transition Comment></Comment Timeout>0</Timeout Ccs>1</Ccs Index>0x8010</Index SubIndex>0x01</SubIndex !--0x07D0 2000mA -- Data>D007</Data /InitCmd /InitCmds /CoE /EtherCATMailbox
you can check the value in terminal with: ethercat -p 2 upload --type uint16 0x8010 0x01