Compare Block - Mitsubishi Electric a2 Series Programming Manual

Simple application controllers
Table of Contents

Advertisement

α
2 Simple Application Controllers
6.13

Compare Block

The function block compares value 1 (V1) with value 2 (V2) using an operational based
instruction based upon the following conditions: =, >, >=, <, <= or <>. If current values satisfy
the operational expression then the output status is ON.
Table 6.14: Compare Function Block
Function
0 0
0
I
P
O
C
P
Setup of the Compare Function Block directly from the
1 ) Allocate the input pin to be used for the function block.
2 ) Press the "OK" key with the cursor in the function block. The function block edit screen is
displayed as shown.
3 ) Press the "OK" Key and enter the function block settings using the "
4 ) Pressing the "OK" key invokes the menu that lists the function block input data type.
5 ) Press the "OK" Key and a Direct Set value can be entered..
Set Item
I
Input pin for compare operation
The following three set items exist:
1) Compare Value (V1):
a) Constant value set range:-32768 to +32767 with an initial value 0
b) Analogue value set range: A01-A08
c) Output value from a different function block
FB
2) Operational Expression: =, >, >=, <, <=, <>
3) Compare Value (V2):
a) Constant value set range:-32768 to +32767 with an initial value 0
b) Analogue value set range: A01-A08
c) Output value from a different function block
If Compare value (V1) and Compare value (V2) satisfies the
Output
operational expression the status of the output is ON.
Description
α
2 Series Controller
B 0 0 1 : CP
S e t u p F B
C h a n g e N o
D e l e t e F B
and
B 0 0 1 : CP
Cmp V a l
V 1 =
B 0 0 1 : CP
D i r e c t S
A n a l o g
F B V a l u e
B 0 0 1 : CP
Cmp V a l
D i r e c t S e t
Function Blocks 6
" keys.
1
V 2
0
e t
I n
1
0
6 - 27

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Al2-mr-a seriesAl2-mr-d series

Table of Contents