EasyManua.ls Logo

LS Industrial Systems XBC-E Series - Instruction

LS Industrial Systems XBC-E Series
542 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 6 Instruction Details
XBC E-Type Main Unit 6-183 Ve r. 1
6.30.2 WOR, WORP, DWOR, DWORP
Instruction
Area Available
Step
Flag
P M K F L T C S Z D.x
R.x
Co
nst.
U N D R
Error
(F110)
Zero
(F111)
Carry
(F112)
WOR(P)
DWOR(P)
S1
O
O
O
O
O
O
O
-
O
-
-
O
O
O
O
O
4~6 - O -
S2
O
O
O
O
O
O
O
-
O
-
-
-
O
O
O
O
D
O
O
O
-
O
O
O
-
O
-
-
-
O
-
O
O
Operand
Description
Data Type
S1
Data to execute WOR operation with S2
BIN 16/32
S2
Data to execute WOR operation with S1
BIN 16/32
D Address to save WOR operation result in BIN 16/32
[Flag Set]
Flag Description
Device
Number
Zero
To be set if operation result is Zero.
F111
1) WOR (Word OR)
(1) Saves the result of word data (16-bit) S1 and S2 operated in Logic OR for each bit in D.
2) DWOR (Double Word OR)
(1) Saves the result of double word data (32-bit) (S1+1,S1) and (S2+1,S2) operated in Logic OR for each bit in
(D+1, D).
WOR
D
b15 b8
b0
b7
1 1 0 0 0 1
1 0 0
1 1 1 0 1 1 0
S2
b8
b0
b7
S1
b15 b8
b0
b7
b15
1 1 0
1 0 0 1
1 1 0
1 1 0
1 0 0
1 1 0 1 0 1
1 1 1 1 1 1 0 1 1 0
(D)WOR
means
WOR/DWOR
P
S1
S2
(D)WORP
S1
S2
D
D

Table of Contents

Related product manuals