M+Arrayhandling_Compare_R - Mitsubishi Electric MELSEC iQ-R Series Reference

Array handling function block library reference, programmable controller
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

2.8

M+ArrayHandling_Compare_R

Name
M+ArrayHandling_Compare_R
Overview
Item
Functional overview
Symbol
Labels to use
■Input labels
No.
Variable name
(1)
i_bEN
(2)
i_udSize
(3)
i_udInAry1Addr
(4)
i_udInAry2Addr
(5)
i_uDataType
*1 The valid range varies depending on "Device/Label Memory Area Setting" of "CPU Parameter".
■Output labels
No.
Variable name
(6)
o_bENO
(7)
o_bOK
(8)
o_udOutAryNum
(9)
o_bResult
(10)
o_bErr
(11)
o_uErrId
2 DETAILS OF THE FB LIBRARY
44
2.8 M+ArrayHandling_Compare_R
Description
Compares two specified arrays.
M+ArrayHandling_Compare_R
(1)
B
:
i_bEN
(2)
UD :
i_udSize
(3)
UD :
i_udInAry1Addr
(4)
UD :
i_udInAry2Addr
(5)
UW :
i_uDataType
Name
Data type
Execution command
Bit
Number of data
Double Word
points
[unsigned]
Input array data 1
Double Word
start address
[unsigned]
Input array data 2
Double Word
start address
[unsigned]
Data type selection
Word [unsigned]
Name
Data type
Execution status
Bit
Normal completion
Bit
Number of output
Double Word
data points
[unsigned]
Check result
Bit
Error completion
Bit
Error code
Word [unsigned]
(6)
o_bENO
:
B
(7)
o_bOK
:
B
(8)
o_udOutAryNum
:
UD
(9)
o_bResult
:
B
(10)
o_bErr
:
B
(11)
o_uErrId
:
UW
Scope
Description
On or off
On: The FB is activated.
Off: The FB is not activated.
1 to 1000000
Specifies the number of data points for arrays
where the comparison is performed.
*1
Valid device range
Specifies the start address of the file register (ZR)
where the input array data to be compared is
stored.
*1
Valid device range
Specifies the start address of the file register (ZR)
where the input array data to be compared is
stored.
0 to 2
Specifies the data type of the data to be
compared.
0: Word [signed]
1: Double Word [signed]
2: Single-precision real number
Default value
Description
Off
On: The execution command is on.
Off: The execution command is off.
Off
The on state indicates that the comparison has
been completed.
0
The number of output data points with their
comparison completed is stored.
Off
On: Passed (data match)
Off: Failed (data mismatch)
Off
The on state indicates that an error has occurred
in the FB.
0
The error code of an error occurred in the FB is
returned.

Advertisement

Table of Contents
loading

Table of Contents