Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 607

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

■When reading binary data
• If the extension of the target file is omitted, the extension will be ".BIN".
• If the specified file does not exist, an error occurs.
• If the position is specified exceeding the existing file size, 0 point of data is read and the processing completes successfully.
The following figure shows an example of reading binary data.
Ex.
Example of reading binary data (16-bit binary data)
Control data
(d1)+0
0000H
(d1)+1
-
K3
(d1)+2
K0
(d1)+3
K1
(d1)+4
(d1)+5
(d1)+6
K0
(d1)+7
K0
Data storage device
(d2)+0
K3
(d2)+1
33H 22H
Total
(d2)+2
55H 44H
Loaded
data
(d2)+3
77H 66H
Execution/completion type
Completion status
Number of read-target data
Max number of read-target data
File position
Number of columns
Data type
File data (unit: byte)
00H
11H
22H
33H
44H
55H
66H
77H
88H
99H
AAH
7 APPLICATION INSTRUCTIONS
7.6 Reading/Writing Data Instructions
7
605

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents