Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual

Page 44

Advertising
background image

Chapter 3

Getting Started with the Control Coprocessor

3-15

ATTENTION: This program illustrates the use of non-volatile
user memory in its simplest form. The control-coprocessor
MEM_CFG function only supplies a pointer and size to the
non-volatile user memory. It is the responsibility of the user to
manage the memory appropriately.

The program stores the value of the pointer on initialization. It then
performs subsequent checks to verify that the pointer value has not
changed.

Non-Volatile Module Memory
Use this non-volatile area of memory to store program modules. Although
you can store your programs on the non-volatile RAM disk, the modules
must also be loaded to OS-9 memory to run. When you store them in the
NVMM area, the modules are in a ready-to-run state and do not use
memory on the RAM disk unnecessarily.

This non-volatile memory is non-destructively searched at boot by the
operating system for program modules. Reset or power-down conditions
will not destroy modules in this memory area.

To configure the memory area in 1 Kbyte (1 block) increments:

1.

At the

Select

Option

prompt, enter

3

for the non-volatile

memory-module configuration option. See

Figure 3.15.

Figure 3.15

Configure NonĆVolatile Memory Modules

PCBridge Microware’s PC hosted OS-9/680x0 Development System

Select Option: 3
Original Current
Settings Settings
-----------------------------------------------------------
Non-Volatile RAM Disk = 64Kb 512Kb
Non-Volatile User Memory = 0Kb 5Kb
Non-Volatile Module Memory = 0Kb 0Kb
OS-9 Free Pool = 4800Kb 4347Kb
---------- ----------
Configurable System Memory = 4864Kb 4864Kb

Non-Volatile Module Memory Size
-----------------------------
Enter desired number of 1K (1024) byte blocks (0 - 4347): 70

Original Current
Settings Settings
-----------------------------------------------------------
Non-Volatile RAM Disk = 64Kb 512Kb
Non-Volatile User Memory = 0Kb 5Kb
Non-Volatile Module Memory = 0Kb 70Kb
OS-9 Free Pool = 4800Kb 4277Kb
---------- ----------
Configurable System Memory = 4864Kb 4864Kb

2.

At the prompt, enter the number of blocks that you want to allocate to
non-volatile memory modules—between 0 and the maximum amount
as shown by the utility.

Advertising