Download High Performance Model QCPU(Q Mode)User`s Manual(Function

Transcript
6 MEMORIES AND FILES HANDLED BY HIGH PERFORMANCE MODEL QCPU
MELSEC-Q
(2) Memory capacity calculation example
When files are written to the memory area, the storage capacity unit changes
depending on the CPU module and memory area to which the files will be
written. This unit is called the file size unit.
(a) Conditions
1) Write target CPU module: Q25HCPU
2) Written files
File Name
File Capacity
PARAM. QPA (parameter file)
564 bytes
MAIN. QPG (sequence program)
525 steps/2100 bytes
1
1: Indicates the program capacity (file header + executed program)
displayed on GX Developer. (Refer to Section 6.8.)
3) Steps secured for write during RUN: 500 steps/2000 bytes
(b)
Memory capacity calculation
Memory capacity calculation is based on the file size unit of the write target
CPU module. In the example, the file size unit of the Q25HCPU is 512
steps/2048 bytes according to Section (1).
1) Parameter file capacity calculation
The parameter file capacity is 564 bytes. However, since the parameter
file is stored in the file size unit in the program memory, it occupies 512
steps/2048 bytes.
<In program memory>
Parameter
file
564 bytes
Parameter
file
Occupies 2048 bytes
(512 steps).
2) Program capacity calculation
The program capacity is the sequence program capacity + steps
secured for write during RUN.
In the example, the program capacity is 525 steps + 500 steps = 1025
steps. However, since the program file is stored in the file size unit in the
program memory, it occupies 1536 steps/6144 bytes.
<In program memory>
6 - 27
Sequence
program
525 steps
Sequence
program
Steps secured
for write during
RUN
500 steps
Steps secured
for write during
RUN
Occupies 1536 bytes
(6144 steps).
6 - 27