Chapter 6 Instruction and Flag List
XBC E-Type Main Unit
6-234
Ver. 1
6.34.2 BINHA, BINHAP, DBINHA, DBINHAP
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)
BINHA(P)
DBINHA(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
Data or address to convert to ASCII
WORD/DWORD
D
Address to save operation result in
BIN 32
[Flag Setting]
Flag
Description
Device Number
Error
To be set if specified area #D is exceeded
F110
1) BINHA (Binary to Hex ASCII)
(1) Converts each digit to ASCII from the upper in regular order when input binary 16-bit data is in
Hexadecimal.
(2) The value converted to ASCII will be saved in starting D by 2 digits per word in regular order.
(3) In BINHA, operation range is h0000 ~ hFFFF.
(4) For example, if 02A6H is specified in S, the result after will be saved as below;
h32 (2)
h30 (0)
h36 (6)
h41 (A)
S
b15
b 8
b 7
b 0
D
D+1
D+2
b15
b 8 b 7
b 0
02A6H
h00
(D)BINHA
means BINHA
P S
D
(D)BINHAP
S
D
4
th
-digit ASCII code
1
st
-digit
ASCII code
2
nd
digit ASCII code
S
b15
b 8
b 7
b 0
D
D+1
D+2
b15
b 8
b 7
b 0
16-bit Binary data
0
3
rd
-digit ASCII code
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...