Iec 61131-3 Second edition 2003-01 Programmable controllers – Part 3: Programming languages


Table 51 b) - Parenthesized expression features for IL language


Download 1.35 Mb.
Pdf ko'rish
bet101/158
Sana17.06.2023
Hajmi1.35 Mb.
#1528208
1   ...   97   98   99   100   101   102   103   104   ...   158
Bog'liq
ourdev 569653

Table 51 b) - Parenthesized expression features for IL language
No.
DESCRIPTION/EXAMPLE
1
Parenthesized expression beginning with explicit operator:
AND(
LD %IX1 (NOTE 1)
OR %IX2
)
2
Parenthesized expression (short form):
AND( %IX1
OR %IX2
)
NOTE In form 1 the LD operator may be modified or the LD operation may be
replaced by another operation or function invocation respectively.
The modifier “C” indicates that the associated instruction shall be performed only if the value of the
currently evaluated result is Boolean 1 (or Boolean 0 if the operator is combined with the “N” modifier).
Table 52 - Instruction list operators
No.
OPERATOR
a
MODIFIERS
 (Note 1)
SEMANTICS
1
LD
N
Set current result equal to operand
2
ST
N
Store current result to operand location
3
S
e
Set operand to 1 if current result is Boolean 1
R
e
Reset operand to 0 if current result is Boolean
1
4
AND
N, (
Logical AND
5
&
N, (
Logical AND
6
OR
N, (
Logical OR
7
XOR
N, (
Logical exclusive OR
7a
NOT
d
Logical negation (one's complement)
8
ADD
(
Addition
9
SUB
(
Subtraction
10
MUL
(
Multiplication
11
DIV
(
Division
11a
MOD
(
Modulo-division
12
GT
(
Comparison: >
13
GE
(
Comparison: >=
14
EQ
(
Comparison: =
15
NE
(
Comparison: <>

Download 1.35 Mb.

Do'stlaringiz bilan baham:
1   ...   97   98   99   100   101   102   103   104   ...   158




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling