Section 8. Operation
{
"symbols": [
{"name": "Status","uri": "dl:Status","type": 6,"is_enabled":
true,"is_read_only": false,"can_expand": true},
{"name": "MainData","uri": "dl:MainData","type":
6,"is_enabled": true,"is_read_only": false,"can_expand": true},
{"name": "BallastTank1","uri": "dl:BallastTank1","type":
6,"is_enabled": true,"is_read_only": false,"can_expand": true},
{"name": "BallastTank2","uri": "dl:BallastTank2","type":
6,"is_enabled": true,"is_read_only": false,"can_expand": true},
{"name": "BallastTank3","uri": "dl:BallastTank3","type":
6,"is_enabled": true,"is_read_only": false,"can_expand": true},
{"name": "BallastTank4","uri": "dl:BallastTank4","type":
6,"is_enabled": true,"is_read_only": false,"can_expand": true},
{"name": "BallastLine","uri": "dl:BallastLine","type":
6,"is_enabled": true,"is_read_only": false,"can_expand": true},
{"name": "Public","uri": "dl:Public","type": 6,"is_enabled":
true,"is_read_only": false,"can_expand": true}
]
}
8.6.3.14.5 Data Management — DataQuery Command
DataQuery
allows a web client to poll the CR1000 for data.
DataQuery
typically takes the form:
http://ip_address/?command=DataQuery&uri=dl:tablename.fieldname&
format=_&mode=_&p1=_&p2=_
DataQuery
requires a minimum
.csipasswd
access level of
3
(read-only
)
.
Table 112.
DataQuery API Command Parameters
uri
Optional. Specifies the
URI
(p. 532)
for data to be queried. Syntax:
dl:tablename.fieldname
.
Field name is optional. Field name is always specified in association with a table name. If field
name is not specified, all fields are collected. If
fieldname
refers to an array without a subscript,
all values associated with that array will be output. Table name is optional. If table name is not
used, the entire URI syntax is not needed as
dl
(CR1000) is the default data source.
mode
Required. Modes for temporal-range of collected-data:
most-recent
returns data from the most recent number of records.
p1
specifies maximum number
of records.
since-time
returns most recent data since a certain time.
p1
specifies the beginning time stamp
(see
Time Syntax
(p. 427)
section).
since-record
returns
records
(p. 525)
since a certain record number. The record number is specified
by
p1.
If the record number is not present in the table, the CR1000 will return all data starting
with the oldest record.
date-range
returns data in a certain date range. The date range is specified using
p1
and
p2
. Data
returned include data from date specified by
p1
but not by
p2
(half-open interval).
backfill
returns data stored since a certain time interval (for instance, all the data since 1 hour
ago). The interval, in seconds, is specified using
p1
.
431
Summary of Contents for CR1000
Page 2: ......
Page 4: ......
Page 6: ......
Page 32: ......
Page 36: ......
Page 38: ......
Page 40: ......
Page 60: ...Section 4 System Quickstart Figure 16 PC200W View Line Graph 60 ...
Page 96: ......
Page 98: ...98 ...
Page 302: ......
Page 453: ...Section 8 Operation Figure 115 Using the Keyboard Display 453 ...
Page 456: ...Section 8 Operation Figure 118 Real Time Custom 456 ...
Page 457: ...Section 8 Operation 8 8 1 3 Final Memory Tables Figure 119 Final Memory Tables 457 ...
Page 458: ...Section 8 Operation 8 8 2 Run Stop Program Figure 120 Run Stop Program 458 ...
Page 460: ...Section 8 Operation Figure 122 File Edit 460 ...
Page 461: ...Section 8 Operation 8 8 4 PCCard Memory Card Display Figure 123 PCCard CF Card Display 461 ...
Page 478: ......
Page 506: ......
Page 536: ......
Page 636: ......
Page 642: ......
Page 644: ......
Page 676: ......
Page 677: ......