Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

Preserve time stamps from the publishing source

  • Last UpdatedJul 26, 2024
  • 1 minute read

In the following cases, if you want to pass only the time stamp, the subscriber gets the time stamp as converted to the local time zone of the publisher and not the time zone of the data source.

Examples of configurations that do not preserve the original time zone are as follows.

In this configuration, GalaxyB:Object1.TimeAttr shows the time adjusted to the local time zone of the GalaxyA Gateway Communication Driver and not the time zone of the PLC:

PLC.Item <= GalaxyA Object1.IntAttr.Time <= GatewayCommDriver <= GalaxyB OPCClient <= Object1.TimeAttr

In this configuration, GalaxyB:Object1.TimeAttr shows the time adjusted to the local time zone of the InTouch application and not the time zone of the PLC:

PLC.Item <= GalaxyA Object1.IntAttr.Time <= InTouch App I/O Message Tag <= GalaxyB InTouchProxy <= Object1.TimeAttr

To avoid these problems, subscribe to the GalaxyA:Object1.IntAttr value property. This way, both the value and time stamp propagate to GalaxyB:Object1.IntAttr. You can then use the GalaxyB:Object1.IntAttr.Time. For example:

PLC.Item <= GalaxyA Object1.IntAttr <= GatewayCommDriver <= GalaxyB OPCClient <= Object1.IntAttr

PLC.Item <= GalaxyA Object1.IntAttr <= InTouch App I/O Integer Tag <= GalaxyB InTouchProxy <= Object1.IntAttr

In this configuration, the time property propagates from InTouch to Object.IntAttr.Time:

PLC.Item <= InTouch I/O Integer Tag <= Galaxy InTouchProxy <= Object.IntAttr

Related Links
TitleResults for “How to create a CRG?”Also Available in