6 BASIC INSTRUCTIONS
6.6 Data Conversion Instructions
489
6
Processing details
• These instructions combine the (n) bytes of lower 8 bits of 16-bit binary data in the device specified by (s) and later in units
of words, and store the combined data in the device specified by (d) and later.
• The (n) bytes of upper 8 bits of 16-bit binary data in the device specified by (s) and later are ignored. When (n) is an odd
number, the upper 8 bits of the device where 'n'th-byte data is stored are filled with 0s.
*1 Values after the decimal point are rounded up.
Ex.
When (n) is 5, the lower 8 bits of the data in the device specified by (s) to (s)+4 are combined and stored in the device
specified by (d) to (d)+2.
• Setting the number of bytes for (n) automatically determines the range of byte data in the device specified by (s) and the
range of the device specified by (d) for storing the combined data.
• If (n) is 0, no processing is performed.
• The upper 8 bits in the device specified by (s) and later are ignored, and only the lower 8 bits are processed.
• Even when the ranges of the device where the combination target data is stored and the device for storing the combined
data overlap, the processing is performed normally.
Ex.
When the lower 8 bits of D11 to D16 are stored in D12 to D14
Operation error
There is no operation error.
:
th byte data
(1) The upper byte data are ignored.
(1) (n)=5
(2) Filled with 00H.
Range of the device where the combination target data is
stored
Range of the device for storing the combined data
(s)+0 to (s)+(n)-1
(d)+1
(d)
(d)+( -1)
*1
2
(n)
∙∙∙
b0
b7
∙∙∙
b8
b15
∙∙∙
b0
b7
∙∙∙
b8
b15
(s)
(s)+1
(s)+2
(s)+3
(s)+(n)-1
∙∙∙
∙∙∙
∙∙∙
∙∙∙
(n)
1
2
3
4
n
1
2
3
4
n
n-1
(1)
(d)+1
(d)+2
(d)
∙∙∙
b0
b7
∙∙∙
b8
b15
∙∙∙
b0
b7
∙∙∙
b8
b15
(s)
(s)+1
(s)+2
(s)+3
(s)+4
00H
00H
00H
00H
00H
12H
34H
56H
78H
FEH
34H
78H
00H
12H
56H
FEH
(1)
(2)
(d) to (d)+( -1)
2
(n)
D12
D13
D11
∙∙∙
b0
b7
∙∙∙
b8
b15
∙∙∙
b0
b7
∙∙∙
b8
b15
D11
D12
D13
D14
D15
D16
D14
D15
D16
00H
32H
34H
36H
00H
31H
31H
33H
35H
00H
35H
36H
31H
32H
33H
34H
35H
36H
00H
00H
00H
00H
00H
00H
Содержание MELSEC iQ-R Series
Страница 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Страница 2: ......
Страница 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Страница 34: ...32 MEMO ...
Страница 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Страница 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Страница 204: ...202 5 SEQUENCE INSTRUCTIONS 5 3 Output Instructions Operation error There is no operation error ...
Страница 470: ...468 6 BASIC INSTRUCTIONS 6 6 Data Conversion Instructions Operation error There is no operation error ...
Страница 472: ...470 6 BASIC INSTRUCTIONS 6 6 Data Conversion Instructions Operation error There is no operation error ...
Страница 479: ...6 BASIC INSTRUCTIONS 6 6 Data Conversion Instructions 477 6 Operation error There is no operation error ...
Страница 504: ...502 6 BASIC INSTRUCTIONS 6 7 Data Transfer Instructions Operation error There is no operation error ...
Страница 518: ...516 6 BASIC INSTRUCTIONS 6 7 Data Transfer Instructions Operation error There is no operation error ...
Страница 520: ...518 6 BASIC INSTRUCTIONS 6 7 Data Transfer Instructions Operation error There is no operation error ...
Страница 754: ...752 7 APPLICATION INSTRUCTIONS 7 9 Real Number Instructions Operation error There is no operation error ...
Страница 756: ...754 7 APPLICATION INSTRUCTIONS 7 9 Real Number Instructions Operation error There is no operation error ...
Страница 758: ...756 7 APPLICATION INSTRUCTIONS 7 9 Real Number Instructions Operation error There is no operation error ...
Страница 760: ...758 7 APPLICATION INSTRUCTIONS 7 9 Real Number Instructions Operation error There is no operation error ...
Страница 895: ...7 APPLICATION INSTRUCTIONS 7 16 Ramp Signal Instruction 893 7 Operation error There is no operation error ...
Страница 917: ...7 APPLICATION INSTRUCTIONS 7 20 Data Processing Instructions 915 7 Operation error There is no operation error ...
Страница 919: ...7 APPLICATION INSTRUCTIONS 7 20 Data Processing Instructions 917 7 Operation error There is no operation error ...
Страница 1415: ...13 SFC PROGRAM INSTRUCTIONS 13 1 SFC Control Instructions 1413 13 Operation error There is no operation error ...
Страница 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Страница 1795: ...25 TYPE CONVERSION FUNCTIONS 25 1 Converting BOOL to WORD 1793 25 Operation error There is no operation error ...
Страница 1805: ...25 TYPE CONVERSION FUNCTIONS 25 10 Converting WORD to DINT 1803 25 Operation error There is no operation error ...
Страница 1819: ...25 TYPE CONVERSION FUNCTIONS 25 21 Converting INT to DWORD 1817 25 Operation error There is no operation error ...
Страница 1950: ...1948 32 STRING FUNCTIONS 32 2 Extracting String Data From the Left Right Operation error There is no operation error ...
Страница 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Страница 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Страница 2082: ...2080 APPX Appendix 6 Process Control Program Examples 129 Set the default value of the loop tag ...
Страница 2093: ...APPX Appendix 7 List of Loop Tag Memory Areas Used by Process Control Instructions 2091 A MEMO ...
Страница 2109: ......