Red Lion bit manipulation question...

Ok Red Lion guru's.......

I have to make sure I can grab data in 3 separate 16-bit tags and assemble only the USABLE data in each one of these into a SINGLE 16-bit word variable that is a composite of the 3 original tags.

Do I use a Gateway Block to "map" the individual variable bits to the bit locations I want them to occupy? How does one do this?

Any suggestions experts?

Brian
 
If I understand what you're wanting to do correctly I'd use Complex code within a tag to and/or/mask/multiply/add to extract the data and put it in a single destination.

Good luck,

Yosi
 
Thank you sir.

The tech support said the same thing. They said create a holding variable - and concatenate the other 3 variables into that variable by bit shifting them to the correct positions and then send this new variable to the register it needs to be in to send the data

Brian
 

Similar Topics

I'm working out an addition to an existing HMI (Using Eurotherm's version of Crimson 3.1(?), GUIcon 2.0). I need to think outside the box a little...
2
Replies
780
Views
Happy Friday, I am trying to log scan errors related to Modbus Comms for a G306. I am able to use the system function GetDeviceStatus(x) to...
4
Replies
3,395
Views
I'm getting a error about mapping a bit to a numeric tag and it should be using a flag tag but I am. They even have the little flag icons. ???
13
Replies
5,569
Views
I've got a project where I need to send a 64 bit integer that is in 8 consecutive modbus registers to another device as a string. I see the...
16
Replies
10,136
Views
Hello all, I wonder if someone might have some insight on how to convert a 16 bit Integer value into an 8 bit array in Crimson 3. Example...
5
Replies
4,586
Views
Top