Help with writing data

chunt79

Member
Join Date
Oct 2014
Location
Ohio
Posts
8
Hello everyone. My question is about moving data into selective bits in Controllogix. I want to move a hex value into the last word(bits 16-31) of a mapped devicenet field. The first 16 bits (0-15) are being used to control the state of a UV lamp power supply and the last 16 bits (16-31) are being used to control the power level of the lamp. Any help or direction would be great. Thanks
 
You can use the Bit Distribute instruction to copy desired bits (the hex value) to bits 16-31 in the destination Word.
 
I usually use MUL or DIV by powers of 2 to move bits around, instead of Bit Distribute or Bit Shift instructions. Then I use Masked Move (MVM) to put the data into the target data element.

But that just proves there are multiple ways to do things, even within the same operating system !
 

Similar Topics

Hi friends, I m new to plc programming and i don't know how to write data block in boolean method. I m needed to write data block to...
Replies
0
Views
1,691
Hello, i am currently trying to create a plc programme from my Tia portal v16 for a package filling machine. But i am kinda new to the plc stuff...
Replies
48
Views
17,368
i am new to these things. I have no intention of using this in a commercial way whatsoever. I wanted to write a small plc programme for myself. We...
Replies
18
Views
7,910
Could somebody please point me in the right direction? I'm trying to incorporate a table into each motor's faceplate. It's a simple, two...
Replies
2
Views
3,205
Hi, I have very limited knowledge in PLC. I uploaded the updated version of the software from our supplier on Omron PLC CP1H. It was also UM...
Replies
8
Views
13,895
Back
Top Bottom