M+Arrayhandling_Pointmul_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.3

M+ArrayHandling_PointMul_R

Name
M+ArrayHandling_PointMul_R
Overview
Item
Functional overview
Symbol
Labels to use
■Input labels
No.
Variable name
(1)
i_bEN
(2)
i_udSize
(3)
i_udInAryAddr
(4)
i_udInPointAddr
(5)
i_udOutAryAddr
(6)
i_uDataType
*1 The valid range varies depending on "Device/Label Memory Area Setting" of "CPU Parameter".
■Output labels
No.
Variable name
(7)
o_bENO
(8)
o_bOK
(9)
o_udOutAryNum
(10)
o_bErr
(11)
o_uErrId
2 DETAILS OF THE FB LIBRARY
16
2.3 M+ArrayHandling_PointMul_R
Description
Multiplies values of each element in a specified array by a specified value.
M+ArrayHandling_PointMul_R
(1)
B
:
i_bEN
(2)
UD :
i_udSize
(3)
UD :
i_udInAryAddr
(4)
UD :
i_udInPointAddr
(5)
UD :
i_udOutAryAddr
(6)
UW :
i_uDataType
Name
Data type
Execution command
Bit
Number of data
Double Word
points
[unsigned]
Input array data start
Double Word
address
[unsigned]
Input value address
Double Word
[unsigned]
Output array data
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]
Error completion
Bit
Error code
Word [unsigned]
(7)
o_bENO
:
B
(8)
o_bOK
:
B
(9)
o_udOutAryNum
:
UD
(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 an array
where the multiplication is performed.
*1
Valid device range
Specifies the start address of the file register (ZR)
where the input array data of the multiplication
target values are stored.
*1
Valid device range
Specifies the address of the file register (ZR)
where the multiplication value is stored.
*1
Valid device range
Specifies the start address of the file register (ZR)
where the operation results are to be stored.
0 to 2
Specifies the data type of the data to be operated.
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 multiplication has
been completed.
0
The number of output data points with their
multiplication completed is stored.
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