File Sizes - Omron CJ2 CPU UNIT SOFTWARE User Manual

Cj2 cpu unit software
Hide thumbs Also See for CJ2 CPU UNIT SOFTWARE:
Table of Contents

Advertisement

7 File Operations
7-3-4

File Sizes

The size of files in bytes can be calculated with the equations in the following table.
File type
Data files (.IOM)
Data files (.TXT or .CSV)
Program files (.OBJ)
Parameter files (.STD)
*1 Calculate the number of steps in the program file by subtracting the available UM steps from the total UM
steps. These values are shown in the CX-Programmer's Cross-Reference Report. Refer to the CX-Program-
mer Operation Manual for details.
7-20
(Number of words × 2) + 48 bytes
Example: Entire DM Area (D0 to D32767)
(32,768 words × 2) + 48 = 65,584 bytes
The file size depends upon the number of delimiters and carriage returns
being used. The delimiter code is one byte and the carriage return code is
two bytes.
Example 1: Non-delimited words, no carriage return
123456789ABCDEF012345678 occupies 24 bytes.
Example 2: Delimited words, carriage return every 2 fields
1234,5678↵
9ABC,DEF0↵
1234,5678↵ occupies 33 bytes.
Example 3: Delimited double words, carriage return every 2 fields
56781234,DEF01234↵
56781234↵ occupies 29 bytes.
(Number of steps used × 4) + 48 bytes
16,048 bytes
File size
*1
CJ2 CPU Unit Software User's Manual

Advertisement

Table of Contents
loading

Table of Contents