Table 26 - Standard bitwise Boolean functions
Graphical form
Usage examples
+-----+
ANY_BIT ---| *** |--- ANY_BIT
ANY_BIT ---| |
: ---| |
: ---| |
ANY_BIT ---| |
+-----+
(***) - Name or symbol
A := AND(B,C,D) ;
or
A := B & C & D ;
No.
a,b
Name
Symbol
Description
5
AND
& (NOTE 1)
OUT := IN1 & IN2 & ... & INn
6
OR
>=1 (NOTE 2)
OUT := IN1 OR IN2 OR ... OR INn
7
XOR
=2k+1 (NOTE 2)
OUT := IN1 XOR IN2 XOR ... XOR INn
8
NOT
OUT := NOT IN1 (NOTE 4)
NOTE 1
This symbol is suitable for use as an operator in textual languages, as shown in tables
52 and 55.
NOTE 2
This symbol is not suitable for use as an operator in textual languages.
NOTE 3
The notations IN1, IN2, ..., INn refer to the inputs in top-to-bottom order; OUT refers to
the output.
NOTE 4
Graphic negation of signals of type BOOL can also be accomplished as shown in table
19.
NOTE 5
Usage examples and descriptions are given in the ST language defined in 3.3.
a
When the named representation of a function is supported, this shall be indicated by the suffix
“n” in the compliance statement. For example, “5n” represents the notation “AND”.
b
When the symbolic representation of a function is supported, this shall be indicated by the suffix
“s” in the compliance statement. For example, “5s” represents the notation “&”.
Copyright International Electrotechnical Commission
Provided by IHS under license with IEC
Not for Resale
No reproduction or networking permitted without license from IHS
--``````-`-`,,`,,`,`,,`---
61131-3
IEC:2003(E)
– 61 –
Do'stlaringiz bilan baham: |