
langless28 (Customer) asked a question.
I have an iolink pressure sensor and the process data is 2 bytes long. The first two bits are for process output status and the the remainder 14 bits are for the process value (numeric). These are mapped to "testin206 and testin207" (unsigned bytes) of data on my BRX. I think the correct term is bit offset, so how do I take the two bytes of data and copy them to a single data spot and offset it so it does not factor in the first two bits of testin206?
For what its worth, I guess i could map all the "testin" memory spots as words or double words (instead of the current byte). That way i would not have this data across two different memory spots, if that makes things easier.
Which is what my initial post did: "MATH N0 = Testin206:SW/4"
I was using a cast to get to a signed word, but my initial concern was endianness. Still not sure whether that is an issue, but the OP said what I suggested didn't work.