Mitsubishi Electric MELSEC iQ-R Series Reference page 14

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
12
2.2 M+ArrayHandling_PointSub_R
Description
(6) Specify Word [signed], Double Word [signed], or Single-precision real number as the data type of input array data, the
subtraction value, and output array data in i_uDataType (data type selection).
(7) Specify the number of data points for an array where the subtraction is performed in i_udSize (number of data points).
When 1: Double Word [signed] or 2: Single-precision real number is specified by i_uDataType (data type selection), file
register (ZR) areas twice as many as the setting value of i_udSize (number of data points) are required.
(8) It takes multiple scans until the subtraction is completed. When the input array data before the operation is changed
during the operation processing, the operation processing is executed with the changed data. The number of points with
the operation completed is output to o_udOutAryNum (number of output data points). When the subtraction is completed,
o_bOK (normal completion) turns on.
(9) 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 15 List of error codes)
(10)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 15 List of error codes)
(11)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 15 List
of error codes)
(12)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 15 List of error codes)
The operation results of the subtraction that has been completed before i_bEN (execution command) is turned off remain
stored in the file register (ZR).
(13)When a single-precision real number is set in i_uDataType (data type selection) and the operation result exceeds the
scope of the single-precision real number, o_bErr (error completion) turns on and the processing of the FB is interrupted.
In addition, 203H is stored in o_uErrId (error code) in one scan. For the error code, refer to the list of error codes. (
Page 15 List of error codes)
Subroutine type
Pulse execution type (multiple scan execution type)

Advertisement

Table of Contents
loading

Table of Contents