Delta Electronics — 6.13.2 Explanation of Data Processing Instructions

Chapter 6 Applied Instructions Example 1 When X0.0 is ON, the instruction subtracts -1000 or 1000 from the binary-coded decimal value in X1, and stores the difference in D1. The following table shows the execution results. 6_ Example 2 When X0.0 is ON, the instruction subtracts -10000 or 10000 from the binary-coded decimal value in (X2, X1), and stores the difference in (D11, D10). 6-381 Minimum value Maximum Input value in of the value of the Function Output value in D1 D0 deadband deadband -1000 1000 -1200 D0 D1=D0-(-1000) -200 1200 D0>1000=>D1=D0-1000 200 500 -1000≦D0≦1000=>D0=0 0