Delta AS Series Programming Manual page 638

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

Example 1
1.
When Y0.0 switches from OFF to ON, the DECO instruction decodes the values of the 3 bits in X0.0–X0.2 as the
values of the 8 bits in M100–M107.
2.
The instruction adds the values of the 3 bits in X0.0–X0.2 to get the value 3. The instruction sets the third bit in
M10–M1007, that is, the bit in M103 to 1.
3.
After the DECO instruction is executed and Y0.0 switches to OFF, the values of the eight bits in M100–M107 are
unchanged.
X0.2 X0.1
7
6
5
0
0
0
M107 M106 M105 M104 M103 M102 M101 M100
Example 2
1.
When X0.0 switches from OFF to ON, the DECO instruction decodes the values of b2–b0 in D10 as the values of
b7–b0 in D20, and sets the values of b15–b8 in D10 to 0.
2.
The instruction decodes the values of the lower three bits in D10 as the values of the lower eight bits in D20. The
instruction sets the values of the higher eight bits to 0.
3.
After the DECO instruction is executed and X0.0 switches to OFF, the data in D20 is unchanged.
0
1
1
4
2
1
3
4
2
1
3
0
1
0
0
Ch ap te r 6 Ap pl ie d Instruc ti ons
0
0
6_
6 - 3 5 9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents