Siemens SIMATIC PCS 7 Programming Manual page 71

Process control system simatic batch - views of the report data v9.0
Hide thumbs Also See for SIMATIC PCS 7:
Table of Contents

Advertisement

1. Return all comments of a recipe element with ROOTGUID= myGUID, POBJID = myPOBJID,
POTID=myPOTID, OBJID=myOBJID, OTID=myOTID, ActivationCounter=myAC and
ParentActivationCounter= myPAC.
select * from vComment as cmnt where
Example:
Object(ROOTGUID)
Object (OBJID, OTID)
Object (POBJID, POTID)
Object (ActivationCounter)
2. Return all actions of a recipe element (including changes) with ROOTGUID= myGUID,
POBJID = myPOBJID, POTID=myPOTID, OBJID=myOBJID, OTID=myOTID,
ExStartTime=myStartTime and ExEndTime=myEndTime.
select act.actiontype, act.UserLogin, act.ExecutionHostname, act.State
from Action as act LEFT OUTER JOIN ChangedItem as changeditem
on
(act.[OBJID] = changeditem.POBJID AND act.[OTID] =
act.[POBJID] = changeditem.P2OBJID AND act.[POTID] = changeditem.P2OTID and
act.[P2OBJID] = changeditem.P3OBJID AND act.[P2OTID] = changeditem.P3OTID
and
act.ROOTGUID = changeditem.ROOTGUID)
where
3. Return all messages of a container with the following data: ROOTGUID= myGUID, POBJID
= myPOBJID, POTID=myPOTID, OBJID=myOBJID, ExStartTime=myStartTime and
ExEndTime=myEndTime. Because batch data management (CDV) only uses the main object
types Batch (OTID=3), Container (OTID=37) or Terminals (OTID=28), the OTID is explicitly
specified.
select * from vCDVMessages as messages where
SIMATIC BATCH - Views of the report data V9.0
Programming Manual, 05/2017, A5E38208785-AA
cmnt.ROOTGUID = myGUID and
cmnt.POBJID = myOBJID and cmnt.POTID = myOTID and
cmnt.P2OBJID = myPOBJID and cmnt.POTID = myOTID and
cmnt.ActivationCounter = myAC
changeditem.ChangeType,
changeditem.NewValue
act.ROOTGUID = myGUID and
act.POBJID = myOBJID and act.POTID = myOTID and
act.P2OBJID = myPOBJID and act.POTID = myOTID and
act.ExecutionTimeStamp <= myEndTime and act.ExecutionTimeStamp >=
myStartTime
messages.ROOTGUID = myGUID and
messages.POBJID = myOBJID and messages.POTID = 37
= Cmnt(ROOTGUID)
= Cmnt (POBJID, POTID)
= Cmnt (P2OBJID, P2OTID)
= Cmnt (ActivationCounter)
changeditem.Objectname,
Examples of links
6.4 Recipe element - properties
changeditem.Oldvalue
changeditem.POTID and
71

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents