7-194
DABIN(P),DDABIN(P)
Program Example
(1) The following program converts the decimal, 5-digit ASCII data and sign set at D20 through
D22 to BIN values, and stores the result at D0.
[Ladder Mode] [List Mode]
[Operation]
(2) The following program converts the decimal, 10-digit ASCII data and sign set at D20 through
D25 to BIN values and stores the result at D10 and D11.
[Ladder Mode] [List Mode]
[Operation]
Step Instruction Device
D21
2D
H
( )20
H
(space)
20
H
(space)32
H
(2)
b15 b8b7 b0
D20
D0
BIN value
276
37
H
(7)36
H
(6)D22
- 276
(Regarded as -00276)
Step Instruction Device
D21
D22
D23
20
H
(space)20
H
(space)
20
H
(space)20
H
(space)
b15 b8
b7
b0
33
H
(3)39
H
(9)
D20
36
H
(6)38
H
(8)
33
H
(3)37
H
(7)
30
H
(0)
D24
D25
D11
BIN value
D10
(Regarded as +0003968370)
396 8370
3968370