Crimson 3 - combine 2 x words as floating point

gavtech

Member
Join Date
Dec 2004
Location
Newcastle NSW Australia
Posts
4
Hi all,

Crimson 3 doesn’t have the ability to log Floating Point maths with the IDEC driver it is shipped with.

I wish to import a 32 bit Floating Point register for logging (D0900 which consists of 2 x 16 bit registers D0900/D0901)

How can I recombine tag1 (D0900 word) & tag2 (D0901 word) to create the internal tag3 (Floating Point)

Thanks for any assistance ,

Gavin
 
That is an interesting question. I don't think that just adding the two together will do it. I was thinking maybe use two tags mapped to D0900 and D0901. Then do some Shifting to the Left on D0900 16 bits, and then AND it with the D0901 for the result. But I don't know where the decimal point will end up in this idea.

Thanks,
Joe_WaZoo
 
Maybe take the high order word, assume D0901 and bit shift 16 left, then add the low order word? Something like:

FloatTag := (HighOrdTag << 16) + LowOrdTag
 
Last edited:
Thanks for the input blokes!

I have read that Crimson does exactly what I want to do, just until I have seen it work I am stumped.

I was hoping that it was as easy as creating an internal tag of 32 bits, using data sourced from tag 1 with a length spanning 32 bits (or both contigous registers). Once I have this the scaling data section or the float command could be used.

Cheers,

Gavin
 

Similar Topics

Hey guys, hoping someone here could give me a little advice. I'm working with a CR1000-04000 in Crimson 3.1 and I was interested in adding the...
Replies
4
Views
122
Hi, I'm having an issue in crimson 3.0 when I create a programme using a case statement referencing a fault word that each bit needs to change the...
Replies
5
Views
207
How do you install update on Red Lion Crimson ver 3.1. Do I just need to run the exe file on the host server?
Replies
1
Views
107
Has anyone found a way to convert/replace/update the firmware on old Parker TS80xx series HMIs (i.e. TS8010, TS8006, etc) to accept Crimson...
Replies
0
Views
91
Has anyone setup communications with Red Lion 3.0 MODBUS to Baker Hughes Centrilift GCS VFD? Thanks
Replies
0
Views
89
Back
Top Bottom