Demo System
FM3 Family Math and Motor Control Library Quick Start Guide, Doc. No. 002-04766 Rev. *A
7
1.3 Run the Motor
This section introduces how to the make the motor running as the setting parameter.
1.3.1 Motor Start/Stop
When the parameters for the firmware and hardware are correctly set, the motor can be started for the normal running.
You can follow the steps to run to motor.
1). Check the basic motor and HW parameter setting in the user interfaces. If the setting is not matched with the real HW
and motor parameter, there will be the unexpected running error in the motor running.
2). Compile project and download program to inverter board by the J-link.
①
Set the j-link interface to the SWD mode:
Project
Option
J-Link/J-Trace
Connection
SWD
②
Click the button
A
that is shown in
to connect the J-link and download the FW into the MCU,
③
Cick the button
B
to execute the sample project. You can enter the none-zero speed value to start the motor in the
structure that is shown as
C
after the firmware is executed about 2s later.
For example, when the variable ‘
Motor_stcRunPar.i32TargetSpeedRpm= 1000’
by your online input, the drum
speed of the washer will CCW run to 1000rpm.
And you can take the
for your detailed reference for the speed command.
Table 1-1. Drum Running Status by the Command Speed
Motor_stcRunPar.
i32TargetSpeedRpm
Running Direction
Motor’s status
>0
CCW
Running
<0
CW
Running
=0
Stop
Stop
Note:
All of the command speed from the debugger or UART is defined as the motor mechanical speed.
Do not click the button D to break the FW running, the HW over-current or DC over fault may appear and damage the HW
if you do that.
Figure 1-6. Motor Run by J-link
C
A
B
D