05.05.2014 Views

csmstr - Omega Engineering

csmstr - Omega Engineering

csmstr - Omega Engineering

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LOG FILE STORAGE<br />

CRIMSON USER MANUAL - MODULAR CONTROLLER<br />

• The History Buffer property is used to indicate how much RAM should be<br />

allocated for the history buffer for this data logger. The history buffer is used to<br />

support the historical trending user interface primitive, and allows the user to<br />

scroll backwards to view older data than would otherwise be available. No more<br />

than a total of 256K should be allocated to all data logs. This property is ignored<br />

when the Master is configured to display a monochrome virtual HMI.<br />

• The Contents property is used to indicate which tag should be logged. The first<br />

list shows the selected tags, while the second shows those that are available<br />

within the database. Tags can be added to the log by double-clicking them in the<br />

right-hand list; they can be removed by double-clicking them in the left-hand<br />

list, or by pressing the Del key while the tag is selected. The Up and Down<br />

buttons can be used to move tags within the list. One day, someone may even get<br />

around to implementing drag-and-drop to allow easier manipulation of this list!<br />

LOG FILE STORAGE<br />

As mentioned above, a data log stores its data in a series of files on the Master’s<br />

CompactFlash card. These files are placed in a subdirectory named after the data log, with<br />

this directory being stored under a root directory entry called LOGS.<br />

FILENAME FOR CONTINUOUS DATA LOGGING<br />

The files are named after the time and date at which the log is scheduled to begin. If each file<br />

contains an hour or more of information, the files will be named YYMMDDhh.CSV, where YY<br />

represents the year of the file, MM represents the month, DD represents the date, and hh<br />

represents the hour. If each file contains less than one hour of information, the files will<br />

instead be named MMDDhhmm.CSV, with the initial six characters as described above, and the<br />

trailing mm representing the minute at which the log began. These rules ensure that each log<br />

file has a unique name.<br />

The length of each file depends on the Update Rate and Each File Holds properties. For<br />

example, with an update rate of 5 seconds and a number of samples of 360, each file will hold<br />

(5 x 360) / 60 = 30 minutes of data, therefore following the MMDDhhmm.CSV filename<br />

format. A new file will therefore be created every 30 minutes.<br />

FILENAME FOR TRIGGERED SNAPSHOT DATA LOGGING<br />

Since triggered data logging does not follow an update rate, you might think a file is created<br />

every time the number of samples specified is reached. However, this is not the case, the<br />

same rules apply for triggered data logging filenames as for continuous data logging. This<br />

means the Update Rate still has an influence on file creation.<br />

As soon as a rising edge is detected by the log trigger, a set of data is recorded and a new file<br />

is created if none exists. Every time the log is triggered, a new data set will be added to the<br />

file until it reaches the maximum time specified by the Update Rate x Number of samples.<br />

For example, with an update rate of 60 seconds and a number of samples of 1440, a new file<br />

will be created every (1440 x 60) / 3600 = 24 hours. The number of samples per file will<br />

PAGE 240<br />

http://www.redlion.net/controller

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!