EasyManuals Logo
Home>Mitsubishi>Controller>MELSEC-Q/L

Mitsubishi MELSEC-Q/L User Manual

Mitsubishi MELSEC-Q/L
850 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
Page #453 background imageLoading...
Page #453 background image
451
BINHA, BINHAP, DBINHA, DBINHAP
1
2
3
4
4
6
7
8
7.11 Character string processing instructions
7.11.2 BINHA, BINHAP, DBINHA, DBINHAP
Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Program Example
(1) The following program uses the PR instruction to output the hexadecimal value of the 16-bit BIN data at W0 in ASCII
code to Y40 to Y48.
[Ladder Mode] [List 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
H
is encountered.
(2) The following program uses the PR instruction to output the hexadecimal value of the 32-bit BIN data at W10 and W11 to
Y40 to Y48.
[Ladder Mode] [List 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
H
is encountered.
Error
code
Error details
Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4101
The range of the device specified in exceeds the range of the
corresponding device.
–– –– –– ––
D
Step Instruction Device
D1
D2
39
H
(9)43
H
(C)
30
H
(0)36
H
(6)
b15 b8
b7
b0
00
H
D0
W0
BIN value
9C06
H
PR
Y40 to Y48
Outputs "9C06"
Step Instruction Device
D1
D2
D3
37
H
(7)42
H
(B)
33
H
(3)43
H
(C)
b15 b8b7 b0
35
H
(5)38
H
(8)
D0
31
H
(1)46
H
(F)
00
H
D4
7B3C 58
1
F
H
W11
W10
PR
Y40 to Y48
Outputs "7B3C581F"

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC-Q/L and is the answer not in the manual?

Mitsubishi MELSEC-Q/L Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC-Q/L
CategoryController
LanguageEnglish

Related product manuals