Chapter 6 Instruction Details
XBC E-Type Main Unit
6-104
Ver. 1
6.20.3 BIN, BINP, DBIN, DBINP
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)
BIN(P)
DBIN(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
Operand
Description
Data Type
S
Area Number or BCD Data BCD Data is saved in
WORD/DWORD
D
Area data converted to BIN is saved in
WORD/DWORD
[Flag Set]
Flag
Description
Device Number
Error
As for BIN(P), S’s data is other than BCD format (0~9999)
As for DBIN(P), S+1,S’s data is other than BCD format (0~99999999)
F110
1) BIN (Binary)
(1) Converts specified S device’s BCD data (0~9999) to BIN data and it is saved in D.
Instruction
Data Size
BCD format
BIN format
BCP(P)
16-bit
0~9999
0~h270F
DBCD(P)
32-bit
0~99999999
0~h05F5E0FF
BIN, DBIN
means BIN/DBIN
S
D
BINP, DBINP
S
D
S: BCD 9999
1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1
2
3
2
1
2
2
2
3
2
0
2
1
2
2
2
3
2
0
2
1
2
2
2
0
2
1
2
2
2
3
2
0
Convert to BIN
0 0 1 0 0 1 1 1 0 0 0 0 0 1 1
2
15
2
5
2
6
2
7
2
8
2
9
2
10
2
11
2
12
2
13
2
14
2
0
2
1
2
2
2
3
2
4
D: 0x270F
1
X
10
3
X
10
2
X
10
1
X
10
0
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...