Mitsubishi Electronics QnUCPU Home Theater Server User Manual


 
5 - 37
CHAPTER5 MEMORIES AND FILES USED FOR CPU MODULE
1
2
3
4
5
6
7
8
5.3 File Operations by GX Developer and Handling Precautions
5.3.4 Units of file sizes
(2) Calculation example of memory capacity
The following shows an calculation example of memory capacity when the parameters and sequence program
are written to the program memory.
(a) Conditions
1) CPU module to be written: Q26UDHCPU
2) Writing file
*1: For the file size, refer to (1)(a) in this section.
*2: This indicates the program size (file header + execution program) displayed on the GX Developer screen.
(
Section 5.2)
3) Reserved area for online change: 500 steps/2000 bytes
(b) Memory capacity calculation
The memory capacity is calculated in units of file sizes of the CPU module to be written.
The file size unit of the Q26UDHCPU in this example is 1 step/4 bytes.( (1) in this section)
1) Calculation of parameter file size
Since the parameter file size is 464 bytes, 116 steps/464 bytes is occupied in the program memory.
Table5.11 File sizes
File name
File size
*1
PARAM.QPA (parameter file) 464 bytes
MAIN.QPG (sequence program)
525 steps/2100 bytes
*2
Figure 5.27 Occupation in units of the file size (parameter file)
Parameter file
(464 bytes)
This file is stored in
units of file sizes
(1 step/4 bytes).
Program memory
capacity
<In program memory>
4 bytes
4 bytes
4 bytes
The parameter file
occupies 464 bytes
(116 steps).