EasyManuals Logo
Home>Siemens>Control Systems>SIMATIC OpenPCS 7

Siemens SIMATIC OpenPCS 7 User Manual

Siemens SIMATIC OpenPCS 7
96 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
Page #89 background imageLoading...
Page #89 background image
Example 5:
Reads the values of the last hour for several ValueIDs (1;3;5;6) , starting at the time of the last
archived value.
"TAG:R,(1;3;5;6),'0000-00-00 01:00:00.000',
'0000-00-0000:00:00.000'"
Multiple return values for one query by filtering the tag value
Example 6:
The following query also uses the <SQL_Clause> parameter and returns all values of tags
with the ValueID "3" and "6" that are below 50 or over 100.
"TAG:R,(3;6),<TimeBegin>,<TimeEnd>,'WHERE RealValue > 100 OR
RealValue < 50'"
Query with the <TimeStep>parameter
Example 7:
The following query uses the <TimeStep> parameter and returns all values of the ValueID "1" ,
starting at "TimeBegin" for the next 5 minutes at intervals of "60" seconds with aggregate
function type "5" = "average value without interpolation".
"TAG:R,1,'2004-10-13 17:00:00.000','0000-00-00 00:05:00.000',
'TIMESTEP=60,5'"
Example 8:
The following query uses the <TimeStep> parameter and returns all values of theValueIDs "1"
and "2" , starting at "TimeBegin" until 2 minutes later at intervals of "15" seconds with aggregate
function type "261" = "average value without interpolation".
"TAG:R,(1;2),'2004-10-13 17:00:00.000','0000-00-00 00:02:00.000',
'TIMESTEP=15,261'"
6.7.5.3 Representation of the message archives
Structure of the recordset
The result of the query is returned as a recordset. The following table describes the structure
of the recordset for message archives. Information on the status of messages is available in
OpenPCS 7 interface
6.7 OLE DB
OpenPCS 7
Function Manual, 05/2012, A5E02780178-02 89

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SIMATIC OpenPCS 7 and is the answer not in the manual?

Siemens SIMATIC OpenPCS 7 Specifications

General IconGeneral
BrandSiemens
ModelSIMATIC OpenPCS 7
CategoryControl Systems
LanguageEnglish

Related product manuals