4 Commissioning
4. After the PC has detected the device as a removable storage device, open an Explorer window and
delete file
vmmcode.usr
on the controller.
5. Navigate in the Explorer to the directory with your program. The compiled file has the same name as the
source code file, only with file extension
.usr
. Rename this file
vmmcode.usr
.
6. Copy file
vmmcode.usr
to the controller.
7. Disconnect the voltage supply from the controller for approx. 1 second until the power LEDs stop flashing.
8. Reconnect the voltage supply. When the controller now starts, the new NanoJ program is read in and
started.
Tip
To restart the controller, you can also copy an empty
reset.txt
file to the controller. This restarts
the controller. The
reset.txt
file is deleted on the next restart.
Note
●
The NanoJ program on the controller must have file name
vmmcode.usr
.
●
If the NanoJ program was deleted, an empty file named
vmmcode.usr
is created the next time
the controller is started.
Tip
It is possible to automate the deletion of the old NanoJ program and the copying of the new one with
a script file:
●
Under Windows, you can create a file with file extension
bat
and the following content:
copy <SOURCE_PATH>\<OUTPUT>.usr <TARGET>:\vmmcode.usr
For example:
copy c:\test\main.usr n:\vmmcode.usr
●
Under Linux, you can create a script with file extension
sh
and the following content:
#!/bin/bash
cp <SOURCE_PATH>/<OUTPUT>.usr <TARGET_PATH>/vmmcode.usr
4.2 Auto setup
To determine a number of parameters related to the motor and the connected sensors (encoders/Hall
sensors), an auto setup is performed. Closed Loop operation requires a successfully completed auto setup.
Note
Note the following prerequisites for performing the auto setup:
►
The motor must be load-free.
►
The motor must not be touched.
►
The motor must be able to turn freely in any direction.
►
No NanoJ programs may be running (object 2300
h
:00
h
bit 0 = "0", see 2300h NanoJ Control).
Version: 2.0.1 / FIR-v1650
27