2 CPU MODULE INSTRUCTION
2.3 Application instruction
73
2
â– Searching the maximum value of 16-bit/32-bit data
â– Searching the minimum value of 16-bit/32-bit data
â– Sorting 16-bit data
â– 16-bit/32-bit data alignment 2
â– Adding 16-bit data
â– Adding 32-bit data
Instruction symbol Description Reference
MAX This instruction searches the data of (n) points from the device specified by (s) in 16-bit units, and
stores the maximum value in the device specified by (d).
Page 555
MAXP
MAX_U
MAXP_U
DMAX This instruction searches the data of (n) points from the device specified by (s) in 32-bit units, and
stores the maximum value in the device specified by (d).
Page 556
DMAXP
DMAX_U
DMAXP_U
Instruction symbol Description Reference
MIN This instruction searches the data of (n) points from the device specified by (s) in 16-bit units, and
stores the minimum value in the device specified by (d).
Page 557
MINP
MIN_U
MINP_U
DMIN This instruction searches the data of (n) points from the device specified by (s) in 32-bit units, and
stores the minimum value in the device specified by (d).
Page 558
DMINP
DMIN_U
DMINP_U
Instruction symbol Description Reference
SORTTBL In the data table (sorting source) having ((m1)ï‚´(m2)) points specified by (s), sorts the data lines in
the ascending order based on the group data in the column number (n), and stores the result in the
data table (sorting result) having ((m1)ï‚´(m2)) points specified by (d).
Page 559
SORTTBL_U
Instruction symbol Description Reference
SORTTBL2 In the data table (sorting source) of 16-bit binary data having (m1ï‚´m2) points specified by (s), sorts
the data lines in the ascending order based on the group data in the column number (n), and stores
the result in the data table (sorting result) of 16-bit binary data having ((m1)ï‚´(m2)) points specified
by (d).
Page 562
SORTTBL2_U
DSORTTBL2 In the data table (sorting source) of 32-bit binary data having (m1ï‚´m2) points specified by (s), sorts
the data lines in the ascending order based on the group data in the column number (n), and stores
the result in the data table (sorting result) of 32-bit binary data having ((m1)ï‚´(m2)) points specified
by (d).
Page 565
DSORTTBL2_U
Instruction symbol Description Reference
WSUM These instructions add the (n) points of 16-bit binary data in the device starting from the one
specified by (s), and store the result in the device specified by (d).
Page 568
WSUM_U
WSUMP
WSUMP_U
Instruction symbol Description Reference
DWSUM These instructions add the (n) points of 32-bit binary data in the device starting from the one
specified by (s), and store the result in the device specified by (d).
Page 569
DWSUM_U
DWSUMP
DWSUMP_U