failed adding timestamp to OPC-DA datastream

Post Reply
HaMo

failed adding timestamp to OPC-DA datastream

Post by HaMo » Thu Aug 21, 2014 11:17 am

Hi all,
tried to read one OPC-DA channel an add an odysseus generated timestamp.
Expanded schema:

Code: Select all

schema=[
		['\\.\PVR-WRS-1\I_DC_1', 'FLOAT']
		, ['start', 'StartTimestamp'] 
		, ['end', 'EndTimestamp']
]
})
expanding schema causes:

Code: Select all

3141973 DEBUG AccessBase  - Realizing item: start - org.openscada.opc.lib.da.AccessBase.realizeItem(AccessBase.java:222) 
3142004 WARN  AccessBase  - Failed to add item: start (C0040007) - org.openscada.opc.lib.da.AccessBase.realizeAll(AccessBase.java:269) 
3142004 DEBUG AccessBase  - Realizing item: \\.\PVR-WRS-1\I_DC_1 - org.openscada.opc.lib.da.AccessBase.realizeItem(AccessBase.java:222) 
3142020 DEBUG Item  - Adding new item '\\.\PVR-WRS-1\I_DC_1' (0x00000002) for group org.openscada.opc.lib.da.Group@605b3ba5 - org.openscada.opc.lib.da.Item.<init>(Item.java:42) 
3142020 DEBUG Group  - Adding item: '\\.\PVR-WRS-1\I_DC_1', 2 - org.openscada.opc.lib.da.Group.addItem(Group.java:245) 
3142020 DEBUG AccessBase  - Realizing item: end - org.openscada.opc.lib.da.AccessBase.realizeItem(AccessBase.java:222) 
3142020 WARN  AccessBase  - Failed to add item: end (C0040007) - org.openscada.opc.lib.da.AccessBase.realizeAll(AccessBase.java:269) 
3142020 DEBUG AutoReconnectController  - performReconnect completed : true - org.openscada.opc.lib.da.AutoReconnectController$1.run(AutoReconnectController.java:178) 
3142035 DEBUG OPCDATransportHandler  - 0: 2.9938493 - de.uniol.inf.is.odysseus.wrapper.opcda.physicaloperator.access.OPCDATransportHandler.process(OPCDATransportHandler.java:214) 
3142051 ERROR SyncAccess  - Sync read failed - org.openscada.opc.lib.da.SyncAccess.run(SyncAccess.java:63) 
java.lang.NullPointerException
	at de.uniol.inf.is.odysseus.core.datahandler.LongHandler.writeData(LongHandler.java:66)
	at de.uniol.inf.is.odysseus.core.datahandler.TupleDataHandler.writeData(TupleDataHandler.java:276)
	at de.uniol.inf.is.odysseus.wrapper.opcda.physicaloperator.access.OPCDATransportHandler.process(OPCDATransportHandler.java:218)
	at de.uniol.inf.is.odysseus.wrapper.opcda.physicaloperator.access.OPCDATransportHandler$1.changed(OPCDATransportHandler.java:190)
	at org.openscada.opc.lib.da.AccessBase.updateItem(AccessBase.java:341)
	at org.openscada.opc.lib.da.SyncAccess.runOnce(SyncAccess.java:97)
	at org.openscada.opc.lib.da.SyncAccess.run(SyncAccess.java:54)
	at java.lang.Thread.run(Unknown Source)
seems that odysseus tries to add start and end as OPC-DA tags, which not existing.

Any advice?
Last edited by HaMo on Fri Aug 22, 2014 9:49 am, edited 1 time in total.

Martin Schmid
Posts: 34
Joined: Fri Aug 15, 2014 5:22 pm

Re: failed adding timestamp to OPC-DA datastream

Post by Martin Schmid » Thu Aug 21, 2014 2:44 pm

Appending timestamps via

TimeStamptoPayLoad operator works.

User avatar
Marco Grawunder
Posts: 272
Joined: Tue Jul 29, 2014 10:29 am
Location: Oldenburg, Germany
Contact:

Re: failed adding timestamp to OPC-DA datastream

Post by Marco Grawunder » Thu Aug 21, 2014 4:11 pm

Exactly, the schema defined in the access operator must match the data delivered. Only when there is a field that has this information, STARTTIMESTAMP and ENDTIMESTAMP can be used.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest