Mitsubishi Electric M800VW Series Programming Manual page 352

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.10 Character String Processing Instructions
 Operation errors
 In the following cases, an arithmetic error occurs, the error flag (SM0) turns ON, and an error code is stored at SD0.
- The NULL code "00H" is not set within the relevant device range starting from the device number designated by (S).
(Error code: 82)
 Program example
 The following program outputs the length of the character string from D0 to D30 as a BCD 4-digit value.
SM400
0
7
b15
49H (I)
D0
D1
53H (S)
42H (B)
D2
D3
53H (S)
D4
49H (I)
61H (a)
D5
63H (c)
D6
[Ladder mode]
LENP D0 D10
BCD D10 D30
END
[Operation]
b8b7
b0
4DH (M)
54H (T)
"MITSUBISHI" (Characters
"ABC" that follow 00H are
55H (U)
ignored)
49H (I)
48H (H)
00H
62H (b)
Steps
Inst.
0
LD
1
LENP
4
BCD
7
END
D10
10
331
[List mode]
Device
SM400
D0
D10
D10
D30
BCD conver-
D30
sion
0
0
1
0
BCD
BCD value
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents