Compare Block - Mitsubishi a2 Series Programming Manual

Simple application controller
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.
Set Item
I
Input pin for compare operation
The following three set items exist:
1) Compare Value 1 (V1):
a) DirectSet (Constant value): setting range -32768 to +32767 with
b) Analog In (Analog Input) : setting range A01 to A08 with an
c) FB Value: output value from a function block
FB
2) Operational Expression: =, >, >=, <, <=, <>
3) Compare Value 2 (V2):
a) DirectSet (Constant value): setting range -32768 to +32767 with
b) Analog In (Analog Input) : setting range A01 to A08 with an
c) FB Value: output value from a function block
If Compare value 1 (V1) and Compare value 2 (V2) satisfies the
Output
operational expression the status of the output is ON.
Description
an initial value 0
initial input A01
an initial value 0
initial input A01
α
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
Function Blocks 6
" keys.
1
V 2
0
e t
I n
6 - 29

Advertisement

Table of Contents
loading

Table of Contents