Service manual

4 OF 14
ER-A Model SRV (Service) Mode – File Allocation Overview
File Group Types:
Type 0: (Child) is modified automatically when the parent file group is changed. Create/Erase
only. (e.g.: Department Text, PLU Price, or PLU Stock)
Type 1: (Parent or Primary) requires a Number of Records Entry. Create/Erase and
Increase/Decrease the number of records. (e.g.: Dept., PLU, or Server/Cashier)
Operational buffers, such as the “Register Buffer”, are also considered to be Primary Files.
Primary Files also include those files opened for report data storage such as Term, Gross Margin,
Daily Net, Hourly, and Transaction. These reports can not be run if the corresponding files are not
allocated.
Type 2: Requires an Entry of Indexes and Records. Create/Erase and Increase/Decrease the
number of records for label and data individually. (e.g.: GLU/PBLU)
Calculating Memory Usage
Calculating the memory needed for specific applications is very important. This information is needed to
know what RAM options are required. If given a set amount of RAM, it enables you to determine the
maximum number of functions (such as PLUs, and UPCs) that can be installed.
The general formula for calculating the memory required for any particular file is (See Example ER-
A520/530 File Table
No. Listing):
TN = (NR x NB) x (RL + LS)
Where:
TN = Total Number of bytes.
NR = Number of Records
NB = Number of Blocks
RL = Record Length (Data Size)
LS = Label Size
If the file that is being calculated is allocated is MRS, you should subtract the number of bytes the file
uses at MRS from the value derived by the formula shown above. The result will be the amount of
ADDITIONAL RAM required, or if the file size is being decreased, the amount of RAM freed.
Reminders:
1. The number of bytes in the Label Size must
be added to the Record Length in order to get the
actual number of bytes required for each record.
2. If the number of records (or blocks) of a Type 1 (Parent or Primary) file group is changed, the
files that follow the Type 1 (Parent or Primary) file group size will also be changed.
Page 55 of 108