I just went through the process of setting up my first ethercat motion driver, a stepper driver, but for all relevant parts this is the same as setting up a servo driver.
The delta servo driver is a CiA 402 device. "CanOpen over Ethernet"
Go to
github.com/dbraun1981/hal-cia402
, download and install the cia402 component, get the example files and put that in your hal file.
CiA402 is standardized so the object numbers 6040 and so on are all ok.
You do need to have the right "vid" and "pid". You can get that by hooking up the servo drivers to the ethercat bus and enter the command
find the numbers for "Vendor ID" and "Product ID" and put that in in the vid and pid fields.
Now it should work.
So you want to change settings of the driver? You can't do that with the pdoEntry way, you need to use the
Code:
<sdoConfig idx="60C2" subIdx="1"><sdoDataRaw data="01"/></sdoConfig>
And remember that the bytes are little endian ordered.
You need the manual to know what object number to change and which value to set. In this manual
downloadcenter.deltaww.com/downloadCente...5&DocPath=1&hl=en-US
this is in chapter 11 CanOpen (here is where that canopen/cia comes in)
Or manually using the ethercat command
Code:
ethercat pdos # List all PDOS
ethercat sdos # List all SDOS
ethercat upload -p 0 -t int16 6040 0 # Upload(read) value of 6040.0
ethercat download -p 0 -t int16 2020 0 13 # Download (write) number 13 to 2020.0 (imaginary number, but you get the point)
And no, I didn't use TwinCat