672
8 APPLICATION INSTRUCTION
8.22 Data Operation Instruction
• Sorting result when the instructions are executed with (n3) = K3 (column No. 3) (in the case of descending order
SM703=ON)
Precautions
• Do not change the contents of operands and data during operation.
• To execute these instructions again, set the command input to off once, then on again.
• These instructions can be used up to or twice in any program.
• When specifying the same device in (s) and (d), the source data is overwritten by the data acquired by sorting. Take special
care so that the contents of (s) are not changed until execution is completed.
• Ensure that the sorted data does not overlap with the source data.
Operation error
Error code
(SD0/SD8067)
Description
2820H
The device range specified by (s) exceeds the corresponding device range.
The device range specified by (d) exceeds the corresponding device range.
3405H
The value specified by (n1) is outside the following range.
1 to 32
The value specified by (n2) is outside the following range.
1 to 6
The value specified by (n3) is outside the following range.
1 to (n2)
Number of groups (n2 = K4)
Column No. 1
Column No. 2
Column No. 3
Column No. 4
Control number
Height
Weight
Age
0
3
0
7
0
6
1
3
0
4
0
5
0
8
1
2
5
4
0
5
0
5
1
5
0
2
5
4
0
5
1
1
8
0
2
0
0
1
4
Number of data (n1) = 5
Line No. 2
Line No. 3
Line No. 4
Line No. 5
Line No. 1
(d)+19, (d)+18
(d)+1, (d)
(d)+3, (d)+2
(d)+5, (d)+4
(d)+7, (d)+6
(d)+9, (d)+8
(d)+11, (d)+10
(d)+13, (d)+12
(d)+15, (d)+14
(d)+17, (d)+16
(d)+23, (d)+22
(d)+21, (d)+20
(d)+25, (d)+24
(d)+27, (d)+26
(d)+29, (d)+28
(d)+31, (d)+30
(d)+33, (d)+32
(d)+35, (d)+34
(d)+37, (d)+36
(d)+39, (d)+38
D10
D30
D2
D22
D10
D30
D20
D40
D10
D30
D10
D30
D10
D30
D35
D55
D50
D70
D20
D40
Source Data
Sorted Data
Source Data
Sorted Data
Source Data
Sorted Data
Source Data
Sorted Data
Source Data
Sorted Data
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......