SIMADYND Manual Debug Monitor V1-0 Eng
Transcript of SIMADYND Manual Debug Monitor V1-0 Eng
General
2
1. Using this Manual This manual assumes that you are familiar with Microsoft Windows. For more
detailed information about using dialog fields, menu options, the drag & drop
function, and so on, refer to the Windows documentation.
This manual uses the following conventions:
Text / symbol Purpose
Italics Menus, commands, dialog field titles,
folders and file names, pushbuttons
!
Important information about the program
or how to use it.
Change history: July 2005 Version created March 2006 Using JM commands in the window with copy and paste.
Program Description
3
2. Program Description
General note:
! The debug monitor should only be connected to the processor card locally.
Initializing the debug monitor via the CS7 can cause communication errors.
2.1. Starting the Program Once you have started the program, the following dialog is displayed:
Program Description
4
2.2. Setting the Serial Interface To set the serial interface, choose Option / Setting Com Port.
COM Select: Select the interface
Baudrate: Set the baud rate (normally 9600)
Parity: EVEN: For initializing the monitor
NONE: For the hex / debug monitor
2.3. Initializing the Monitor If the processor is already in debug mode, simply press "RETURN".
The interface is opened automatically and communication begins, provided that the
serial interface has been set properly.
Program Description
5
If the processor is not yet in debug mode, you can switch the selected processor to
debug mode by choosing Options / Init Debug Monitor / …
! To initialize the debug monitor via the CS7, select the required processor.
In practice, the debug monitor is normally initialized locally with processor 1.
This is also the case with processors 2 to 8.
During initialization, the serial interface is automatically switched between EVEN
(initialization) and NONE (monitoring).
Once initialization has been successfully completed, communication with the
processor is possible.
Program Description
6
2.4. JM Commands
Using the JM commands from the INI file To call up a dialog containing the predefined JM 0x.. commands, right-click the action
window. To select a command, left-click it. It is then sent directly to the processor.
The JM 0x… commands can be defaulted in the INI file. See the description of the INI
file.
Using the JM commands from the dialog Select a JM command in the window.
To copy it to the clipboard, choose either CTRL+C or Edit / Copy.
The cursor then returns to the input position.
To paste the value from the clipboard into the window, choose either CTRL+V or
Edit / Paste.
Program Description
7
When you press RETURN, the command is sent to the processor.
2.5. Saving Debug Data You can use the save function to save the content of the debug window in a text file
with an ASCII character set.
The file extension is *.dmx.
Whenever you exit the program, the last session is saved under the file name
"lastdebug.dmx".
2.6. Loading Debug Files To load a debug file that you have saved, choose File / Open.
Since the debug file is saved as an ASCII file, it can be edited using a different editor.
Program Description
8
2.7. Exiting Debug To exit the debug session on the processor, enter "qq".
2.8. Saving Your Settings To save any settings you have changed (e.g. the COM interface) to the INI file,
choose File / Save.
Under "Save as type" in the "Save As" dialog, choose the file extension *.ini.
Program Description
9
3. The Configuration File (*.ini) The SIMADYN-D_IBS_TOOL.ini file contains various information that is required for
launching the program. You should not change the order of the information.
Content of the INI file: [SIMADYND_IBS_TOOL]
Version=2.0
[PORT]
COM=COM1
BAUDRATE=9600
PARITY=EVEN
[LogFile]
MaxLine=1
MaxFile=2
PFAD=c:\Record
LoopTime=1000
[PORT_MONITOR]
COM_MONITOR=COM1
BAUDRATE_MONITOR=9600
PARITY_MONITOR=NONE
[MONITOR_JM]
TXT_1=Loading statistic of the cyclic tasks
ADR_1=jm 0x8003B0E8
TXT_2=Diagnostics of the task manager
ADR_2=jm 0x8002D358
TXT_3=Diagnostics of the error panels:
ADR_3=jm 0x8001FF08
TXT_4=Diagnostics of the last crash:
ADR_4=jm 0x8002EC14
Version of the program
The settings from here on are for the debug monitor.
Serial interface settings.
JM command defaults.
- Description of the command
- Command
Program Description
10
TXT_5=Statistic of implemented emulations:
ADR_5=jm 0x800415F0
TXT_6=Search for FB based on the ALE addresses
ADR_6=jm 0x8001C1D8
TXT_7=List of special peripherals:
ADR_7=jm 0x80011AE8
TXT_8=Diagnostics of communication blocks:
ADR_8=jm 0x8001CC04
TXT_9=Statistic of memory reservation:
ADR_9=jm 0x800218A0
Example of the structure of the configuration file: [MONITOR_JM]
TXT_1=Loading statistic of the cyclic tasks
ADR_1=jm 0x8003B0E8
The first item of information in square parentheses is the selection [MONITOR_JM]. This is followed by the various key specifications.
TXT_1=
ADR_1=
Neither of these specifications (selection and key) must be changed.
The key ID must be entered with an equals sign and the configuration must not
contain a space.