Chapter 7 Second Development Platform VP3000
330
Example 2
1. When S is used as a word device, the valid range is 0 < n 4. Error occurs when n = 0 or
n > 4.
2. When n = 4, the maximum points to encode is 2
4
= 16 points.
3. When X0 = OFFON, this instruction encodes the content in 2
3
bits (b0–b7) of D10 and
stores in the lower 3-bit (b2–b0) of D0. The unused bits in D20 (b15–b3) become 0. (b8–
b15 in D10 are invalid data)
4. After the execution is completed, X0 becomes OFF, and the data in D remains
unchanged.
ENCOP D10 K3D20
X0