Host Engineering Forum
General Category => Ethernet SDK => Topic started by: mbelyus on September 01, 2009, 01:24:28 PM
-
I have a CTRIO that I am moving the counter to V2200. When I try to read the value @V2200 I get some odd readings. I looks like I'm grabbing data in the middle of a write. I am using the counters on a D06 and they read from from CT174 & CT176, but the reading from the H0-CTRIO is odd. Do I need to check a bit to make sure that the transfer is complete?
Thanks,
Matt
-
if you haven't scaled the data from the CTRIO, the default is a 32-bit signed value - so the value from each counter channel will consume two consecutive V-locations.
if you've scaled the count in the CTRIO, then the value will reflect that scaled type, but still consume 2 consecutive v-locations.
does this help at all?
the values from the built-in counters in the DL06 are the same as the CTRINT module, so that's not the same format (16-bit BCD, i think) as the CTRIO.
-
Thanks. There's no scaling, but it was that I forgot to convert to BCD. I did that and it worked fine.
Thanks,
Matt