Delta AS Series Programming Manual page 690

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

When m=7:
If n=4, the 8-bit ASCII data is converted into the hex data (low 4-bits, high 4-bits), the conversion is as the
following figure shows.
When m=18:
Convert the string value in source device S (Lo-byte) into a floating-point value (operand n; decimal point
excluded) and store this value in device D.
Note:
1.
The setting value in operand n should be less than 8. If the value you set is exceeding the maximum
value 8, it will be treated as the maximumum value 8. For example if n = k6, when you convert the string
123.45678 into a floating-point value, the result is 123.456.
2.
If the source value includes not just numeral characters, the non-numeral characters will be treated as 0
when it is shown before the decimal point and it will be treated as the ending character when it is shown
after the decimal point. For example if n = k6, when you convert the string BC12.4K59 into a floating-
point value, the result is 0012.4.
3.
If there is no decimal point in the string, the string is converted directly into a floating-point value. See
the illustration below for reference.
S+0
S+0
S+1
S+1
S+2
S+2
S+3
S+3
S+4
S+4
S+5
S+5
S+6
S+6
S+7
S+7
Hi-byte Lo-byte
Hi-byte Lo-byte
Hi-byte Lo-byte
Hi-byte Lo-byte
'1'
'1'
'2'
'2'
'3'
'3'
'.'
'.'
'4'
'4'
'5'
'5'
'6'
'6'
0x00
0x00
Ch ap te r 6 Ap pl ie d Instruc ti ons
Hi-byte Lo-byte
Hi-byte Lo-byte
 
 
 
 
32-bit Floating value
32-bit Floating value
D+0
D+0
123.456
123.456
D+1
D+1
6_
6 - 4 11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents