Mitsubishi — 5.6 Descriptions of the Applied Instructions

Chapter 5 Applied Instructions  When S is a word device, n is in the range of 1 to 4. If n is 0, or larger than 4, an error will occur.  If n is 4, the maximum number of bits which can be decoded is 2 4 =16.  When X0.0 is turned from OFF to ON, the instruction ENCOP encodes the 8 bits in D10 as the low 3 bits in D20, and b15~b3 in D20 become 0.  After the instruction ENCOP is executed, X0.0 will be OFF, and the data in D will remain unchanged. Example 2 X0.0 b15 b0 D10 7 6 5 4 2 1 0 3 Bit 8~bit 18 in D10 are invalid data. b15 D20 b0 Bit 15~bit 3 in D20 become 0. 5-63 ENCOP D10 D20 K3 0 1 0 1 0 1 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1