AH500 Programming Manual If th 23.45, the c s as follows. e data in S ~ S +3 is -1 alculation i b15 b0 b7 b8 7 2 D1 S+1 S - 4 123 5 D1 +1 D2 S+2 S+3 2 or 1 sign cha cter nd e fi t va wh h is ot 0 n th string, 16 0 or 16#30 is igno en t - 1 2 3 4 5 . If there is 16# 0 6#30 between the ra a th rs lue ic n i e #2 red wh he string is converted into the binary number. 8 Number of characters - 123.45 2 Number of decimal places Ignored -12345 Binary number Number of characters 0.0012 7 4 Number of decimal places Ignored Sign 12 Binary number If 16#2E, which represents the decimal poi in S should be within the range between -32768 and 32767.
For example, if the string is “1235.3”, users have to check whether “12353” is within the range. 3. D$VAL: The operand S occupies seven word devices at most. of characters contained in the string in S should be within the range between 2 nt, is ignored, the string The number and 13. If there is a decimal point in the string in S , 16#2E should be stored between the first character after the sign character and the last character. (D1+1,D1) (D1+3,D1+2) b15 b0 b7 b8 S S+1 S+2 S+3 S+4 S+5 S+6 S i g n F i r s t A S C I I c o d e ..................................................
T w e l f t h A S C I I c o d e (D2+1,D2) 6-469 16#31(1) 16#2D(-) 16#33( 3) 16#32( 2) 1 6#34(4) 16#2E(.) 16#00 16#35(5) Number o f ch aracters Number of de Number of de cimal places First ASCII code Sign Third ASCII code Second A SCII code Fifth ASCII code Fourth ASCII code Seventh AS CII code Sixth ASCII code Ninth ASCII code Eighth AS CII code Elevnth ASCII code Tenth A SCII code 16#00 Twelfth ASCII code Binary num ber