![background image](http://html1.mh-extra.com/html/ls-industrial-systems/xbc-dn10e/xbc-dn10e_user-manual_1943831324.webp)
Chapter 6 Instruction and Flag List
XBC E-Type Main Unit
6-207
Ver. 1
6.32.7 WTOB, WTOBP
Instruction
Area Available
Step
Flag
P M K
F
L
T
C
S
Z D.x R.x
Con
st
U
N
D
R
Error
(F110)
Zero
(F111)
Carry
(F112)
WTOB(P)
S
O O O O O O O
-
O
-
-
O O O O O
2~4
O
-
-
D
O O O
-
O O O
-
O
-
-
-
O O O O
N
O O O
-
-
-
-
-
O
-
-
-
O O O O
Operand
Description
Data Type
S
WORD data or Area Number where WORD data is saved
WORD
D
Start Number of area to save data converted to Byte
WORD
N
Number of converted Byte
WORD
[Flag Setting]
Flag
Description
Device Number
Error
If S or D is exceeds specified device’s acceptable range.
F110
1) WTOB
(1) Saves N bytes resulting from each word data divided into 2 bytes starting from S, in starting D. The upper
byte will be filled with 0s, and the lower byte with byte value divided.
(2) In case N=0, instruction is not executed
(3) If N=0, the instruction will not be executed.
2) Program Example
(1) When D01000=h1234, D01001=h5678,D01200=h0003, if Input Signal P00000 is changed from Off to
On, it saves D01100=h0034, D01101=h0012 and D01102=h0078.
WTOBP D01000 D01100 D01200
P00000
WTOB
means WTOB
P S
D
WTOBP
S
D
N
N
Upper byte
Lower byte
Upper byte
Lower byte
Upper byte
Lower byte
h00
Lower byte data
h00
Upper byte data
h00
Lower byte data
h00
Upper byte data
h00
Lower byte data
S
S+1
b15
b 8
b 7
b 0
D
D+1
D+2
D+3
D+(N-2)
h00
Upper byte data
D+(N-1)
N
byte
b15
b 8
b 7
b 0
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...