0026 DO Q-Control User Manual
0026 DO Q-Control User Manual
1 Introduction ...............................................................................................................................2
1.1 Document Conventions ..........................................................................................................2
2 Getting started ...........................................................................................................................2
2.1 Installing the Q-Control Software ............................................................................................2
2.2 Uninstalling Q-Control ............................................................................................................2
2.3 CAN Communication ..............................................................................................................2
2.4 Starting the Q-Control Software ..............................................................................................2
2.4.1 Set the Communication Settings .......................................................................................3
2.4.2 Starting the Communication .............................................................................................3
2.4.3 Communication Errors .....................................................................................................4
3 Application Functions ..................................................................................................................5
3.1 Main Window ........................................................................................................................6
3.1.1 Communication and CANopen Commands ..........................................................................7
3.1.2 MC test modes ................................................................................................................7
3.1.3 Power Module .................................................................................................................9
3.1.4 Main Menu View ............................................................................................................ 11
3.1.5 Main Menu Commands ................................................................................................... 11
3.2 CAN Logger ........................................................................................................................ 12
3.2.1 Outgoing CAN Messages ................................................................................................ 14
3.2.2 Edit Filter ..................................................................................................................... 14
3.3 Parameters......................................................................................................................... 15
3.3.1 Parameter → File .......................................................................................................... 16
3.3.2 Parameter → Commands................................................................................................ 17
3.3.3 Parameter → Settings .................................................................................................... 17
3.4 Programming Procedure - Flash Window ................................................................................ 17
3.5 Scope ................................................................................................................................ 19
3.5.1 Global Commands Menu................................................................................................. 19
3.5.2 Variable files (*.csv) ...................................................................................................... 20
3.5.3 Channels ...................................................................................................................... 20
3.5.4 Axis settings ................................................................................................................. 21
3.5.5 Trigger Settings / Recording of Signals ............................................................................ 22
3.5.6 Real time scope Menu .................................................................................................... 22
3.5.7 Global commands Menu ................................................................................................. 25
3.5.8 View window Menu ........................................................................................................ 26
3.5.9 View Menu ................................................................................................................... 26
3.6 Tables................................................................................................................................ 27
3.6.1 Menu File ..................................................................................................................... 28
3.6.2 Menu Commands .......................................................................................................... 28
3.6.3 Table Example .............................................................................................................. 28
3.6.4 Epsilon X and Y values ................................................................................................... 28
Appendix A ................................................................................................................................... 29
3.7 Tables................................................................................................................................ 29
3.8 Figures .............................................................................................................................. 29
3.9 Terms and Abbreviations ...................................................................................................... 30
3.10 References ......................................................................................................................... 31
2 Getting started
This chapter provides a short introduction to Q-Control and shows the first main points to get started. In
the following chapters, the functions and settings are described in detail.
Please contact local sales to purchase a PCAN USB adaptor which retains a license for Q-Control.
On one PC only one instance of Q-Control can be run at the same
time. For each Q-Control instance that is run, a separate PCAN USB
adaptor is needed.
The driver for the CAN interface must be installed before starting
Q-Control.
2
3
1) Select the Baudrate of your CAN network and 11 Bit ID (default Baudrate 250kbit/s, can be
changed with the parameter: CANOpen -> Bitrate [20F1])
2) Enter the Node ID of the Motor Control device 1 (default is 0x7A, can be changed with the
parameter: CANOpen -> Node ID [20F3])
3) Enter the Node ID of the scope data 1 (default is 0x7E, can be changed with the parameter:
CANOpen -> Scope node ID [20F4])
4) Click Apply and close window
To switch from one device to another in a faster way there is the
possibility to define a second pair of CAN node IDs.
On the main window it is then possible to select the node 1 or 2 to
communicate with.
TxD blinks when Q-Control sends messages (normally some SDO are sent to get a part of the
actual values and settings).
Click on Start node to start the communication and activate the Send SYNC checkbox to receive
the TxPDO1 – TxPDO4 in the specified interval.
If the communication is not working properly, refer to 2.4.3 Communication Errors for trouble shooting.
CAN logger
send CANopen messages
send custom messages
log incoming messages
log outgoing messages
Parameters
read and write to the parameters
of QUASAR
reset default values
store changes persistently
Flash
perform firmware updates of
Main window
QUASAR
communication control read firmware version information
control most functions of
QUASAR NOTE: only for development purpose
indicates quasar state
indicates warning and errors Scope
indicates actual values
trace internal signals of QUASAR
indicates firmware revision in real time
and hardware version log measured values
open other views
perform commands
Tables
Import/export of motor
characteristic tables containing
currents, inductances and torque
Communication settings
settings for CAN communication
for main window and scope
Error Log
Read error log data
Export error log to csv file
Clear the error log
After modifying any communication setting, click Close com and Open com.
TxD blinks when Q-Control sends messages (normally some SDO are sent to get a part of the
actual values and settings).
The installation of Q-Control provides a default AutoMode.csv file. This file can be used to specify a
sequence.
Auto Mode-File
With the Select file… button the Auto Mode-File can be opened. The Auto Mode-File defines current,
torque or speed steps.
The first column defines how long the value is applied in 0.1s.
The second column defines the current or torque (depending on column 4). If the speed mode
is chosen, then this value is used as limit.
The power module section for PDO mapping V1 only gives limited feedback. Further control sequences are
less save because commands are partially sent over SDO messages.
PDO mapping V1 is only provided for backwards compatibility. It
must NOT be used for serial applications because the limited
feedback cannot guarantee save operation.
Double click
to get more
information
about the
error
From the main menu View the other windows of Q-Control can be accessed. For more details please refer
to the specific chapter of the windows.
Some commonly used commands are listed in this menu for easier access.
3.1.5.1 Clear Errors
This sends a command to clear all errors.
Errors can only be cleared if QUASAR is in Error State. Errors that occur during initialization of QUASAR
lead to the Initialization failed State. To leave this state, the reported problem has to be solved and
QUASAR has to be restarted.
Any error reported by QUASAR will not be cleared automatically
even if the error condition was removed. Therefore the error must
always be cleared using the “Clear Errors” command.
These commands are usually not required and are only for
development purposes.
Outgoing messages
CAN logger log outgoing messages
send CANopen messages
send custom messages
log incoming messages
access to Edit Filter (incoming / outgoing)
define filters for messages to be
o Outgoing CAN
logged
messages
o Edit Filter
Set a filter
The CAN logger gives access to some CAN functions and CAN logging features.
Typically there are a lot of messages on a CAN bus. It can be hard to track a specific CAN message,
therefore Q-Control has the possibility to add filters, which allows to define which CAN messages should
be displayed. The defined filters are applied to the CAN messages table and the file logging.
Displaying the CAN data in “real time” requires a lot of PC
resources. The more traffic on the CAN bus, the more resources
needed.
Use the Size of list to adjust the list size as preferred.
The log files are stored in the user profiles application data folder.
In Windows 7 this folder can be found in
C:\Users\<username>\AppData\Roaming\SKAItek\Q-
Control\CANLog or %APPDATA%\SKAItek\Q-Control\CANlog
Logging the CAN data into a file generates a lot of file access I/O.
Be aware of this fact when logging CAN networks with high traffic.
3.3 Parameters
Parameters
read and write to the parameters
of QUASAR
reset default values
store changes persistently
This window allows accessing to the parameters of the QUASAR device. This view will show parameters
according to meta data defined in the file para.defintion_Vx.xx.x.csv delivered with each version of
QUASAR.
After installing Q-Control for the first time an error will be prompted that indicates the missing parameter
information. Further the parameter tree and parameter details will not be displayed. Use the menu “File →
Load and set default file…” to select the parameter definition for the software you plan to use.
This command will load the parameter definition. The parameter definition is the meta data defining the
parameter tree and the names, descriptions, ranges, etc. of all parameters.
The read / write actions will change the parameters in RAM of the inverter. Therefore they are not stored
persistently. To make the changes persistent, please use the menu “Commands → Store parameters
(from RAM to EEPROM)”
When the parameter view is opened, then a default parameter file is read which contains the parameter
tree. After starting up the first time this parameter definition file has to be selected. Depending on the
QUASAR release, the parameter definition may vary and you may change the file.
If the parameters are only written and not stored to the EEPROM,
they are only saved to RAM. Therefore if a reset is done, the
changed values are lost.
Flash
perform firmware updates
of QUASAR
read firmware version
information
The Flash window is used for firmware updates on your QUASAR device.
3.5 Scope
Scope
Trace signals of QUASAR device
in real time
logging of recorded data
In the scope window Q-Control does offer different features to trace signals in function of time.
The signals which can be chosen for displaying in the scope window are saved in a list (variable
file). It is important that the variable file delivered with the used QUASAR version is selected,
otherwise the scope will not work properly.
Further it is possible to synchronize the settings in the MCU on the QUASAR device with the
settings in the GUI.
QUASAR
Signal Address
…. ….
Electrical Speed: 0x0000DC48
Reference Speed: 0x0000651E
3.5.3 Channels
A channel is used to display a signal. All channels do have the same time resolution; all other settings of a
channel are individual per channel.
To select a signal to display on the scope do the following:
Open the channel settings
Select a signal from a list and define its data type
Define a factor and an offset, if the signal should be scaled
See 0 for details
The number of channels is adjustable, set it as preferred. The fewer channels are used the faster the
signals will be displayed on the screen.
Be aware, that if there are too many channels, the number of
points per channel will decrease because of limited RAM on the
QUASAR device and therefore the result will be imprecisely.
Trigger
mode Change trigger settings
Synchronize settings This item helps to synchronize the MCU and the PC with
MCU and PC each other
Show settings Settings of the MCU and Q-Control useful to check if the data
matches. See chapter 3.5.6.1.
Display options This menu item allows settings for the look of the diagram. Set them to your
needs.
Clear cursors If the cursors were used they can be cleared again with this item.
Show legend This feature shows the legend of the signals on the scope screen.
File logging The measured data can be logged. To start and stop it uses this item. See
chapter 3.5.6.2.
Saving screen data as The current screen can be saved in different formats (as image, as *.csv, or
as *.txt file).
Print This feature can be used if the screen shall be printed.
Auto save This function allows saving automatically the screens as *.csv
or *.wmf file. See chapter 3.5.6.3.
The signals which can be chosen for displaying in the scope window are saved in a list (variable
file). It is important that the variable file delivered with the used QUASAR version is selected,
otherwise the scope will not work properly.
Further it is possible to synchronize the settings in the MCU on the QUASAR device with the
settings in the GUI.
It is possible to save and load the workspace to/from a *.ssf file. This function allows saving the
channel settings, the triggers and axis settings. The saved workspace can be loaded in a later
session.
3.5.7.1 Variable files (*.csv)
The defined variables in QUASAR are represented by an address for scoping these variables the correct
address of each variable need to be known. The variable file is used to allocate the selected addresses in
the scope to the addresses in QUASAR. The QUASAR software is delivered with an associated Variable file.
If the Variable file is not correct, no or wrong signals may be shown on the scope.
QUASAR
Signal Address
…. ….
Electrical Speed: 0x0000DC48
Reference Speed: 0x0000651E
3.6 Tables
Tables
Import/export of motor
characteristic tables containing
currents, inductances and
torque
There are several tables used to tune IPM machines for best efficiency. QUASAR implements these tables
that can be configured over CANopen interface.
Q-Control allows downloading and uploading tables. In the install packet of Q-Control is an example of a
table included (Start All Programs Q-Control Example files), which shows exactly how the tables
have to look like. Please refer to this example and the QUASAR user manual [2] for more specific
definitions of the tables
IPM motor characteristics must be either given by the motor manufacturer in a datasheet or must be
measured on a test bench. In case they are available, the scales may need to be adapted to fit the rules
defined in the QUASAR user manual [2].
In the View Menu select Tables, the following window is opened.
3.7 Tables
Table 1 – Communications error handling ...........................................................................................4
Table 2 – Example Auto Mode File......................................................................................................9
Table 3 - Terms and Abbreviations ................................................................................................... 30
3.8 Figures
Figure 1 - Communication settings window .........................................................................................3
Figure 2 - Communication and CANopen commands .............................................................................3
Figure 3: Function overview ..............................................................................................................5
Figure 4: Main window of Q-Control ...................................................................................................6
Figure 5 - Communication and CANopen commands .............................................................................7
Figure 6 - ECU simulation settings .....................................................................................................7
Figure 7 - Current regulator settings ..................................................................................................8
Figure 8 - Closed-loop control settings ...............................................................................................8
Figure 9 - Automatic test settings ......................................................................................................8
Figure 10 - Power module of Q-Control for PDO mapping V2 ............................................................... 10
Figure 11 - Power module of Q-Control for PDO mapping V1 ............................................................... 10
Figure 12 - View menu of Q-Control ................................................................................................. 11
Figure 13 - Commands menu of Q-Control ........................................................................................ 11
Figure 14 - NMT commands ............................................................................................................ 11
Figure 15 - Bootloader commands ................................................................................................... 12
Figure 16 - CAN logger overview ..................................................................................................... 12
Figure 17 - CAN logger ................................................................................................................... 13
Figure 18 - Outgoing CAN messages window ..................................................................................... 14
Figure 19 - Filter settings for CAN logger .......................................................................................... 15
Figure 20 - Parameter window ......................................................................................................... 16
Figure 21 - File menu of parameter window ...................................................................................... 16
Figure 22 - Commands menu of parameter window............................................................................ 17
Figure 23 - Settings menu of parameter window ................................................................................ 17
Figure 24 - Flash window ................................................................................................................ 18
Figure 25 - Scope window ............................................................................................................... 19
Figure 26 - Commands menu of scope.............................................................................................. 19
Figure 27 - Variable-file allows right allocating of address ................................................................... 20
Figure 28 - Channel settings ........................................................................................................... 21
Figure 29 - Channel adding/removing............................................................................................... 21
Figure 30 - Axis settings for scope window ........................................................................................ 21
Figure 31 - Trigger and recording settings for scope ........................................................................... 22
Figure 32 - Diagram menu of scope ................................................................................................. 22
Figure 33 - Settings window of scope ............................................................................................... 23
Figure 34 - File logging menu of scope ............................................................................................. 24
Figure 35 - File logger settings of scope ............................................................................................ 24
Figure 36 - Auto save settings of scope ............................................................................................ 24
Figure 37 – Global commands menu of scope .................................................................................... 25
Figure 38 - Variable-file allows right allocating of address ................................................................... 25
Figure 39 - View menu of scope....................................................................................................... 26
Figure 40 - Read addresses window of scope ..................................................................................... 26
Figure 41 - View menu of scope....................................................................................................... 26
Figure 42 - Read addresses window of scope ..................................................................................... 27
Figure 43 - Tables window .............................................................................................................. 27
Figure 44 - Menu File of Table window .............................................................................................. 28
Figure 45 - Menu Commands of Table window ................................................................................... 28
Base speed Motor speed where field weakening starts (at rated DC link voltage)
Term used for rotor position sensing devices. This applies for all types of
Encoder
position sensing devices.
FW Field weakening
HW Hardware
PC Personal Computer
SKAI2 SEMIKRON (SK) advanced integration, 3 phase inverter with DSP controller
SW Software
3.10 References
[1] Andres Linder, QUASAR CAN Protocol, “QUASAR CAN Protocol”, CAN protocol definition for QUASAR
0013_DO_Quasar_CAN Protocol.pdf
[2] Claudia Aebischer, “QUASAR User Manual”, User manual of QUASAR 0011_DO_Quasar_User
Manual.pdf
DISCLAIMER
SEMIKRON reserves the right to make changes without further notice herein to improve reliability, function
or design. Information furnished in this document is believed to be accurate and reliable. However, no
representation or warranty is given and no liability is assumed with respect to the accuracy or use of such
information, including without limitation, warranties of non-infringement of intellectual property rights of
any third party. SEMIKRON does not assume any liability arising out of the application or use of any
product or circuit described herein. Furthermore, this technical information may not be considered as an
assurance of component characteristics. No warranty or guarantee expressed or implied is made regarding
delivery, performance or suitability. This document supersedes and replaces all information previously
supplied and may be superseded by updates without further notice.
SEMIKRON products are not authorized for use in life support appliances and systems without the express
written approval by SEMIKRON.