Delta Electronics — 6.13.2 Explanation of Data Processing Instructions

Chapter 6 Applied Instructions The following table shows the execution results. Example 2 When X0.0 is ON, the instruction adds -10000 or 10000 to the binary-coded decimal value in (X2, X1), and stores the sum in (D11, D10). 6_ The following table shows the execution results. 6-385 Negative Positive Input value in Output value in D10 Function deviation deviation D0 -100 100 -10 D0 D10=(-10)+(-100) -110 0 D0=0=>D10=0 0 50 D0>0=>D10=50+100 150 Negative Positive Input value in (D1, Output value in (D11, Function deviation deviation D0) D10) -10000 10000 -10 (D1,D0) (D11,D10) =(-10)+(-10000) -10010 0 (D1,D0)=0 =>(D11,D10)=0 0 50 (D1,D0)>0 =>(D11,D10)=50+10000 10050