Bit Set in GX Works2

Raj_plctk

Member
Join Date
Jun 2015
Location
Bangalore
Posts
2
Hi,
Is there any instruction to set a particular bit of an register without altering already set bits of the same register

Regards

Rajesh
 
Hi,
Thanks for reply, the below example is hard coded. What I want is the particular bit which needs to be set is through program which is changing based on condition.

Regards

Rajesh
 
Hi,
Thanks for reply, the below example is hard coded. What I want is the particular bit which needs to be set is through program which is changing based on condition.

Regards

Rajesh

I don't think so, I'd suggest you to use rotate right or left instructions to get bit you want to certain place, set it like other guy said it can be done with fixed set bit address.
Then you just re-rotate back into place and you have set the right bit and returned it to right position.

YOu need extra register which will tell rotate instruction how many places to rotate.
 

Similar Topics

What is the best way to set a bit over an ethernet/IP network on an Allen-Bradley ControlLogix Series PLC from a Windows PC. We have a program...
Replies
7
Views
2,094
Hi all, Another odd question for you guys, Looking to try and set multiple bits to a single word register. Some context, I am using a Delta...
Replies
2
Views
1,622
Merry Christmas to everyone!! Working on a prototype system using a Click PLC and a Red Lion G306. I am trying to set a bit in the PLC when I am...
Replies
7
Views
2,062
I have an integer coming from an IO Link device into my PLC. The first 2 bits of the integer are digital status bits of 2 alarms in the device...
Replies
4
Views
1,486
Hi all, On a rare occasion I am programming a PV1000, in FV Studio Machine Edition 7. I want to SET a bit with one button and reset it with the...
Replies
5
Views
3,434
Back
Top Bottom