LSIS MASTER-K200S Instructions & Programming page 135

Table of Contents

Advertisement

Chapter 5. Application instructions
5.3.5
OR ( =, >, <, >=, <=, <>)
FUN(188) OR=
OR
FUN(196) OR>
(Parallel NO
FUN(198) OR<
contact with
FUN(216) OR>=
comparison result)
FUN(218) OR<=
FUN(228) OR<>
Instructions
M
P
S1
OR
O O O O
O O O O
ORD
S2
D
1)
Functions
-
Compares contents of [ S1 ] and [ S2 ], then operates as a parallel NO contact according to the
comparison operation result. The comparison is executed as signed operation.
-
The comparison operation result is as shown below :
Instruction
symbol in
=
<=
>=
< >
<
>
2)
Program example
a) Compare P0000 ~ P000F and D0001. If their values are equal or M000 is on, P0010 bit will be
switched on.
M000
= P000 D0001
b) Compare 1000 and contents of D0001 and D0002 (32 bits). If the content of D0001 and D0002 is less
than 1000 or M020 is on, P0010 will turn on.
M020
D>= 1000 D0001
FUN(189) ORD=
FUN(197) ORD>
FUN(199) ORD<
FUN(217) ORD>=
FUN(219) ORD<=
FUN(229) ORD<>
Available Device
K
L
F
T
C
S
O O
O
O O
O
S1
S2
S1
S2
Comparison
Condition
operation
result
= S
S
1
2
≤ S
S
1
2
≥S
S
1
2
On
≠ S
S
1
2
< S
S
1
2
> S
S
1
2
(
P0010
(
P0010
5-23
Applicable
CPU
Steps
D
#D Integer
O O
O
5 / 9
O O
O
Operand setting
S1
Data to be compared
S2
Instruction
Condition
symbol in
≠ S
=
S
1
2
> S
<=
S
1
2
< S
>=
S
1
2
= S
< >
S
1
2
≥S
<
S
1
2
≤ S
>
S
1
2
)
)
K200S
K300S
K1000S
Flag
Error
Zero
Carry
(F110)
(F111)
(F112)
O
Comparison
operation
result
Off

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MASTER-K200S and is the answer not in the manual?

Table of Contents