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
2DH ( )20H(space)
20H(space)32H (2)
b15 b8b7 b0
D20 D0
BIN value
276
37H
(7)36H (6)D22
- 276
(Regarded as -00276)
Step Instruction Device
D21
D22
D23
20H(space)20H(space)
20H(space)20H(space)
b15 b8b7 b0
33H (3)39H (9)
D20
36H (6)38H (8)
33H (3)37H (7)
30H (0)
D24
D25
D11
BIN value
D10
(Regarded as +0003968370)
3968370
3968370