Getting Started with the NI 9502 and AKM Motors
22
ni.com
6.
Power on the controller. If it is already powered on, press the
Reset
button on the controller to
reboot it.
7.
Right-click the controller under
Remote Systems
in the
Configuration
pane and select
Format
Disk
. Click
Yes
on the dialog box that appears.
8.
When MAX finishes formatting the disk, set the
Safe Mode
switch to the
Off
position and press
the
Reset
button on the controller to reboot it.
9.
Select the
System Settings
tab and type a descriptive name for the system in the
Name
field.
10. (Optional) Complete this step only if the target has an empty IP address (0.0.0.0). Select the
Network Settings
tab and select
DHCP or Link Local
from the
Configure IPv4 Address
list to
assign an IP address or select the
Static
to specify a static IP address in the
IPv4 Address
section.
11. Click
Save
on the toolbar and let MAX reboot the system.
12. When the new system name appears under
Remote Systems
, expand the controller item in the tree,
right-click
Software
, and select
Add/Remove Software
.
13. Select a recommended software set that includes NI-RIO 4.0 or later.
14. Click
Next
.
15. Select
LabVIEW NI SoftMotion Module 11.0.1
or later from the add-ons list.
16. Click
Next
to install the selected software on the controller. Click
Help
if you need information
about installing recommended software sets.
17. Close MAX.
Step 2: Configure and Test the Drive using LabVIEW
This section uses the
Velocity FOC
example installed in the
labview\examples\motion\
Primitives\HW\FOC Velocity Control (9502)
directory to configure the motor and Hall
Effect sensor phasing values, then provides a tuning panel for determining velocity gains for your
system. Complete the following steps to configure and test the drive using this example.
1.
Open the
Velocity FOC
example.
2.
Configure the example to work with your hardware:
a.
Add your CompactRIO device to the LabVIEW project by right-clicking the
Project:Velocity FOC.lvproj
item in the LabVIEW
Project Explorer
window and selecting
New»Targets and Devices
.
b.
Select your target from the
Add Targets and Devices
dialog box.
c.
Click
OK
.
d.
Select
LabVIEW FPGA Interface
from the
Select Programming Mode
dialog box.
e.
Click
Continue
.
f.
Click
Discover
in the
Discover C Series Modules?
dialog box, if it appears.
g.
Locate the FPGA VI and move it from the example FPGA target to the FPGA target under
your device.
h.
Select the example target and remove it from the project.
i.
Rename the FPGA target from
FPGA Target 2
to
FPGA Target
.
j.
If the NI 9502 is not in slot 1 and the NI 9411 is not in slot 2 of the CompactRIO chassis,
update the I/O nodes in the FPGA VI to point to the correct location.
3.
Compile the
Velocity FOC FPGA
VI.