Mitsubishi Electric M800VW Series Programming Manual page 358

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
- If the total digits of the integer part and the decimal fraction part is 7 digits or more, the 7th digit will be rounded off and
"30H" (0) will be stored from the 7th digit and after.
S2
0
S2+1
13
S2+2
6
S1+1
S1
-1.555555
- The value "00H" is automatically stored at the end of the converted character string.
 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 format designated by (S2) is not 0 or 1. (Error code: 34)
- The total number of digits designated by (S2+1) is outside the following ranges: (Error code: 34)
- When using decimal format
When the number of digits in decimal fraction is "0": Total number of digits ≥ 2
When the number of digits in decimal fraction is not "0": Total number of digits ≥ (Number of digits in decimal fraction
+ 3)
- When using exponential format
When the number of digits in decimal fraction is "0": Total number of digits ≥ 6
When the number of digits in decimal fraction is not "0": Total number of digits ≥ (Number of digits in decimal fraction
+ 7)
- The number of digits in decimal fraction designated by (S2+2) is outside the following ranges: (Error code: 34)
When using decimal format: Number of digits in decimal fraction ≤ (Total number of digits - 3)
When using exponential format: Number of digits in decimal fraction ≤ (Total number of digits - 7)
- A value that exceeds "24" digits was designated. (Error code: 34)
- The range of the device that stores the character string designated by (D) exceeds the relevant device range. (Error
code: 82)
- The range of the device designated by (S2) exceeds the relevant device range. (Error code: 82)
- The (S1) value is not within the following range. (Error code: 35)
-126
128
0, 2
≤ | S1 | < 2
- The designated device value is "-0", unnormalized number, nonnumeric, or ± ∞ . (Error code: 35)
Total number of digits
-
1
.
5
5
5
5 6
0 E +
0
0
The 7th digit is rounded.
337
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents