325
When to execute the 32-bit instruction, the results will as follows:
If the operation has one of the following situation, the PLC will regard that as an operational error.
1. Length of the converted string for the 16-bit instruction is not = 2~8; 32-bit instruction is not = 2~13.
2. Number of digits after the decimal point at the string for the 16-bit instruction is not = 0~5; 32-bit instruction is
not = 0~10.
3. The beginning (lowest byte) of the source string is not the ASCII code 20H (positive) or 2DH (negative).
4. The source string contains a code which is improper.
5. The result of the converted BIN number for the 16-bit instruction is over the available range -32,768~32,767;
32-bit instruction is over -2,147,483,648~2,147,483,647.
DVAL D0 D10 D20
X0
D2D 1
S
– 1234567
D10
D11
11
8
( D21, D20)
1
2
3
4
Negative
5
7
D2
D1
–
0 0
6
D10
D11
11
3
1
2
3
4
Positive
(20H)
Ignore the space
Value of the pure number part is 123456
Length of the source string
Number of digits after the decimal
point at the string
5
6
123456
( D21, D20)
D2
D1
S
string
S
S
S
string
Value of the pure number part is 1234567
Ignore
Number of digits after the decimal
point at the string
Length of the source string