We have a CR23X that collects data from several thermocouples and from weather sensors. The CR23X has been programmed with a table for the thermocouples that runs every 0.25 seconds, and a second table for the weather sensors that runs every 10 seconds. Does EDLOG contain syntax that would allow me to combine the tables into 1 table? Can I make a single table that runs every 0.25 seconds, and do the weather sensor stuff only every 40th loop? (Because 0.25 sec x 40 = 10 secs).
Thanks. You're probably wondering why I would bother doing this. We're using a third party software to pull data out of the CR23X, and it doesn't like the 2 tables, it wants just 1.
* Last updated by: jbk92037 on 3/3/2009 @ 11:58 AM *
From your message I'm not sure what you're trying to do and others may be in the same boat. Are you talking about Final Storage Area 1 & Final Storage Area 2 or Program Table 1 and Program Table 2?
If it's program table 1 & 2 try doing something like this:
1: If time is (P92)
1: 0000 Minutes (Seconds --) into a
2: 0000 Interval (same units as above)
3: 00 Command Code Option
Or use an incrementer and another If statement.
3: If (X<=>F) (P89)
1: 5 X Loc [ increment ]
2: 1 =
3: 40 F
4: 30 Then Do
4: Z=F x 10^n (P30)
1: 0 F
2: 00 n, Exponent of 10
3: 5 Z Loc [ increment ]
[[[ run your met instrument stuff here]]]
5: End (P95)
If it's a final storage area thing you could use some variety of this sort of thing:
2: Do (P86)
1: 10 Set Output Flag High (Flag 0)
3: Set Active Storage Area (P80)
1: 1 Final Storage Area 1
2: 111 Array ID
[[ output your thermocouple data here]]
4: Do (P86)
1: 10 Set Output Flag High (Flag 0)
5: Set Active Storage Area (P80)
1: 1 Final Storage Area 1
2: 222 Array ID
[[ output your weather data here]]
I had the same issue when I took over the system I am using. I used the first method Bob proposed and it worked great.