Follow the last line here
github.com/linuxcnc-ethercat/linuxcnc-et...uration-reference.md
Example of sdoconfig
Code:
<slave idx="0" name="X" type="generic" vid="00000a88" pid="0a880002" configPdos="true">
<dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="0"/>
<sdoConfig idx="2000" subIdx="0"><sdoDataRaw data ="a0 0f"/></sdoConfig> <!-- Max motor current (3.0A=b80b 4.0=a00f 5.0=8813) Rated=4.0A -->
<sdoConfig idx="2003" subIdx="0"><sdoDataRaw data ="64 00"/></sdoConfig> <!-- Standby current percentage (100%) -->
<sdoConfig idx="2011" subIdx="0"><sdoDataRaw data ="01 00"/></sdoConfig> <!-- Closed loop -->
<sdoConfig idx="2023" subIdx="1"><sdoDataRaw data ="a0 0f"/></sdoConfig> <!-- Kp=4000 (def=2000) -->
<syncManager idx="2" dir="out">
What's tricky is the byte order of the data. LSB first, so "1" becomes "01 00" and so on.