DLogVal()
DLogVal() |
DLogVal | Returns the logged data from the specified time | |
Function | Command | DLogVal("Tag Name", “Time Value”) |
Script | n = DLogVal("Tag Name", “Time Value”) | |
Description | Returns the tag value according to the Time Value. The omitted values after the Time Value is set as the initial value. E.g.) If you have entered Time Value as ‘2003’, it represents ‘2003-1-1 0:0:0’. | |
Example | Returns the ‘ELEC’ tag value of 2018- 3- 29 9: 54 DLogVal(“ELEC”, “2018Y03M29D09h54m”) |
Time Value Type
Time Value | Range | Example |
yyyyYmmMddD | -(Present Year-1970) ≦yyyy≦0 1970 ≦ yyyy < 2037 mm: 01~12 dd: 01~31 hh: 00~23 mm: 00~59 ss: 00~59 | 2013Y12M15D0h30m30s -3Y01M01D00h00m00s |
mmMddD | mm ≦ 0 mm: 01~12 dd: 01~31 hh: 00~23 mm: 00~59 ss: 00~59 | 3M15D10h30m30s -1M01D00h00m00s |
ddD | dd ≦ 0 dd: 01~31 hh: 00~23 mm: 00~59 ss: 00~59 | 15D10h30m30s -5D00h00m00s |
HHhMMmSSs | HH ≦ 0 hh: 00~23 mm: 00~59 ss: 00~59 | 10h30m30s -30h00m00s |
MMmSSs | MM ≦ 0 mm: 00~59 ss: 00~59 | 30m30s -15m00s |
SSs | SS ≦ 0 | –300s |