AH500 Programming Manual b15 b0 b7 b8 D+1 D S b15 b12 b11 b8 b7 b4 b3 b0 b15 b12 b11 b8 b7 b4 b3 b0 S+1 Ten millions place Millions place Hundred thousands place Ten thousands place Thousands place Hundreds place Tens place Units place S+2 S+3 If the ASCII code in S ~ S +3 is 87654321, the conversion result is as follows. b15 b0 b7 b8 S b15 b12 b11 b8 b7 b4 b3 b0 b15 b12 b11 b8 b7 b4 b3 b0 D+1 D S+1 4 S+2 S+3 4. If the value in S is 16#20 or 16#00, the value is processed as 16#30. 5. If S used in the 16-bit instruction is a string, the number of characters contained in the string should be within the range between 1 and 4.
If S used in the 32-bit instruction is a string, the number of characters contained in the string should be within the range between 1 and 8. Example 1: Suppose the values in D20 and D21 are 16#3420 and 16#3439 respectively. When the PLC runs, the value in Y0 is 16#494. b15 b15 b0 b7 b8 D20 b3 b11 b12 D21 Y0 Example 2: Suppose the values in D20, D21, D22, and D23 are 16#3738, 16#3536, 16#3334, and 16#3132 respectively. When the PLC runs, the value in (D11, D10) is 16#87654321.
b15 b0 b7 b8 D20 b15 b12 b11 b8 b7 b4 b3 b0 b15 b12 b11 b8 b7 b4 b3 b0 D11 D10 D21 D22 5 D23 6-456 ASCII code in the millions place ASCII code in the ten millions place ASCII code in the ten thousands place ASCII code in the hundred thousands place ASCII code in the hundreds place ASCII code in the thousands place ASCII code in the units place ASCII code in the tens place 16#37(7) 16#38(8) 16#35(5) 16#36(6) 16#33(3) 16#34(4) 16#31(1) 16#32(2) 8 7 6 5 3 2 1 16#34(4) 16#20( ) 16#34(4) 16#39(9) 4 9 4 16#37(7) 16#38(8) 16#35(5) 16#36(6) 16#33(3) 16#34(4) 16#31(1) 16#32(2) 8 7 6 4 3 2 1