Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 674

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 for the number of digits (up to 8 digits) without the leftmost "0" in the effective digits is stored 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)+3
• 0H to 9H
(d)
(d)+1
(d)+2
(d)+3
• 1000000H to
9999999H
(d)
(d)+1
(d)+2
(d)+3
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
• When the number of digits is less than the maximum number of digits (8 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 digits is equal to the maximum number of digits (8 digits), 00H is stored in (d)+4 when SM701 (Number
of output characters selection) is off. (d)+4 does not change if SM701 (Number of output characters selection) is on.
7 APPLICATION INSTRUCTIONS
672
7.8 String Processing Instructions
• The upper byte of (d) is filled with 00H.
• (d)+1 and later remain unchanged.
b15
∙∙∙
b8
b7
00H
• The upper byte of (d)+3 is filled with 00H.
b15
∙∙∙
b8
b7
5
ASCII 10
3
ASCII 10
1
ASCII 10
00H
Value of (s)
• 10H to 99H
∙∙∙
b0
0
ASCII 10
• 10000000H to
99999999H
∙∙∙
b0
6
ASCII 10
4
ASCII 10
2
ASCII 10
0
ASCII 10
Data of (d) to (d)+3
• (d)+1 is filled with 00H.
• (d)+2 and later remain unchanged.
b15
∙∙∙
b8
b7
0
(d)
ASCII 10
(d)+1
00H
(d)+2
(d)+3
• (1): (d)+4 is filled with 00H when SM701 (Number of
output characters selection) is off. (d)+4 does not
change if SM701 (Number of output characters
selection) is on.
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)
∙∙∙
b0
1
ASCII 10
∙∙∙
b0
7
ASCII 10
5
ASCII 10
3
ASCII 10
1
ASCII 10

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents