![NANOTEC PD4-C5918M4204-E-01 Скачать руководство пользователя страница 22](http://html1.mh-extra.com/html/nanotec/pd4-c5918m4204-e-01/pd4-c5918m4204-e-01_manual_3241520022.webp)
Manual PD4-C (USB)
6 Configuration
Version: 1.4.1 / 22.07.2016 / FIR-v1626
22
!
CAUTION
3.
info.bin
4.
reset.txt
5.
firmware.bin
All other files are deleted when the voltage supply for the motor controller is switched on!
Note
•
The controller behaves like a mass storage device ("USB flash drive"), no further drivers are
necessary.
•
The motor is brought to idling when the USB cable is connected. The "Switched On" mode is set
(see the " DS402 Power State machine" section).
•
The voltage supply for the motor controller must also be switched on for USB operation.
If a USB cable is used for connecting the motor controller to a PC, the motor controller behaves like
a removable storage medium. You can therefore store the configuration file or NanoJ program on the
motor controller. All changes to files are only applied after the motor controller has been restarted (for
example by short disconnection from the voltage supply).
Tip
A frequent occurrence during set up and installation is that a file is updated and then copied
back to the motor controller, it is therefore advisable to use a script file that does this work
•
In Windows you can create a text file with file extension
bat
and the following content :
copy <SOURCE> <TARGET>
•
For Linux you can create a script with file extension
sh
and the following content:
#!/bin/bash
cp <SOURCE> <TARGET>
6.4 Configuration file
6.4.1 General information
Read the "USB port" section first if you have not already done so.
The configuration file
cfg.txt
has the purpose of preassigning values for the object directory to a
specific value at start up. This file is kept in a special syntax to keep access to objects in the object
directory as simple as possible. The motor controller evaluates all assignments in the file from the top
downwards.
Note
Should you delete the configuration file, the file is recreated (without content) at the next motor
controller restart.
6.4.2 Reading and writing the file
To access to the file:
1. Connect the voltage supply and switch on the voltage supply.
2. Connect the motor controller to your PC by using the USB cable.
3. After the PC has recognized the device as a removable storage medium, navigate with the Explorer
to the directory for the motor controller. The file "
cfg.txt
" (in case of a PD4-C the file is named
"
pd4ccfg.txt
") is stored there.