Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 650

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 in (d) to (d)+5.
(s)+1
b31
∙∙∙
ASCII S: Sign data of ASCII code
9
ASCII 10
: Billions place of ASCII code
8
ASCII 10
: Hundred-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 the upper byte of (d)+5 only when SM701 (Number of output characters selection) is off, and 20H (space) is stored when it is on.
*1 When the value is 0 or positive, 20H (space) is stored. When the value is negative, 2DH (-) is stored.
*2 When the length of the numeric part is 9 digits or less, 20H (space) is stored in ASCII 10
*3 When the length of the numeric part is 8 digits or less, 20H (space) is stored in ASCII 10
*4 When the length of the numeric part is 1 digit, 20H (space) is stored in ASCII 10
Ex.
When -12345678 (signed) is specified in (s)
(s)+1
(s)
-
1 2 3 4
5 6 7 8
7 APPLICATION INSTRUCTIONS
648
7.8 String Processing Instructions
(s)
b16 b15
∙∙∙
b0
BIN 32bit
*1
*2
*3
*4
b15
∙∙∙
(d)
20H (SP)
(d)+1
31H (1)
(d)+2
33H (3)
(d)+3
35H (5)
(d)+4
37H (7)
(d)+5
00H, 20H
b15
∙∙∙
9
(d)
ASCII 10
7
(d)+1
ASCII 10
5
(d)+2
ASCII 10
3
(d)+3
ASCII 10
1
(d)+4
ASCII 10
(d)+5
00H / 20H
(1)
1
.
b8
b7
∙∙∙
b0
2DH (-)
20H (SP)
32H (2)
34H (4)
36H (6)
38H (8)
b8
b7
∙∙∙
b0
ASCII S
8
ASCII 10
6
ASCII 10
4
ASCII 10
2
ASCII 10
0
ASCII 10
9
.
8
.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents