EasyManua.ls Logo

ControlByWeb WEBRelay-10+ - Appendix D: Log Files; Data Log File (log.txt)

Default Icon
38 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Xytronix Research & Design, Inc. Page 27
WebRelay-10 Plus™ Users Manual
WebRelay-10 Plus™ logs information to two different log les; log.txt and syslog.txt. Both log les are text les
and are stored in non-volatile memory; this data will not be lost due to power failure. The log les are stored in
circular buffers which write from the beginning of the allocated memory space to the end, and then repeat from
the beginning (over-writing the original data). The non-volatile memory is divided into 4K byte sectors. Each time
data gets erased to make room for new data, a full sector (4K bytes) is erased at one time.
Data log le: log.txt
This log le is user-congurable under the Logging setup tab, and stores real-world data such as
temperatures and events such as relay state changes (see section 2.4.6 Logging Tab for more
information). It can be up to 3072K bytes long and is stored using a comma separated value formatting
scheme.
Digital Inputs, Relays, Analog Inputs, and Sensors will only be displayed if they are selected in the
Logging setup tab. The le is read by requesting the log.txt le from WebRelay-10 Plus™. For example,
using the default IP address the following command would be used to request the log le:
http://192.168.1.2/log.txt
File format:
MM/DD/YYYY HH:MM:SS, Input 1, Input 2, Relay 1, Relay 2, ..., Relay 10,
Sensor 1, Sensor 2 ... Sensor 8, Source: State
Date and time of event:
MM - Month (1-12)
DD – Day (1-31)
YYYY – Year (1970 - 2106)
HH – Hour in 24 hour time (0 -23)
MM – Minutes (0-59)
SS – Seconds (0-59)
Example:
Date Time,I1,I2,R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,S1,S2,S3,Source
11/15/2010 11:00:46,0,1,1,1,1,0,1,0,1,0,1,1,078.0,076.4,082.7,Input02:(on)
11/15/2010 11:00:48,0,0,1,1,1,0,1,0,1,0,1,1,078.0,076.4,082.7,Input02:(off)
11/15/2010 11:01:08,0,0,0,0,0,0,1,0,1,0,1,1,078.0,076.5,082.9,Relay03:(off)
11/15/2010 11:02:04,0,0,0,0,0,1,1,0,1,0,1,1,077.7,076.4,083.4,Relay04:(on)
The le can then be saved using the ‘Save As...’ option under the ‘File’ menu of the web browser. If the
TCP port has been changed (not port 80), the port will be required to read the le. For example, using the
default IP address, and port 8000, the log le would be read as follows:
http://192.168.1.2:8000/log.txt
To erase the le, use the following parameter in the address bar:
http://192.168.1.2/log.txt?erase=1
After erasing the le, it might be necessary to refresh the page.
Note: If the control password is enabled in the setup pages, the password (control password) will be
required to access this le.
Appendix D: Log Files

Related product manuals