Delta AH500 — 6.21.2 Explanation of String Processing Instructions

Chapter 6 Applied Instructions b15 b0 b7 b8 D D +1 S High 16 bits Low 16 bits D +2 32-bit binary number D +3 D +4 If SM690 is OFF, 16#0000 is stored in the high 8 bits in D +5. If SM690 is ON, 16#20 is stored in the high 8 bits in D +5. Besides, if the value in S is a positive value, the sign character in D is 16#20. If the value in S is a negative value, the sign character in D is 16#2D. For example, if the value in S is -12345678, the conversion result is as follows. D +5 b15 b0 b7 b8 D S S +1 D +1 -1234 5678 +3 D D +2 D +4 +5 32-bit binary number D 5. Take the 32-bit binary number -12345678 in S for example.

The digit in the hundred millions place of the number and the digit in the billions place of the number are 0. When the instruction is executed, 16#20 is stored in the low 8 bits in D +1 and the high 8 bits in D . b15 b0 b7 b8 D D +1 S S +1 D +2 -1234 5678 +3 D D +4 32-bit binary number D +5 00123 45678 16#20 is stored. Becoming 16#20 Signifi cant digits Example 1: Suppose the value in L0 is 5126 and SM690 is OFF. When the PLC runs, the values in D0, D1, D2, and D3 are 16#2020, 16#3135, 16#3135, and 16#0000 respectively.

6-441 ASCII code in the billions place Sign (±) ASCII code in the ten millions place ASCII code in the hundred millions place ASCII code in the hundred thousands place ASCII code in the millions place ASCII code in the thousands place ASCII code in the ten thousands place ASCII code in the tens place ASCII code in the hundreds place Ending character (16#00 or 16#20) ASCII code in the units place 16#20( ) 16#2D(-) 16#31(1) 16#20( ) 16#33(3) 16#32(2) 16#35(5) 16#34(4) 16#37(7) 16#36(6) 16#00或16#20 16#38(8) 16#20( ) 16#2D(-) 16#31(1) 16#20( ) 16#33(3) 16#32(2) 16#35(5) 16#34(4) 16#37(7) 16#36(6) 16#00或16#20 16#38(8) 16#20( ) 16#2D(-) 16#31(1) 16#20( ) 16#33(3) 16#32(2) 16#35(5) 16#34(4) 16#37(7) 16#36(6) 16#00或16#20 16#38(8)