Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 673

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

• The data table configuration is explained in an example in which the sorting source data table has 3 lines and 4 columns
(n1 = K3, n2 = K4). For the sorting result data table, understand (s) as (d).
Number of data (n1) = 3
Line No. 1
Line No. 2
Line No. 3
• Set the sorting order by setting SM703 to on or off.
SM703 = ON
SM703 = OFF
• When the command input turns on, data sorting is started. Data sorting is completed after (n1) scans, and the instruction
execution complete flag SM8029 is set to on.
• The following table shows an operation example based on the sorting source data below. It is recommended to put a serial
number such as a control number in the first column so that the original line number can be estimated based on the
contents.
Number of data (n1) = 5
Line No. 1
Line No. 2
Line No. 3
Line No. 4
Line No. 5
• Sorting result when the instructions are executed with (n3) = K2 (column No. 2) (in the case of ascending order
SM703=OFF)
Number of data (n1) = 5
Line No. 1
Line No. 2
Line No. 3
Line No. 4
Line No. 5
Number of groups (n2 = K4)
Column No. 1
Column No. 2
Control number
Height
(s)+1, (s)
(s)+3, (s)+2
(s)+9, (s)+8
(s)+11, (s)+10
(s)+17, (s)+16
(s)+19, (s)+18
Sorting order
Descending order
Ascending order
Number of groups (n2 = K4)
Column No. 1
Column No. 2
Control number
Height
(s)+1, (s)
(s)+3, (s)+2
1
150
(s)+9, (s)+8
(s)+11, (s)+10
2
180
(s)+17, (s)+16
(s)+19, (s)+18
3
160
(s)+25, (s)+24
(s)+27, (s)+26
4
100
(s)+33, (s)+32
(s)+35, (s)+34
5
150
Number of groups (n2 = K4)
Column No. 1
Column No. 2
Control number
Height
(d)+1, (d)
(d)+3, (d)+2
4
1
0
0
(d)+9, (d)+8
(d)+11, (d)+10
1
1
5
0
(d)+17, (d)+16
(d)+19, (d)+18
5
1
5
0
(d)+25, (d)+24
(d)+27, (d)+26
3
1
6
0
(d)+33, (d)+32
(d)+35, (d)+34
2
1
8
0
Column No. 3
Column No. 4
Weight
Age
(s)+5, (s)+4
(s)+7, (s)+6
(s)+13, (s)+12
(s)+15, (s)+14
(s)+21, (s)+20
(s)+23, (s)+22
Column No. 3
Column No. 4
Weight
Age
(s)+5, (s)+4
(s)+7, (s)+6
45
20
(s)+13, (s)+12
(s)+15, (s)+14
50
40
(s)+21, (s)+20
(s)+23, (s)+22
70
30
(s)+29, (s)+28
(s)+31, (s)+30
20
8
(s)+37, (s)+36
(s)+39, (s)+38
50
45
Column No. 3
Column No. 4
Weight
Age
(d)+5, (d)+4
(d)+7, (d)+6
2
0
8
(d)+13, (d)+12
(d)+15, (d)+14
4
5
2
0
(d)+21, (d)+20
(d)+23, (d)+22
5
0
4
5
(d)+29, (d)+28
(d)+31, (d)+30
7
0
3
0
(d)+37, (d)+36
(d)+39, (d)+38
5
0
4
0
8 APPLICATION INSTRUCTION
8.22 Data Operation Instruction
8
671

Hide quick links:

Advertisement

loading