jsphuebner / libopeninv

Generic modules that can be used in many projects
GNU Lesser General Public License v3.0
21 stars 21 forks source link

Can SDO doesn't support Start commands #25

Open jamiejones85 opened 4 days ago

jamiejones85 commented 4 days ago

The start in manual mode button and issuing start commands doesn't put the inverter in run mode.

davefiddes commented 3 days ago

openinverter CAN tool implements sending a start and stop command with the following sub-indices:

START_COMMAND_SUBINDEX = 4
STOP_COMMAND_SUBINDEX = 5

I send an integer representing the desired opmode as an unsigned32 in the data field. The modes are hard coded for stm32-sine so anything beyond a simple start might not make much sense in the context of the Zombieverter VCU for example.

FWIW my as yet unfinished C2000 port of stm32-sine implements both of these additional commands.