[etherlab-users] Sdo download octet_string
Gavin Lambert
gavinl at compacsort.com
Wed Nov 2 23:44:01 CET 2016
On 3 November 2016 10:13, quoth Boris Skegin:
> I have to sdo download an octet string of 28 bytes.
>
> Upload apparently works:
>
> $ ethercat upload -p0 -toctet_string 0X210C 0 | xxd
> 0000000: c800 01e0 0101 0100 0000 0000 0000 0000 ................
> 0000010: 0000 0000 0000 0000 0000 0000 ............
>
> But trying to write back this octet string with something like
>
> $ ethercat download -p0 -toctet_string 0X210C 0 c80001e0010101000000000000000000000000000000000000000000
> SDO transfer aborted with code 0x06070010: Data type does not match, length of service parameter does not match
>
> does not work.
>
> Do octet strings have some special format for SDO download?
You need to supply actual bytes, not hex literals. ie. the format the uploaded data was in before you piped it to xxd.
I haven't tested this, but in principle you could do something like this:
$ echo c80001e0... | xxd -r -p | ethercat download -p0 0x210c 0 -
More information about the Etherlab-users
mailing list