Representation Of The Message Archives - Siemens SIMATIC PCS 7 Function Manual

Process control system
Hide thumbs Also See for SIMATIC PCS 7:
Table of Contents

Advertisement

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
Function Manual, 05/2012, A5E02780178-02
OpenPCS 7 interface
6.7 OLE DB
89

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic openpcs 7

Table of Contents