CL3-E CANopen/USB Technical Manual

Configuration file

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.

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.
  4. Open this file with a simple text editor, such as Notepad or Vi. Do not use any programs that use text styles (LibreOffice or suchlike).

After you have made changes to the file, take the following action to apply the changes:

  1. Save the file if you have not already done this.
  2. Disconnect the USB cable from the motor controller.
  3. Disconnect the voltage supply from the motor controller for approx. 1 second.
  4. Reconnect the voltage supply. At the next motor controller startup, the new values in the configuration file are read out and applied.

Tip

You can also copy an empty file reset.txt to the motor controller in order to restart the motor controller.

This restarts the motor controller. The file reset.txt is deleted at the restart.

Structure of configuration file

Comments

Lines that start with a semicolon are ignored by the motor controller.

Example

 
; This is a comment line

Assignments

CAUTION
Beforeyou set a value, find out about its data type (see the "Object directory description" section). The motor controller does notvalidate any entries for logic errors!
Values in the object directory can be set with the following syntax:
<Index>:<SubIndex>=<Value>
<Index>
This value corresponds to the index of the object and is interpreted as a hexadecimal number. The value must always have four digits.
<SubIndex>
This value corresponds to the sub-index of the object and is interpreted as a hexadecimal number. The value must always have two digits.
<Value>
The value that is to be written into the object is interpreted as a decimal number. A "0x" is to be added to the front for hexadecimal numbers.
Note
  • There are not to be any empty spaces to the left and right of the equals sign. The following assignments are incorrect:

    6040:00 =5

    6040:00= 5

    6040:00 = 5

  • The number of digits may not be changed. The index must have four digits, the sub-index two. The following assignments are incorrect:

    6040:0=6

    6040=6

  • Empty spaces at the beginning of the line are not admissible.

Example

 
Setting object 6040 h:00 to the value "6":
6040:00=0006

Short-circuit evaluation

DIP switches can only be used for executing certain assignments. The following syntax is used for short-circuit execution:

#<No>:<Assignment>
<No>
The number of the DIP switch printed on the switch is given here. Permissible values are 1 to 4
<Assignment>
The assignment specified here is described in the "Assignments" section.

Example

 

The following code is set by the object 2057 h:00h "Clock Direction Multiplier"):

  • to 1 if DIP switch 1 is switched to "Off".
  • to 2, if the DIP switch is switched to "On" (the previous value is overwritten).
2057:00=00000001 #1:2057:00=00000002

Contents