Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 673

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

■Operation of when SM705 (Number of conversion digits selection) is off
Decimal ASCII data is stored in a fixed number of digits (8 digits) in (d) to (d)+3.
(s)+1
b31
∙∙∙
b28
b27
∙∙∙
b24
b23
∙∙∙
b20
b19
∙∙∙
b16
b15
7
6
5
4
×10
×10
×10
×10
×10
7
ASCII 10
: Ten-millions place of ASCII code
6
ASCII 10
: Millions place of ASCII code
1
ASCII 10
: Tens place of ASCII code
0
ASCII 10
: Ones place of ASCII code
(1): 00H is stored in (d)+4 when SM701 (Number of output characters selection) is off. When it is on, the value in (d)+3 remains unchanged.
• 20H (space) is stored for the leading "0"s at the left of the effective number of digits of the operation result stored in the
device specified by (d). (Zero-suppression) For "00012098", "000" becomes 20H (space) and "12098" is the effective
number of digits.
Ex.
When 01234056 is specified in (s)
b31
∙∙∙
b28
b27
∙∙∙
b24
b23
∙∙∙
b20
b19
∙∙∙
b16
b15
0
1
2
3
(s)+1
(s)
∙∙∙
b12
b11
∙∙∙
b8
b7
∙∙∙
b4
b3
∙∙∙
b0
3
2
1
0
×10
×10
×10
∙∙∙
b12
b11
∙∙∙
b8
b7
∙∙∙
b4
b3
∙∙∙
b0
4
0
5
6
(s)
b15
∙∙∙
b8
b7
6
(d)
ASCII 10
4
(d)+1
ASCII 10
2
(d)+2
ASCII 10
0
(d)+3
ASCII 10
(d)+4
00H
(1)
b15
∙∙∙
b8
(d)
31H (1)
(d)+1
33H (3)
(d)+2
30H (0)
(d)+3
36H (6)
(d)+4
7 APPLICATION INSTRUCTIONS
7.8 String Processing Instructions
∙∙∙
b0
7
ASCII 10
5
ASCII 10
3
ASCII 10
1
ASCII 10
b7
∙∙∙
b0
20H(SP)
32H (2)
34H (4)
35H (5)
00H
671
7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents