Mitsubishi Electric MELSEC-Q/L Programming Manual page 552

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Program example
• The following program outputs the length of the character string from D0 to Y40 to Y4F as BCD 4-digit values.
[Ladder Mode]
[List Mode]
Step
Instruction
[Operation]
b15
D0
49
(I)
H
D1
53
(S)
H
D2
42
(B)
H
D3
53
(S)
H
D4
49
(I)
H
D5
41
(A)
H
D6
42
(C)
H
7 APPLICATION INSTRUCTIONS
550
7.11 Character String Processing Instructions
Device
b8b7
b0
4D
(M)
H
54
(T)
H
55
(U)
H
"MITSUBISHI"
49
(I)
H
(Characters "ABC"
48
(H)
H
that follow 00
00
H
43
(B)
H
Outputs the length of character
string to a display device.
D10
10
are ignored)
H
Y4F
Y40
BCD conversion
0 0 1 0
BCD
BCD value

Advertisement

Table of Contents
loading

Table of Contents