EasyManua.ls Logo

Mitsubishi MELSEC Q Series - Page 583

Mitsubishi MELSEC Q Series
1296 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7-209
STR(P),DSTR(P)
1
2
3
4
6
6
7
8
7.11 Character string processing instructions
7.11.9 Conversion from BIN 16-bit or 32-bit to character string (STR(P),DSTR(P))
Program Example
(1) The following program converts the BIN 16-bit data stored at D10 when X0 is turned ON in
accordance with the digit designation of D0 and D1, and stores the result from D20 to D23.
[Ladder Mode]
[List Mode]
[Operation]
Sets the data.
Sets the total number of digits.
Sets the number of digits in decimal fraction.
Step Instruction Device
D21
D22
D23
20
H
(space)31
H
(1)
32
H
(2)36
H
(6)
b15 b8b7 b0
37
H
(7)
(2)
2E
H
(.)
D20
00
H
32
H
12672D10
7
1
D0
D1
1267.2

Table of Contents

Other manuals for Mitsubishi MELSEC Q Series

Related product manuals