- Help Center
- Automation/Electrical
- Programmable Controllers
-
Pneumatics
- Air Cylinders
- Air Dryers
- Auto Switches
- Boosters
- Electric Actuators
- Fieldbus System/Serial Transmission System
- Fittings
- Modular F.R.L.
- Pressure Switches
- Regulators
- Rotary Actuators
- Solenoid Valve
- Temperature Control Equipment
- Vacuum Equipment
- Photoelectric Sensors
- Process Valves
- Valve Clamps and Accessories
- Pumps
- Additional Articles in Pneumatics
- Safety Valves
- Tubing
-
Hydraulics
-
Automation/Electrical
- Contact Sensors / Liquid Leakage Sensors
- Level Switches
- Basic Switches
- Limit Switches
- Push Buttons / Indicator Lamps
- Thumbwheel Switches
- Safety Limit Switches
- Temperature Controllers
- Counters
- Programmable Relays
- Programmable Controllers
- Safety Sensors
- Safety Door Switches
- Solid-state Relays
- Timers
- Inverters
- Power Supplies
- Axial Fans
- Wiring Systems
- Rotary Encoders
- Pressure Sensors
- Displacement Sensors/Measurement Sensors
- Ultrasonic Sensors
- Emergency Stop Switches
- Power Controllers
- Signal Converters
- Machine Automation Controllers
- RFID Systems
- Measuring / Motor Protective Relays
- Vision Sensors / Machine Vision Systems
- Photomicro Sensors
- Digital Panel Indicators
- Programmable Terminals
- Servomotors / Servo Drivers
- Proximity Sensors
- General Purpose Relays
- Fieldbus Communications
-
Safety
-
Website Help Center
What instruction can I use to reverse the status of specific bits?
Use the EXCLUSIVE OR instruction (XORW) to reverse the status of specific bits in a specific word.
EXCLUSIVE OR Instruction (XORW) Specifications
1. An EXCLUSIVE OR of the corresponding bits in input 1 and input 2 are taken and the results are output to the result word, R.
2. As can be seen in the truth table on the right, when the EXCLUSIVE OR is executed, the bits with different status in inputs S1 and S2 will be 1 in the result word, while the bits with the same status will be 0.
Program and Operation
By using this basic specification of the EXCLUSIVE OR instruction (XORW), specific bits in a specific word can be inverted.
1. Ladder Programming
Figure 1
2. Operation
Figure 2