Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 651

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

Advertisement

■Operation of when SM705 (Number of conversion digits selection) is on
Decimal ASCII data is stored right-justified in (d).
The following figures show an example of a value of (s) and a value stored in (d).
Value of (s)
Data of (d) to (d)+2
• 0
• The upper byte of (d) is filled with 00H.
• Positive value (1
• (d)+1 and later remain unchanged.
digit in numeric
b15
part)
(d)
(d)+1
(d)+2
(d)+3
(d)+4
(d)+5
• Positive value (9
• The upper byte of (d)+4 is filled with 00H.
digits in numeric
• (d)+5 and later remain unchanged.
part)
b15
• Negative value (8
(d)
digits in numeric
(d)+1
part)
(d)+2
(d)+3
(d)+4
(d)+5
• Negative value (10
• 00H is stored in the upper byte (1) of (d)+5 when
digits in numeric
SM701 (Number of output characters selection) is
part)
off, and 20H (space) is stored when it is on.
b15
(d)
(d)+1
(d)+2
(d)+3
(d)+4
(d)+5
(1)
• When the number of operation digits is less than the maximum number of digits (a sign + 10 digits), 00H is stored in the end
of the string regardless of the status (on/off) of SM701 (Number of output characters selection). If the end of the string is the
lower byte, 00H is also stored in the upper byte.
• When the number of operation digits is equal to the maximum number of digits (a sign + 10 digits), 00H is stored in the
upper byte of (d)+5 if SM701 is off. 20H (space) is stored in the upper byte of (d)+5 if SM701 is on.
Operation error
There is no operation error.
∙∙∙
b8
b7
∙∙∙
0
00H
ASCII 10
∙∙∙
b8
b7
∙∙∙
7
8
ASCII 10
ASCII 10
/ 2DH (-)
5
6
ASCII 10
ASCII 10
3
4
ASCII 10
ASCII 10
1
2
ASCII 10
ASCII 10
0
00H
ASCII 10
∙∙∙
b8
b7
∙∙∙
9
ASCII 10
2DH (-)
7
8
ASCII 10
ASCII 10
5
6
ASCII 10
ASCII 10
3
4
ASCII 10
ASCII 10
1
2
ASCII 10
ASCII 10
0
00H / 20H
ASCII 10
Value of (s)
Data of (d) to (d)+2
• Positive value (2
• (d)+1 is filled with 00H.
digits in numeric
• (d)+2 and later remain unchanged.
part)
b0
• Negative value (1
(d)
digit in numeric
(d)+1
part)
(d)+2
(d)+3
(d)+4
(d)+5
• Positive value (10
• (d)+5 is filled with 00H.
digits in numeric
part)
(d)
b0
• Negative value (9
(d)+1
digits in numeric
(d)+2
part)
(d)+3
(d)+4
(d)+5
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
b0
0
ASCII 10
: Ones place of ASCII code
b15
∙∙∙
b8
b7
∙∙∙
0
1
ASCII 10
ASCII 10
/ 2DH (-)
00H
b15
∙∙∙
b8
b7
∙∙∙
8
9
ASCII 10
ASCII 10
/ 2DH (-)
6
ASCII 10
ASCII 10
4
ASCII 10
ASCII 10
2
ASCII 10
ASCII 10
0
ASCII 10
ASCII 10
00H
7 APPLICATION INSTRUCTIONS
7.8 String Processing Instructions
b0
b0
7
5
3
1
7
649

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents