2 DETAILS OF THE FB LIBRARY
2.7 M+ArrayHandling_Reverse_R
39
2
2.7 M+ArrayHandling_Reverse_R
Name
M+ArrayHandling_Reverse_R
Overview
Labels to use
■Input labels
*1 The valid range varies depending on "Device/Label Memory Area Setting" of "CPU Parameter".
■Output labels
Item Description
Functional overview Outputs the result of sorting a specified array in reverse order.
Symbol
No. Variable name Name Data type Scope Description
(1) i_bEN Execution command Bit On or off On: The FB is activated.
Off: The FB is not activated.
(2) i_udSize Number of data
points
Double Word
[unsigned]
1 to 1000000 Specifies the number of data points for an array
where sorting in reverse order is performed.
(3) i_udInAryAddr Input array data start
address
Double Word
[unsigned]
Valid device range
*1
Specifies the start address of the file register (ZR)
where the input array data to be operated is
stored.
(4) i_udOutAryAddr Output array data
start address
Double Word
[unsigned]
Valid device range
*1
Specifies the start address of the file register (ZR)
where the operation results are to be stored.
(5) i_uDataType Data type selection Word [unsigned] 0 to 4 Specifies the data type of the data to be operated.
0: Word [signed]
1: Double Word [signed]
2: Single-precision real number
3: Word [unsigned]
4: Double Word [unsigned]
No. Variable name Name Data type Default value Description
(6) o_bENO Execution status Bit Off On: The execution command is on.
Off: The execution command is off.
(7) o_bOK Normal completion Bit Off The on state indicates that sorting has been
completed.
(8) o_udOutAryNum Number of output
data points
Double Word
[unsigned]
0 The number of output data points with their
sorting completed is stored.
(9) o_bErr Error completion Bit Off The on state indicates that an error has occurred
in the FB.
(10) o_uErrId Error code Word [unsigned] 0 The error code of an error occurred in the FB is
returned.
o_bErr B:
o_udOutAryNum UD:
o_bOK B:
o_bENO B:
i_udSizeUD :
i_bENB:
M+ArrayHandling_Reverse_R
o_uErrId UW:
:
i_udInAryAddrUD ::
i_udOutAryAddrUD :
:
:
:
i_uDataTypeUW :
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)