[etherlab-users] About Big and little endian.
John Martin
jmartin at larraioz.com
Wed Oct 3 16:54:36 CEST 2012
Hello Matthieu,
Sorry, copy/paste is a dangerous tool..........
When I send commands, I wrote correct size.....
root at LEIPC:~ ./ethercat -p3 --type uint8 download 0x1C12 0 0
root at LEIPC:~ ./ethercat -p3 --type uint8 download 0x1C13 0 0
root at LEIPC:~ ./ethercat -p3 --type uint16 download 0x1C12 1 0x1700
root at LEIPC:~ ./ethercat -p3 --type uint16 download 0x1C12 2 0x1708
root at LEIPC:~ ./ethercat -p3 --type uint8 download 0x1C12 0 2
root at LEIPC:~ ./ethercat -p3 --type uint16 download 0x1C13 1 0x1B00
root at LEIPC:~ ./ethercat -p3 --type uint16 download 0x1C13 2 0x1B08
root at LEIPC:~ ./ethercat -p3 --type uint8 download 0x1C13 0 2
root at LEIPC:~ ./ethercat -p3 --type uint16 upload 0x1C13 1
0x001b 27
root at LEIPC:~ ./ethercat -p3 --type uint16 upload 0x1C13 2
0x081b 2075
root at LEIPC:~ ./ethercat -p3 --type uint16 upload 0x1C12 1
0x0017 23
root at LEIPC:~ ./ethercat -p3 --type uint16 upload 0x1C12 2
0x0817 2071
root at LEIPC:~
The same output. I dont understand why swap bytes..
Best regards.
El 03/10/12 16:46, Matthieu Bec escribió:
>
> Hello John,
>
> try download using types that fit the target size, that might look like:
>
> ./ethercat -p3 --type uint8 download 0x1C12 0 0
> ./ethercat -p3 --type uint8 download 0x1C13 0 0
> ./ethercat -p3 --type uint16 download 0x1C12 1 0x1700
> ./ethercat -p3 --type uint16 download 0x1C12 2 0x1708
> ./ethercat -p3 --type uint8 download 0x1C12 0 2
> ./ethercat -p3 --type uint16 download 0x1C13 1 0x1B00
> ./ethercat -p3 --type uint16 download 0x1C13 2 0x1B08
> ./ethercat -p3 --type uint8 download 0x1C13 0 2
>
> Matthieu
>
>
> On 10/03/12 05:44, John Martin wrote:
>> Hello,
>>
>> I have a problem with servo drive and ethercat.
>> I send this commands to servo drive.....
>>
>> ./ethercat -p3 --type uint8 download 0x1C12 0 0
>> ./ethercat -p3 --type uint8 download 0x1C13 0 0
>> ./ethercat -p3 --type uint8 download 0x1C12 1 0x1700
>> ./ethercat -p3 --type uint8 download 0x1C12 2 0x1708
>> ./ethercat -p3 --type uint8 download 0x1C12 0 2
>> ./ethercat -p3 --type uint8 download 0x1C13 1 0x1B00
>> ./ethercat -p3 --type uint8 download 0x1C13 2 0x1B08
>> ./ethercat -p3 --type uint8 download 0x1C13 0 2
>>
>> and now I read this PDO with this result........
>>
>> root at LEIPC:~ ./ethercat -p3 --type uint16 upload 0x1C13 2
>> 0x081b 2075
>> root at LEIPC:~ ./ethercat -p3 --type uint16 upload 0x1C13 1
>> 0x001b 27
>> root at LEIPC:~ ./ethercat -p3 --type uint16 upload 0x1C12 1
>> 0x0017 23
>> root at LEIPC:~ ./ethercat -p3 --type uint16 upload 0x1C12 2
>> 0x0817 2071
>>
>> I am not sure, but I suppose that information is not correct...........
>> I dont find any option about big and little endian in configure step.
>>
>> Any advice??
>>
>> Best regards.
>> _______________________________________________
>> etherlab-users mailing list
>> etherlab-users at etherlab.org
>> http://lists.etherlab.org/mailman/listinfo/etherlab-users
>
>
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20121003/3650b67d/attachment-0005.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Firma.bmp
Type: image/bmp
Size: 323190 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20121003/3650b67d/attachment-0005.bin>
More information about the Etherlab-users
mailing list