version 5.35.R-sine
I only can set boost, fweak, cannot set other values (like fweakstrt, fconst, udcnom ... )
following the doc "Setting and reading parameters via SDO" https://openinverter.org/wiki/CAN_communication
set fweak to 100Hz (it work)
0x601 # 0x23 0x00 0x20 0x01 0x80 0x0C 0 0 Set "fweak" to 100Hz (0xC80=3200 because scaled by 32)
set boost to 2601(2601x32 = 0x14520) (it work)
0x601 # 0x23 0x00 0x20 0x00 0x20 0x45 0x01 0x00
set fweakstrt to 500 (500x32 = 0x3E80 ( cannot set the value , cannot changed default value)
PARAM_ENTRY(CAT_MOTOR, fweakstrt, "Hz", 0, 1000, 400, 134 )
fweakstr id = 134-1 = 133 (0x85)
0x601 # 0x23 0x00 0x20 0x85 0x80 0x3E 0x00 0x00
CAN communication Set Value [SOLVED]
Re: CAN communication Set Value
does the index be define the file param_prj.h ?
The value index must be determined by counting the output of the list command. E.g. "boost" at the very top has index 0, potnom has index 77. The indexes can change over firmware versions as new parameters are added somewhere in between.
The value index must be determined by counting the output of the list command. E.g. "boost" at the very top has index 0, potnom has index 77. The indexes can change over firmware versions as new parameters are added somewhere in between.
- tom91
- Posts: 2418
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 209 times
- Been thanked: 576 times
Re: CAN communication Set Value [SOLVED]
I got the answer the IDs come from the website http://192.168.4.1/ not param_prj.h