Industrial Automation
Industrial Automation | Europe

myKnowledge

Main > Product Type > Automation Systems > PLCs
Minimize Text   Default    Enlarge Text
 

Print
E-mail

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


 




Comments (View All Comments / Add Comment)

Related Articles
No related articles found.
Created 2008-10-31
Modified 2016-05-13
Views 1977

 

You are not logged in.