Delta DVP-ES2 User Manual
Page 294
D V P - E S 2 / E X 2 / S S 2 / S A2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g
3 - 1 7 8
Points to note:
1. Operand
n sets the number of total digits for the converted floating value. Max 8 digits are
applicable and the value over n digit will be omitted. For example, n = K6, data string
“123.45678” will be converted to “123.456”.
2. When there are characters other than numbers 0~9 or the decimal point in the source data
string, the character before the decimal point will be regarded as 0, and the value after the
decimal point will be regarded as the ETX.
3. If the source data string contains no decimal point, the converted value will be displayed
by a n-digit floating point value automatically.
The conversion will be performed in the following rule:
‘1’
‘2’
‘3’
Hi-byte Lo-byte
‘.’
S+0
S+1
S+2
S+3
‘4’
‘5’
‘6’
0x00
S+4
S+5
S+6
S+7
123.456
32-bit Floating value
D+0
D+1
‘1’
‘2’
‘3’
Hi-byte Lo-byte
‘.’
S+0
S+1
S+2
S+3
‘4’
‘5’
‘6’
0x00
S+4
S+5
S+6
S+7
123.456
32-bit Floating value
D+0
D+1
K19: Convert floating point value to data string
Explanations:
The system converts the floating point value in the source device S to data string with
specified length n (decimal point is not included).
Points to note:
1. Operand
n sets the number of total digits for the floating point value to be converted. Max
8 digits are applicable and the value over n digit will be omitted. For example, n = K6,
floating value F123.45678 will be converted to data string “123.456”.
2. When the digits of source value are more than the specified n digits, only the n digits from
the left will be converted. For example, source value F123456.78 with n=K4 will be
converted as data string "1234”.
3. If the source value is a decimal value without integers, e.g. 0.1234, the converted data
string will be “.1234” where the first digit is the decimal point.