Mitsubishi MELSEC Q Series Programming Manual page 570

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

HABIN(P),DHABIN(P)
Program Example
(1) The following program converts the hexadecimal, 4-digit ASCII data set at D20 and D21 to
BIN data, and stores the result at D0.
[Ladder Mode]
[Operation]
b15
D20
D21
(2) The following program converts the hexadecimal, 8-digit ASCII data set at D20 to D23 to
BIN values, and stores the result at D10 and D11.
[Ladder Mode]
[Operation]
b15
D20
D21
D22
D23
7-196
b8b7
b0
36
(6)
41
(A)
H
H
46
(F)
33
(3)
H
H
A63F
b8b7
46
(F)
34
(4)
H
H
32
(2)
44
(D)
H
H
37
(7)
38
(8)
H
H
30
(0)
35
(5)
H
H
4FD28750
[List Mode]
Step
Instruction
Regarded as A63F
H
BIN value
(-22977 in decimal
value)
[List Mode]
Step
Instruction
b0
1 3 3 9 1 9
Regarded as 4FD28750
H
(1339197264 in decimal
value)
Device
D0
22977
Device
D11
D10
7 2 6 4
BIN value

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents