
B–61863E–1/06
9. C-PROGRAM MEMORY DISPLAY
AND DEBUG FUNCTION
APPLICATION
PROGRAMMING GUIDE
427
Segment data can be displayed and a memory dump can be made for the
data area, stack area, and common memory area of each task defined in
a C program.
Each of these areas is different from user-defined areas since they are
dynamically allocated by the PMC management software.
Note that these data areas are allocated when the program starts execution,
meaning that if memory is examined immediately after the user program
is loaded without executing it, only the user-defined areas will be
allocated. Be sure to examine memory after starting execution since the
system allocates data areas after execution starts.
Soft keys correspond to functions as follows:
NO.SRH M.DUMP
GDT USRMEM
RET
DEBUG
INPUTSEARCH
WORDBYTE D.WORD
RET
NEXT
TASK.S COM.D
(1) Press the [USRMEM] soft key, then press a data display soft key to
display C-program task memory data on the CRT display as shown
in Figures 9.2.1(a) to 9.2.1(c).
(Soft keys)
[TASK.D] : Displays the task data area.
[TASK.S] : Displays the task stack area.
[COM.D] : Displays common memory.
(2) Task data and stack areas are displayed for each task ID. All common
memory areas defined in the user link statement are displayed.
(3) Press the [M.DUMP] soft key on any of the display screens to display
a memory dump of the first item currently being displayed.
(4) Display and operations of the memory dump display screen are the
same as in Section 9.1.
(5) When keep-relay K17/K900 bit4 = 1, the RAM contents shown on the
memory dump display screen can be modified by moving the cursor
to the data to modify and entering data of the specified data type.
WARNING
Depending on the data entered, the user program may not
operate correctly and a system error may occur. Be sure to
exercise sufficient care when setting data.
9.2
C-PROGRAM
MEMORY DISPLAY
9.2.1
Screen Display and
Operations