DLogVal()

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
HHhMMmSSs

-(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
HHhMMmSSs

mm ≦ 0

mm: 01~12

dd: 01~31

hh: 00~23

mm: 00~59

ss: 00~59

3M15D10h30m30s

-1M01D00h00m00s

ddD
HHhMMmSSs

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

Β