Inputs, Figure 10.41— the calculation function block, Table 10.1—symbol operation – Watlow LogicPro User Manual
Page 176

Chapter 10: Function Blocks
LogicPro User’s Guide
160
Watlow Anafaze
Doc.# 28002-00 Rev 3.00
symbol3 = comparison
In the CAL function block, this symbol specifies the exact type
of calculation to be made and takes on one value as shown in
Table 10.1 .
Table 10.1
Symbol Operation
For example, the function block would compute the operation
A * B
as (the value of A) times (the value of B) and places the result
of the 16-bit integer multiplication into the destination
location C. Similarly, the bitwise NOR calculation A @! B
would place in destination C the result of the bitwise NOT OR
(Boolean nor) comparison. If the third symbol is division
(SYM3=“/”), and the second argument of the calculation is B
= zero, an error occurs, marked by disabling the output bit Q.
NOTE!
If the output of an arithmetic operation (+, -, *, or )
falls outside the acceptable range of C, Q is
locked as disabled (0).
Figure 10.41 The Calculation Function Block
Inputs
EN-- is the CAL function block’s enable bit. The calculation is
performed if True.
Symbol
Operation
+
addition
-
subtraction
*
multiplication
/
division
&
Logical AND
|
Logical OR
@
Exclusive XOR
@!
Exclusive NOT OR
CALC
EN
C
Q
A
W
+
1
B