Binha, Binhap; Dbinha, Dbinhap; Conversion From Bin 16-Bit Data To Hexadecimal Ascii; Conversion From Bin 32-Bit Data To Hexadecimal Ascii - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

[Operation]
Conducts ASCII output of Y40 to Y48 by using the PR instruction when X0 goes ON.
Because SM701 is OFF, the PR instruction will output ASCII code until 00
b15
D0
20
W0
D1
5126
D2
BIN value
D3
(2) The following program uses the PR instruction to output the decimal value of the 32-bit BIN data at W10 and W11 in
ASCII code to Y40 to Y48.
[Ladder Mode]
[Operation]
Conducts ASCII output of Y40 to Y48 by using the PR instruction when X0 goes ON.
Because SM701 is OFF, the PR instruction will output ASCII code until 00
W11
W10
3 8 4 2 5 6 3
BIN value
7.11.2

BINHA, BINHAP

Conversion from BIN 16-bit data to hexadecimal ASCII

DBINHA, DBINHAP

Conversion from BIN 32-bit data to hexadecimal ASCII

7.11.2
BINHA, BINHAP, DBINHA, DBINHAP
BINHA, DBINHA
BINHAP, DBINHAP
: BIN data to be converted to ASCII (BIN 16/32 bits)
S
: Head number of the devices where the conversion result will be stored (character string)
D
Setting
Internal Devices
Data
Bit
S
––
D
b8 b7
(space)
20
(space)
H
H
31
(1)
35
(5)
H
H
36
(6)
32
(2)
H
H
00
H
[List Mode]
Step
b15
b8 b7
D0
20
(space)
2D
H
D1
20
(space)
20
(space)
H
H
D2
38
(8)
33
H
D3
32
(2)
34
H
D4
36
(6)
35
H
D5
00
33
H
Command
Command
R, ZR
Word
Bit
BINHA, BINHAP, DBINHA, DBINHAP
is encountered.
H
b0
PR
Y40 to Y48
is output.
Instruction
Device
is encountered.
H
b0
(
)
H
PR
(3)
H
-
3842563
(4)
H
is output.
(5)
H
(3)
H
High
Basic
performance
indicates an instruction symbol of BINHA/DBINHA.
J
\
U
\G
Word
––
Y40 to Y48
Process
LCPU
Redundant Universal
S
D
P
S
D
Constants
Zn
Other
K, H
––
––
1
2
3
4
4
6
7
8
449

Advertisement

Table of Contents
loading

Table of Contents