![background image](http://html1.mh-extra.com/html/ls-industrial-systems/xbc-dn10e/xbc-dn10e_user-manual_1943831325.webp)
Chapter 6 Instruction and Flag List
XBC E-Type Main Unit
6-208
Ver. 1
6.32.8 BTOW, BTOWP
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)
BTOW(P)
S
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
N
O O O
-
O O O
-
-
-
-
-
O O O O
Operand
Description
Data Type
S
Byte data or Area Number where Byte data is saved
WORD
D
Area to save data converted to WORD
WORD
N
Number of bytes to unite.
WORD
[Flag Setting]
1) BTOW
(1) Saves the result of the lower N byte data united with word data starting from S, in starting D. If N is an odd
number, the upper of device saved last will be filled with 0s.
(2) If N=0, the instruction will not be executed.
2) Program Example
(1) When D1000=h0012, D1001=h0034 and D1200=h0003, if Input Signal is changed from Off to On status, it
saves D1100=h3412 and D1101=h0045.
BTOWP D1000 D1100 D1200
P00000
Flag
Description
Device Number
Error
If S or D is exceeded specified device’s acceptable range
F110
BTOW
means BTOW
P S
D
BTOWP
S
D
N
N
1
st
byte data
2
nd
byte data
3
rd
byte data
4
th
byte data
Nth byte data
S
S+1
S+2
S+3
N bytes
b15
b 8
b 7
b 0
D
D+1
b15
b 8
b 7
b 0
2
nd
byte data
S+(N-1)
1
st
byte data
4
th
byte data
n-1th byte data
3
rd
byte data
Nth byte data
Upper byte will be disregarded.
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...