Page 1 of 1

CAN communication Set Value

Posted: Tue Aug 13, 2024 10:55 pm
by kevinxzl
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

Re: CAN communication Set Value

Posted: Wed Aug 14, 2024 4:40 pm
by kevinxzl
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.

Re: CAN communication Set Value

Posted: Wed Aug 14, 2024 5:25 pm
by tom91
In the param_prj.h you find ids here
image.png

Re: CAN communication Set Value  [SOLVED]

Posted: Wed Aug 14, 2024 8:06 pm
by kevinxzl
I got the answer the IDs come from the website http://192.168.4.1/ not param_prj.h