Mitsubishi MELSEC iQ-F FX5 series Programming Manual page 297

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

Ex.
For example, when (n) is 5, lower 8 bits of data from (s) through (s+4) is stored into (d) through (d)+2.
b15
···
(s)
00H
(s)+1
00H
When
00H
(s)+2
(n)=5
00H
(s)+3
(s)+4
00H
• Setting the number of bytes by (n) automatically determines the byte data range specified by (s) and the device range
specified by (d) for storing the linked data.
• If (n) is 0, no processing is performed.
• The higher-order 8 bits of the device specified by (s) for storing byte data are ignored, and only the lower-order 8 bits are
applicable.
Ex.
To store data in lower 8 bits of D11 to D16 into D12 to D14
b15
···
b8
b7
D11
00H
D12
00H
D13
00H
D14
00H
D15
00H
D16
00H
• Even if the device range of the data to be linked and the device range for storing the linked data overlap, the processing is
performed normally.
Device range where the data to be linked is stored
(s)+0 to (s)+(n)-1
Operation error
Error code
Description
(SD0/SD8067)
2820
The range of (n) points of devices from the device number specified in (s) onwards exceed the corresponding device range.
The range of no. of bytes specified in (n) from the device number specified in (d) onwards exceed the corresponding device range.
b8
b7
b0
···
12H
34H
56H
78H
FEH
···
b0
D11
31H
32H
D12
33H
D13
34H
D14
35H
D15
36H
D16
b15
b8
···
(d)
34H
(d)+1
78H
(d)+2
00H
These bits become "00H".
b15
···
b8
b7
00H
32H
34H
36H
00H
00H
Device range for storing the linked data
n
(d) to (d)+(
-1)
2
b7
b0
···
12H
56H
FEH
···
b0
31H
31H
33H
35H
35H
36H
6 BASIC INSTRUCTIONS
6.5 Data Conversion Instructions
6
295

Advertisement

Table of Contents
loading

Table of Contents