Mitsubishi Electronics C64 Home Safety Product User Manual


 
7. Basic Commands
INV
- 116 -
{ INV ... Operation results inversion
Usable device
Bit device Word device
Con-
stant
Pointer
X Y M L F BSB T SM VTCDRWSWZSDKH P
Digit
desig-
nation
Index
No. of
steps
4
INV
Function
Inverts the operation result immediately prior to the INV command.
Operation result immediately
prior to the INV command.
Operation result following the
execution of the INV command.
OFF ON
ON OFF
Program example
(1) Program to invert the X0 ON/OFF data, and to output to Y10.
[Timing Chart]
X0
Y10
ON
OFF
ON
OFF
Points
(1) Because the INV command operates with the operation results immediately prior to the INV
command, the AND instruction should be used at the same position.
The INV command cannot be used at the LD or OR position.
Coding
No. of
steps
Com-
mand
Device
10 LD X0
11 INV
15 OUT Y10
X0
10
Y10
16