Mitsubishi MELSEC Q Series Programming Manual page 797

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

(i)
Below is the method for calculating the file size (total number of bytes) when a CSV
format file is written to the ATA card.
Total number of bytes = Total bytes excluding final line + bytes of final line
(Number of bytes on a line = number of columns
*2
line
)
*1: For all lines but the final line, this is the specified number of columns. The number of columns on the final
line depends on the number of columns specified via the amount of data written. It is calculated as
follows.
(1) The number of lines excluding the final line is calculated.
Number of lines excluding final line = Amount of data in write request + number of columns
(remainders discarded)
(2) The number of columns in the final line is calculated.
Number of columns in final line = Amount of data in write request - number of lines excluding final
line* number of columns)
*2: The number of bytes for each data value is calculated as shown below.
Sign of Data
Bytes per Data Value
Value
Positive
Negative
Num. digits + 1
Byte Count Range
1 to 5 (word specified)
Num. digits
1 to 3 (byte specified)
2 to 6 (word specified)
2 to 4 (byte specified)
SP.FWRITE
*1
+ 1 + total bytes of all data values on
Examples
12345: 5 bytes
67: 2 bytes
-12345: 6 bytes
-67: 3 bytes
1
2
3
4
6
6
7
8
7-423

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents