Mitsubishi Electric MELSEC iQ-R Series Reference page 48

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

Advertisement

Item
Functional description
FB compilation method
FB operation
2 DETAILS OF THE FB LIBRARY
46
2.8 M+ArrayHandling_Compare_R
Description
(6) For the single-precision real number, data are compared by using the following formulas considering a rounding error.
When S (difference) is smaller than E (tolerance) (S < E), the values of two data are regarded as matched.
• S: Difference = |Input value 1 - Input value 2|
• E: Tolerance = Rounding error (1.1920929E-007)
(7) It takes multiple scans until the comparison processing is completed. Thus, do not change the target input array data
sets until the processing is completed. The number of points with the comparison completed is output to
o_udOutAryNum (number of output data points). When the processing is completed, o_bOK (normal completion) turns
on.
(8) If a value out of the range is set in i_udSize (number of data points), o_bErr (error completion) turns on and the
processing of the FB is interrupted. In addition, 105H is stored in o_uErrId (error code). For the error code, refer to the
list of error codes. ( Page 48 List of error codes)
(9) If a value out of the range is set in i_uDataType (data type selection), o_bErr (error completion) turns on and the
processing of the FB is interrupted. In addition, 103H is stored in o_uErrId (error code). For the error code, refer to the
list of error codes. ( Page 48 List of error codes)
(10)When a single-precision real number is set in i_uDataType (data type selection) and the value stored in the file register
(ZR) is not a single-precision real number, o_bErr (error completion) turns on and the processing of the FB is
interrupted. In addition, 200H is stored in o_uErrId (error code). For the error code, refer to the list of error codes. (
Page 48 List of error codes)
(11)If i_bEN (execution command) is turned off before o_bOK (normal completion) or o_bErr (error completion) turns on,
o_bErr (error completion) turns on in one scan. In addition, 205H is stored in o_uErrId (error code) in one scan. For the
error code, refer to the list of error codes. ( Page 48 List of error codes)
Subroutine type
Pulse execution type (multiple scan execution type)

Advertisement

Table of Contents
loading

Table of Contents