SDO write seems to work..

This commit is contained in:
Anders Sandstrom
2021-03-05 16:06:46 +01:00
parent 923d21d7f3
commit c90934e43d
6 changed files with 111 additions and 20 deletions

View File

@@ -272,3 +272,36 @@ r 0x280 [0]
w 0x701 [1] 0x05
w 0x080 [0]
w 0x7E5 [0]
# SDO Write:
################################## TEST WRITE SDO#############
WRITEVALUE!!
STATE = WRITE_REQ_TRANSFER
STATE = WRITE_WAIT_FOR_CONF
w 0x603 [8] 0x21 0x90 0x26 0x01 0x07 0x00 0x00 0x00
STATE = WRITE_DATA
r 0x583 [8] 0x60 0x90 0x26 0x01 0x00 0x00 0x00 0x00
w 0x603 [8] 0x20 0x08 0x74 0xE8 0xBE 0xA8 0x5B 0x6B
Example of error frame!!
r 0x583 [8] 0x80 0x08 0x74 0xE8 0x00 0x00 0x02 0x06
################################## TEST WRITE SDO#############
w 0x603 [8] 0x21 0x90 0x26 0x01 0x07 0x00 0x00 0x00 # request upload/write
r 0x583 [8] 0x60 0x90 0x26 0x01 0x00 0x00 0x00 0x00 # Ok from slave
w 0x603 [8] 0x60 0x08 0xF4 0xA9 0xBE 0xC0 0xCB 0xE1 # Send data
r 0x583 [8] 0x01 0x18 0x00 0x24 0x00 0x0E 0x00 0x0A # ???