Calculation Block - Mitsubishi a2 Series Programming Manual

Simple application controller
Table of Contents

Advertisement

α
2 Simple Application Controllers
6.28

Calculation Block

The function block creates an expression using up to four input word data (A, B, C and D) using
five operators (+, -, * , /, %) and outputs the calculation result to Y. A maximum of 64 terms can
be included in the calculation expression. Nesting using parenthesis is available up to 6 times.
Table 6.36: Calculation Function Block
Function
0 0
0
I
P
O
C
A
L
Table 6.37: Calculation Function Block terms
Term
Y
A, B, C and D
+
-
/
%
Set Item
I
Input pin for multiplication function block
This function block creates an expression using up to 4 input words
(A, B, C, D), 5 operators (+, -, ∗, /, %) and outputs the calculation
result to Y. A maximum of 64 terms can be included in the calculation
expression. Nesting using parenthesis is available up to a maximum
of 6 levels.
FB
Input values A, B, C, and D set the following values:
1) DirectSet (Constant value) : setting range -32768 to +32767 with
2) Analog In (Analog Input)
3) FB Value: output value from a function block
1) Word Output (Y)
When the input pin is ON, the word output will be given the
calculation result. When the input pin is OFF the expression is not
executed and the word output values will retain the last result.
Output
2) Bit Output
- If there is an error in the formula, output pin is ON.
- If the operation process value exceeds the range of -32768 to
32767, output pin is ON.
Description
Operation result
Input value
Calculation sign for addition
Calculation sign for subtraction
Calculation sign for multiplication
Calculation sign to request the Quotient
Calculation sign to request the reminder
Description
an initial value 0
: setting range A01 to A08 with an
initial input A01
Function Blocks 6
6 - 74

Advertisement

Table of Contents
loading

Table of Contents