Time Stamp Schneider
Time Stamp Schneider
Time Stamp Schneider
User Guide
Original instructions
05/2022
EIO0000001217.08
www.se.com
Legal Information
The Schneider Electric brand and any trademarks of Schneider Electric SE and its
subsidiaries referred to in this guide are the property of Schneider Electric SE or its
subsidiaries. All other brands may be trademarks of their respective owners.
This guide and its content are protected under applicable copyright laws and furnished for
informational use only. No part of this guide may be reproduced or transmitted in any form or
by any means (electronic, mechanical, photocopying, recording, or otherwise), for any
purpose, without the prior written permission of Schneider Electric.
Schneider Electric does not grant any right or license for commercial use of the guide or its
content, except for a non-exclusive and personal license to consult it on an "as is" basis.
Schneider Electric products and equipment should be installed, operated, serviced, and
maintained only by qualified personnel.
As standards, specifications, and designs change from time to time, information contained in
this guide may be subject to change without notice.
To the extent permitted by applicable law, no responsibility or liability is assumed by
Schneider Electric and its subsidiaries for any errors or omissions in the informational
content of this material or consequences arising out of or resulting from the use of the
information contained herein.
EIO0000001217.08 3
Design and Configuration Phases .......................................................................48
Selecting the Time Stamping Module .......................................................................49
Time Resolution ...............................................................................................49
Selecting and Setting Time Synchronization .............................................................51
Selecting the Time Source.................................................................................51
Control Expert Setting.......................................................................................54
BME P58 xxxx Clock Settings in Control Expert ..................................................54
BMX ERT 1604 T Clock Settings in Control Expert ..............................................56
BMx CRA 312 10 Clock Settings in Control Expert ..............................................57
Activating System Time Stamping Service................................................................59
Control Expert Settings .....................................................................................59
OFS Settings....................................................................................................62
BME NUA 0100 Settings ...................................................................................64
Selecting and Configuring the Variables to Time Stamp.............................................67
Variables Usage ...............................................................................................67
User Time Stamping Variables...........................................................................68
BME P58 xxxx Variables Settings in Control Expert .............................................71
BMX ERT 1604 T Variables Settings in Control Expert.........................................72
BMx CRA 312 10 Variables Settings in Control Expert .........................................79
Selecting the Communication Parameters................................................................82
Capability Checks.............................................................................................82
OFS Communication Settings............................................................................84
Setting AVEVA Plant SCADA Parameters ................................................................86
AVEVA Plant SCADA Parameters......................................................................86
Time Quality and SOE Uncertain Sequence........................................................90
Commissioning and Operation Phases ...............................................................93
Diagnostic .............................................................................................................94
Introduction .....................................................................................................94
PLC View.........................................................................................................95
OFS View ........................................................................................................97
BME NUA 0100 View ........................................................................................99
AVEVA Plant SCADA View.............................................................................. 101
Hardware Diagnostic ...................................................................................... 105
Behavior on Operating Modes ............................................................................... 111
Operating Modes............................................................................................ 111
4 EIO0000001217.08
Initial Start After the Application Download and First Start with Connection of
the SCADA Server.......................................................................................... 113
Power Down/Up of a Time Stamping Module .................................................... 115
Module Internal Event Buffer Full ..................................................................... 117
Restart of the SCADA Server .......................................................................... 120
Specific Operating Modes ............................................................................... 121
Behavior on Time Synchronization......................................................................... 124
Time Synchronization ..................................................................................... 124
How to Interface with a 3rd Party Client SCADA ............................................. 128
3rd Party OPC DA Client SCADA .......................................................................... 129
OPC Events Group ......................................................................................... 129
Operation Steps ............................................................................................. 130
Optional Functionalities................................................................................... 131
##TSEventsGroup## OnDataChange Interface............................................. 132
Troubleshooting .................................................................................................... 134
Troubleshooting SOE Page in AVEVA Plant SCADA ............................................... 135
AVEVA Plant SCADA SOE Display Troubleshooting.......................................... 135
Appendices ............................................................................................................ 139
Event Format ....................................................................................................... 140
Event Time Stamp Entry.................................................................................. 140
Glossary ................................................................................................................. 145
Index ....................................................................................................................... 147
EIO0000001217.08 5
Safety Information
Safety Information
Important Information
Read these instructions carefully, and look at the equipment to become familiar with the
device before trying to install, operate, service, or maintain it. The following special
messages may appear throughout this documentation or on the equipment to warn of
potential hazards or to call attention to information that clarifies or simplifies a procedure.
The addition of this symbol to a “Danger” or “Warning” safety label indicates that an
electrical hazard exists which will result in personal injury if the instructions are not
followed.
This is the safety alert symbol. It is used to alert you to potential personal injury
hazards. Obey all safety messages that follow this symbol to avoid possible injury or
death.
! DANGER
DANGER indicates a hazardous situation which, if not avoided, will result in death or serious
injury.
! WARNING
WARNING indicates a hazardous situation which, if not avoided, could result in death or
serious injury.
! CAUTION
CAUTION indicates a hazardous situation which, if not avoided, could result in minor or
moderate injury.
NOTICE
NOTICE is used to address practices not related to physical injury.
EIO0000001217.08 7
Safety Information
Please Note
Electrical equipment should be installed, operated, serviced, and maintained only by
qualified personnel. No responsibility is assumed by Schneider Electric for any
consequences arising out of the use of this material.
A qualified person is one who has skills and knowledge related to the construction and
operation of electrical equipment and its installation, and has received safety training to
recognize and avoid the hazards involved.
WARNING
UNGUARDED EQUIPMENT
• Do not use this software and related automation equipment on equipment which does
not have point-of-operation protection.
• Do not reach into machinery during operation.
Failure to follow these instructions can result in death, serious injury, or equipment
damage.
This automation equipment and related software is used to control a variety of industrial
processes. The type or model of automation equipment suitable for each application will
vary depending on factors such as the control function required, degree of protection
required, production methods, unusual conditions, government regulations, etc. In some
applications, more than one processor may be required, as when backup redundancy is
needed.
Only you, the user, machine builder or system integrator can be aware of all the conditions
and factors present during setup, operation, and maintenance of the machine and,
therefore, can determine the automation equipment and the related safeties and interlocks
which can be properly used. When selecting automation and control equipment and related
software for a particular application, you should refer to the applicable local and national
standards and regulations. The National Safety Council's Accident Prevention Manual
(nationally recognized in the United States of America) also provides much useful
information.
In some applications, such as packaging machinery, additional operator protection such as
point-of-operation guarding must be provided. This is necessary if the operator's hands and
8 EIO0000001217.08
Safety Information
other parts of the body are free to enter the pinch points or other hazardous areas and
serious injury can occur. Software products alone cannot protect an operator from injury. For
this reason the software cannot be substituted for or take the place of point-of-operation
protection.
Ensure that appropriate safeties and mechanical/electrical interlocks related to point-of-
operation protection have been installed and are operational before placing the equipment
into service. All interlocks and safeties related to point-of-operation protection must be
coordinated with the related automation equipment and software programming.
NOTE: Coordination of safeties and mechanical/electrical interlocks for point-of-
operation protection is outside the scope of the Function Block Library, System User
Guide, or other implementation referenced in this documentation.
WARNING
EQUIPMENT OPERATION HAZARD
• Verify that all installation and set up procedures have been completed.
• Before operational tests are performed, remove all blocks or other temporary holding
means used for shipment from all component devices.
• Remove tools, meters, and debris from equipment.
Failure to follow these instructions can result in death, serious injury, or equipment
damage.
Follow all start-up tests recommended in the equipment documentation. Store all equipment
documentation for future references.
Software testing must be done in both simulated and real environments.
Verify that the completed system is free from all short circuits and temporary grounds that
are not installed according to local regulations (according to the National Electrical Code in
the U.S.A, for instance). If high-potential voltage testing is necessary, follow
recommendations in equipment documentation to prevent accidental equipment damage.
Before energizing equipment:
• Remove tools, meters, and debris from equipment.
EIO0000001217.08 9
Safety Information
10 EIO0000001217.08
About the Book
Validity Note
This document is valid from OFS V3.40, AVEVA Plant SCADA V7.30, and EcoStruxure™
Control Expert 14.1.
The technical characteristics of the devices described in the present document also appear
online. To access the information online, go to the Schneider Electric home page www.se.
com/ww/en/download/.
The characteristics that are described in the present document should be the same as those
characteristics that appear online. In line with our policy of constant improvement, we may
revise content over time to improve clarity and accuracy. If you see a difference between the
document and online information, use the online information as your reference.
Related Documents
Title of Documentation Reference Number
OPC Factory Server V3.50, User Manual 35008244 (Eng), 35008244 (Fre), 35008244 (Ger)
AVEVA Plant SCADA User Guide Supplied with AVEVA Plant SCADA installation files
and installed with AVEVA Plant SCADA.
AVEVA Plant SCADA Help Installed with AVEVA Plant SCADA.
Modicon X80, BMXERT1604T Time Stamp Module, EIO0000001121 (English), EIO0000001122 (French),
User Guide EIO0000001123 (German), EIO0000001125 (Italian),
EIO0000001124 (Spanish), EIO0000001126 (Chinese)
EIO0000001217.08 11
About the Book
Modicon M340 for Ethernet, Communications Modules 31007131 (English), 31007132 (French), 31007133
and Processors, User Manual (German), 31007494 (Italian), 31007134 (Spanish),
31007493 (Chinese)
Modicon M340, BMX NOC 0401 Ethernet S1A34009 (English), S1A34010 (French), S1A34011
Communication Module, User Manual (German), S1A34013 (Italian), S1A34012 (Spanish),
S1A34014 (Chinese)
Modicon M580 Standalone, System Planning Guide HRB62666 (English), HRB65318 (French), HRB65319
for Frequently Used Architectures (German), HRB65320 (Italian), HRB65321 (Spanish),
HRB65322 (Chinese)
EcoStruxure™ Control Expert, System Bits and Words, EIO0000002135 (English), EIO0000002136 (French),
Reference Manual EIO0000002137 (German), EIO0000002138 (Italian),
EIO0000002139 (Spanish), EIO0000002140
(Chinese)
EcoStruxure™ Control Expert, Operating Modes 33003101 (English), 33003102 (French), 33003103
(German), 33003104 (Spanish), 33003696 (Italian),
33003697 (Chinese)
You can download these technical publications and other technical information from our
website at www.se.com/ww/en/download/ .
12 EIO0000001217.08
Introduction to System Time Stamping
What’s in This Part
Presentation ............................................................................14
Introduction
This part introduces the concepts, solutions and limitations of system time stamping.
EIO0000001217.08 13
Presentation
Presentation
What’s in This Chapter
Concepts.................................................................................14
System Time Stamping Solution................................................15
System Time Stamping Limitations............................................16
Concepts
Definition
The system time stamping provides a consistent SOE (sequence of events), time stamped
at the source, in order to allow the user to analyze the source of abnormal behavior in a
distributed automation system.
The SOE is displayed in an alarm summary or SOE page of a client (such as a SCADA).
Each source of time stamped event of the SOE is a discrete I/O value change (transition)
detected by a time stamping module or an internal variable value change detected by a
PLC.
The following graphic shows an example of AVEVA Plant SCADA SOE page display:
Benefits
The system time stamping benefits are:
• No need for PLC programming.
14 EIO0000001217.08
Presentation
• Direct communication between the time stamping modules and the client. If the time
stamping modules are in a Modicon Quantum or M580 Ethernet I/O drop, the PLC
communication bandwidth is not used.
• Consistency in the I/O values between the process (time stamping modules) and the
client (SCADA).
• Advanced diagnostic functions:
◦ Signalization of uncertain SOE (sequence during which some events may be lost) to
the client.
◦ Time quality information associated with each time stamped event.
• No loss of events in normal operating conditions:
◦ A buffer is available to store the events in each time stamping module. The event
storage is stopped when the buffer is full.
◦ Rising and falling edges transitions are stored for each discrete I/O and PLC internal
variables.
• Hot Standby configurations on the PLC and/or redundant SCADA are managed.
EIO0000001217.08 15
Presentation
NOTE: Time stamping with 140 ERT 854 •0 modules can be used in both applicative
and system modes, but this topic is not discussed in this guide. For more details on
those modules, refer to the Quantum using EcoStruxure™ Control Expert, 140 ERT 854
10 Time Stamp Module, User Manual and the Quantum using EcoStruxure™ Control
Expert, 140 ERT 854 20 Time Stamp Module, User Manual.
16 EIO0000001217.08
Presentation
• A Modicon X80 Ethernet RIO drop supports up to 36 expert channels. A BMX ERT
1604 T module is counted as 4 expert channels.
• In a Modicon M340 local drop, the maximum number of BMX ERT 1604 T modules
depends on the local drop CPU type. For more details, refer to Modicon X80,
BMXERT0604T Time Stamp Module, User Guide, page 11.
• In an M580 application, the number of BMX ERT 1604 T modules per application is
limited to 25.
• A maximum of 256 discrete I/Os are managed per BM• CRA 312 10 module.
• A maximum of 144 discrete inputs per Modicon M340 PLC (local drop) are managed.
128 discrete inputs can be managed by BMX P34 2000/2010/2020 processors.
• System time stamping solution does not support the CCOTF function.
• In a Modicon M580 safety project:
◦ The SAFE task does not support time stamping of internal variables by the CPU.
◦ The BM•CRA31210 adapter module can time stamp inputs and outputs of safety
digital I/O modules located in remote I/O drops.
◦ The M580P58••••S safety CPU cannot time stamp digital inputs and outputs of
safety digital I/O modules located in the local rack.
System Constraints
• 2 OFS products, running on HMI and SCADA for example, cannot access
simultaneously the same time stamping source. A reservation mechanism is
implemented to avoid simultaneous access.
• A communication path between OFS and the time stamping sources is mandatory to
manage at source time stamping solution. If routers are placed in the communication
path, they have to be set accordingly.
• The system time stamping of internal variables requires the PLC must be configured in
periodic mode (it is not possible to time stamp variables in cyclic mode).
Compatibility
• SCADA redundancy is compatible with system time stamping.
EIO0000001217.08 17
System Time Stamping Architecture
What’s in This Part
Components............................................................................19
Components Versions ..............................................................32
Architecture Examples .............................................................33
Performances ..........................................................................45
Introduction
This part presents the list of system time stamping components, component versions,
performances, and architecture examples.
18 EIO0000001217.08
Components
Components
What’s in This Chapter
AVEVA Plant SCADA ...............................................................20
3rd Party Client SCADA ...........................................................21
Time Synchronization...............................................................22
OFS........................................................................................23
BME NUA 0100 .......................................................................24
Control Expert .........................................................................25
BME P58 xxxx CPU .................................................................26
BMX ERT 1604 T Module .........................................................27
BMx CRA 312 10 Module .........................................................28
Router.....................................................................................30
Modicon M340 Ethernet Communication Modules in a Local
Drop .......................................................................................31
Overview
This chapter presents the components involved in a system time stamping solution.
EIO0000001217.08 19
Components
20 EIO0000001217.08
Components
EIO0000001217.08 21
Components
Time Synchronization
Time Synchronization in the System
Time Synchronization
Time synchronization is a key point in the system time stamping solution. Time
synchronization between the time stamping event sources (using different external source
clocks) is the prerequisites to have a functional time stamping solution.
Time synchronization means:
• AVEVA Plant SCADA / OFS client: NTP server
• BMX ERT 1604 T: DCF77 or IRIG-B 004/5/6/7 external clock
• BM• CRA 312 10: NTP server
• BME P58 ••••: NTP server
22 EIO0000001217.08
Components
OFS
OFS in the System
OFS Role
OFS software allows access to real-time PLC data. It is a multi-PLC data server. OFS allows
to read the time stamping event buffers in the sources and to transmit them to the SCADA
via an OPC DA interface.
OFS software offers communication with most Schneider Electric PLCs and is able to
browse dynamically objects from Control Expert software or directly from the PLC.
OFS is located on the control network in the system and if you are using AVEVA Plant
SCADA it is recommended to install this software on the same PC as OFS.
EIO0000001217.08 23
Components
24 EIO0000001217.08
Components
Control Expert
Control Expert Software in the System
EIO0000001217.08 25
Components
26 EIO0000001217.08
Components
EIO0000001217.08 27
Components
The BMX ERT 1604 T is a 16 discrete input channels module able to generate time
stamping events on input value changes. To time stamp its inputs, the BMX ERT 1604 T
module is connected to an external GPS clock generating IRIG-B 004/5/6/7 or DCF77 time
code, or a DCF77 radio receiver.
NOTE: Some of the BMX ERT 1604 T module channels can also be used as simple
discrete inputs or incremental counting inputs.
For more details on the BMX ERT 1604 T module, refer to the Modicon X80,
BMXERT0604T Time Stamp Module, User Guide, page 11.
The BMX ERT 1604 T inputs use positive (or sink) logic and the voltage input ranges are as
follows:
• 24 Vdc
• 48 Vdc
• 60 Vdc
• 110 Vdc
• 125 Vdc
28 EIO0000001217.08
Components
Modules Reference
BMX DAI 0805 BMX DDI 1602 BMX DDM 16022 BMX DDO 1602 BMX DRA 0804
BMX DAI 0814 BMX DDI 1603 BMX DDM 16025 BMX DDO 1612 BMX DRA 0805
BMX DAI 1602 BMX DDI 1604 BMX DDM 3202K BMX DDO 3202K BMX DRA 0815
BMX DAI 1603 BMX DDI 3202K BMX DDO 6402K BMX DRA 1605
BMX DAI 1604 BMX DDI 6402K BMX SDO 0802 BMX DRC 0805
BMX DAI 1614 BMX SDI 1602 BMX SRA 0405
BMX DAI 1615
BMX DAO 1605
BMX DAO 1615
EIO0000001217.08 29
Components
Router
Router in the System
Router Role
The router is a device that transmits data between different Ethernet networks (a control
network and a device network for example).
NOTE: The router allows a direct communication path between the sources of time
stamped events and the final client (SCADA) via OFS.
Router Modules
Routers that can be used in a time stamping solution in the Ethernet control network include
any IP router..
A BME NUA 0100, page 24 module can also be used as a router.
30 EIO0000001217.08
Components
Communication Modules
For time stamping with a BMX ERT 1604 T in a Modicon M340 PLC (local drop), one of the
following Ethernet communication modules is required to interface the BMX ERT 1604 T
with the SCADA / OFS:
• BMX NOC 0401
• BMX NOE 0100
• BMX NOE 0110
For more details on the Modicon M340 Ethernet communication modules, refer to the
Modicon M340 for Ethernet, Communications Modules and Processors, User Manual, page
11 and Modicon M340, BMX NOC 0401 Ethernet Communication Module, User Manual,
page 11.
EIO0000001217.08 31
Components Versions
Components Versions
What’s in This Chapter
Components Version................................................................32
Components Version
General
The following table shows the system time stamping component required versions:
Component Version
32 EIO0000001217.08
Architecture Examples
Architecture Examples
What’s in This Chapter
Time Stamping Typical Architecture...........................................33
Modicon M580 Typical Architecture ...........................................35
Modicon M340 Typical Architecture ...........................................41
Redundant Architectures ..........................................................43
Overview
This chapter provides typical time stamping architectures.
SCA- OPC OPC PLC (Local Drop) Ethernet Remote I/O Drop
DA DA UA
Serv- Serv- Fami- Time Time Fami- Time Stamping Time
er er ly Stamping Synchroniza- ly Source Synchroniza-
Source tion tion
AVE- OFS BME Modi- BME P58 NTP server Modi- BM• CRA 312 10 NTP server (3.)
VA NUA con ••••4 con
Plant + 0200 M580 X80
BMX ERT (2.) BMX ERT 1604 T DCF77 or IRIG-
SCA- DCF77 or IRIG-
DA or 1 or 2 1604 T B 004/5/6/7 B 004/5/6/7
3rd more mod-
party I/O ules
SCA- serv- max
DA (1.) ers per
rack
EIO0000001217.08 33
Architecture Examples
SCA- OPC OPC PLC (Local Drop) Ethernet Remote I/O Drop
DA DA UA
Serv- Serv- Fami- Time Time Fami- Time Stamping Time
er er ly Stamping Synchroniza- ly Source Synchroniza-
Source tion tion
Mix of both Each source Mix of both Each source has
possible has its time possible sources: its time
sources: reference: reference:
• BM• CRA
• BME • NTP 312 10 • NTP
P58 server for server (3.)
• BMX ERT
••••4 BME P58 for BM•
1604 T
•••• CRA 312
• BMX
• DCF77 or 10
ERT
1604 T IRIG-B • DCF77 or
004/5/6/7 IRIG-B
for BMX 004/5/6/7
ERT 1604 for BMX
T ERT 1604
T
N.A. Not Applicable
2. A time stamping architecture may contain several Ethernet remote I/O drops with time stamping sources.
3. A single NTP server can provide time reference to many BM• CRA 312 10 modules and a BME P58 •••• CPU.
4 The SAFE task does not suppot time stamping of internal variables by the BME P58 ••••S CPU
34 EIO0000001217.08
Architecture Examples
EIO0000001217.08 35
Architecture Examples
GPS
M580 local drop
P/S CPU NUA ERT
GPS
DCF77 / IRIG-B
NTP server
In this example, the Modicon M580 architecture contains a BME P58 •••• CPU and a BMX
ERT 1604 T module.
The BME P58 •••• CPU and the BMX ERT 1604 T module are the time stamped events
sources (the CPU time stamps transitions on internal variables).
The time source for the CPU is an NTP server connected to the Ethernet control network.
The time source for the BMX ERT 1604 T module is an external clock (DCF77 or IRIG-B
time format). The AVEVA Plant SCADA / OFS needs to be synchronized on an NTP server.
The GPS is a unique time reference for both BME P58 •••• CPU and BMX ERT 1604 T
module. The time source for each BMX ERT 1604 T is an external clock (DCF77 or IRIG-B
time format) synchronized on GPS. The BME P58 •••• CPU and the AVEVA Plant SCADA /
OFS need to be synchronized on GPS.
The unique time reference can also be an NTP server (dedicated high accuracy hardware
like a Gorgy Timing LEDI Network NTP Server for example) that provides the IRIG-B 004/
5/6/7 or DCF77 time code for BMX ERT 1604 T synchronization, page 53. In this case, the
GPS usage is not mandatory.
36 EIO0000001217.08
Architecture Examples
NTP server
M580 local drop
P/S CPU NUA I/O
ConneXium
router
Ethernet bus
In this example, the Modicon M580 architecture contains a BME P58 •••• CPU and a remote
I/O drop with a BME CRA 312 10 module.
The BME P58 •••• CPU and the BME CRA 312 10 module are the time stamped events
sources. The CPU time stamps transitions on internal variables and the BME CRA 312 10
module time stamps I/O transitions on the discrete I/O modules in the remote I/O drop.
The time source for the CPU and BME CRA 312 10 module is an NTP server connected to
the Ethernet control network.
EIO0000001217.08 37
Architecture Examples
The multi-layered architecture requires the device network to be linked to the control
network with a ConneXium router. In this architecture, the BME NOC 03•1 module on the
local drop is linked to the control network. Using a BME NOC 03•1 module is optional
depending on the communication capability needs.
NOTE: It is necessary to choose an NTP server that provides stable clock
synchronization and accurate NTP output.
Ethernet bus
In this example, the Modicon M580 architecture contains a BME P58 •••• CPU and a remote
I/O drop with a BME CRA 312 10 module.
38 EIO0000001217.08
Architecture Examples
The BME P58 •••• CPU and the BME CRA 312 10 module are the time stamped events
sources. The CPU time stamps transitions on internal variables and the BME CRA 312 10
module time stamps I/O transitions on the discrete I/O modules in the remote I/O drop.
The time source for the CPU and BME CRA 312 10 module is the BME P58 •••• CPU
internal NTP server.
The flat architecture implies that all devices are connected to the same network.
EIO0000001217.08 39
Architecture Examples
GPS
M580 local drop
P/S CPU NUA I/O
NTP server
ConneXium
router
GPS
DCF77 / IRIG-B
GPS
DCF77 / IRIG-B
Time code
generator
GPS
In this example, a Modicon M580 architecture contains 2 Modicon X80 Ethernet remote I/O
drops.
40 EIO0000001217.08
Architecture Examples
On the local rack, the CPU time stamps transitions on internal variables. On each remote I/O
drop, both BM• CRA 312 10 and BMX ERT 1604 T modules are the time stamped event
sources (the BM• CRA 312 10 module time stamps I/O transitions on the discrete I/O
modules in the remote I/O drop).
The GPS is a unique time reference for theBME P58 •••• CPU, the BMX ERT 1604 T and the
BM• CRA 312 10 modules. The time source for each BMX ERT 1604 T is an external clock
(DCF77 or IRIG-B time format) synchronized on GPS. The BME P58 •••• CPU, BM• CRA
312 10 module, and AVEVA Plant SCADA / OFS need to be synchronized on GPS.
The unique time reference can also be an NTP server (dedicated high accuracy hardware
like a Gorgy Timing LEDI Network NTP Server for example) that provides the IRIG-B 004/
5/6/7 or DCF77 time code for BMX ERT 1604 T synchronization, page 53. In this case, the
GPS usage is not mandatory.
EIO0000001217.08 41
Architecture Examples
In this example, the Modicon M340 local drop contains a BMX ERT 1604 T module.
The BMX ERT 1604 T module is the time stamped events source.
The time source for the BMX ERT 1604 T module is an external clock (DCF77 or IRIG-B
time format). The AVEVA Plant SCADA / OFS needs to be synchronized on an NTP server.
NOTE: The OFS is connected to the PLC local drop with an Ethernet link, as a
consequence, the PLC local drop needs to have an Ethernet communication module,
page 31.
42 EIO0000001217.08
Architecture Examples
Redundant Architectures
Overview
Redundancy in a time stamping architecture is possible at 2 levels:
• 2 BME NUA 0100 redundant modules in a Modicon M580 rack.
• SCADA (AVEVA Plant SCADA).
NOTE: Redundant SCADA servers are recommended to prevent loss of data. If there is
no SCADA redundancy, some events may be lost in case of communication problem
between SCADA servers.
EIO0000001217.08 43
Architecture Examples
DCF77 / IRIG-B
Time code
generator
44 EIO0000001217.08
Performances
Performances
What’s in This Chapter
Performances ..........................................................................45
Overview
This chapter describes the applicative time stamping components and system
performances.
Performances
Components Performances
The following table sums up component performances in a time stamping solution:
Time stamp resolution (between 2 identical BMX ERT 1604 T 2 ms < time stamp resolution < 4 ms
source modules)
(with the same time source)
EIO0000001217.08 45
Performances
Maximum number of I/O and available BME P58 •••• 5000 internal variables
memory (1.)
32000 events in internal buffer (2.)
1. The maximum value depends on the global system performance, it is not an absolute value and has to be
balanced.
System Limitations
The following table sums up system performance in a time stamping solution:
Maximum number of BMX ERT 1604 T modules in a BMX ERT 1604 T 9 per drop
Modicon M580 local drop.
Maximum number of BMX ERT 1604 T modules in a BMX ERT 1604 T 9 per drop
Modicon M340 local drop.
Maximum number of devices in an Ethernet remote I/O BMX ERT 1604 T 9 per drop (1.)
drop.
BM• CRA 312 10 1 per drop
Maximum number of BME NUA 0100 modules in a BME NUA 0100 2 per rack
Modicon M580 local rack.
Maximum number of devices in the drops controlled by the BMX ERT 1604 T 25
same PLC and connected to the Ethernet RIO network.
BM• CRA 312 10 31(2.)
Maximum number of sources of events polled by OFS. A BME P58 •••• CPU, BMX 500 sources per
ERT 1604 T module, or BM• second (3.)
CRA 312 10 module count as
1 source
Maximum discrete I/Os per 2500 (2.)
PLC
OFS polling rate. Minimum OFS polling rate 250 ms
value
46 EIO0000001217.08
Performances
BME NUA 0100 polling rate. Minimum BME NUA 0100 250 ms
polling rate value
Maximum number of discrete inputs (and outputs) For all the BMX ERT 1604 T 400 discrete
monitored by the PLC for all the time stamping modules. inputs (2.)
1. A BMX ERT 1604 T module contains 4 expert channels. A Modicon X80 drop supports a maximum of 36
expert channels, so it supports a maximum of 9 x BMX ERT 1604 T modules if there is no BMX EHC 0•00
counting module in the drop.
2. The maximum value depends on the global system performance; it is not an absolute value and has to be
balanced.
3. The maximum value depends on the CPU capacity and usage of the PC that hosts OFS and I/O server. It is
recommended to avoid installation of other CPU or memory consuming applications on this PC.
NOTE: OFS Time Stamp Helper, page 83 is a dedicated tool provided to help the user
to define the system capacity based on the events and devices included.
Maximum number of transitions 10000 transitions per Recommendation for a single I/O server.
per second. second
Maximum number of transitions on 3000 transitions per second Recommendation for a single I/O server.
variables mapped on time
stamped events per second.
NOTE: Split the devices between different I/O servers when the application needs to be
scaled up.
EIO0000001217.08 47
Design and Configuration Phases
What’s in This Part
Selecting the Time Stamping Module.........................................49
Selecting and Setting Time Synchronization...............................51
Activating System Time Stamping Service .................................59
Selecting and Configuring the Variables to Time Stamp ..............67
Selecting the Communication Parameters .................................82
Setting AVEVA Plant SCADA Parameters ..................................86
Introduction
This part presents the phases required to design and configure the system time stamping
from service activation to diagnostic.
48 EIO0000001217.08
Selecting the Time Stamping Module
Overview
This chapter describes the modules available to provide the desired time stamp resolution.
Time Resolution
Overview
Time resolution is a key point in selecting the time stamped event sources.
Time and time stamp resolution are to be understood as follows:
Internal module time Absolute time resolution depending on the module internal clock time management.
resolution:
Time stamp resolution Depends on the module internal Input (and Output) event detection cycle.
between 2 events in the
same module:
Time stamp resolution Time resolution between 2 source modules depends on the time source (external
between 2 events on clock) tolerance, each module internal time resolution, and the network
different source modules transmission delay for modules synchronized through NTP.
of the same family (BMX
ERT 1604 T or BM• CRA
312 10):
Time stamp resolution Same constraints as with 2 source modules of the same family, except that the time
between 2 events on stamp resolution will be the one of the less accurate module.
different source modules
of a different family (BMX
ERT 1604 T and BM•
CRA 312 10 or BME P58
••••):
EIO0000001217.08 49
Selecting the Time Stamping Module
Time stamp resolution n x BMX ERT 1604 T (1.) • 2 ms with IRIG-B NOTE: Time stamp
between 2 events on 004/5/6/7 time code
resolution is given if each
different source modules (GPS) BMX ERT 1604 T module
• 4 ms with DCF77 is supplied with the same
time code time source.
n x BM• CRA 312 10 (1.) 10 ms
50 EIO0000001217.08
Selecting and Setting Time Synchronization
Overview
This chapter describes the available time sources, the time synchronization principles, and
corresponding software settings.
EIO0000001217.08 51
Selecting and Setting Time Synchronization
The system, page 35 NTP server An NTP server is connected on the control Ethernet network (if
contains only BME P58 •••• such a network is available on the PLC) or on the Ethernet
time stamping modules. remote I/O network. In the case of a flat architecture, page 38,
the CPU can be set as an NTP server.
52 EIO0000001217.08
Selecting and Setting Time Synchronization
IRIG-B 004/5/6/7 or The hardware NTP server (high accuracy) provides the time
DCF77 time code reference to the time sources.
from an NTP server
(dedicated high In this case:
accuracy hardware • OFS and SCADA synchronize their time on the NTP
like a Gorgy Timing server.
LEDI Network NTP
Server or equivalent) • The BME P58 •••• CPU synchronizes its clock on the same
NTP server.
• The BM• CRA 312 10 modules synchronize their clock on
the same NTP server.
• The BMX ERT 1604 T modules synchronize their clock on
the IRIG-B 004/5/6/7 or DCF77 output of the same NTP
server.
NOTE: As all the time sources are synchronized on the
dedicated high accuracy hardware NTP server, a GPS
receiver is not mandatory for synchronization.
An NTP server has to be available on the Ethernet network accessible from the
BME P58 •••• CPU and set in Control Expert.
NOTE: For more details on NTP server configuration in a Modicon M580
CPU, refer to chapter NTP Tab in Modicon M580, Hardware, Reference
Manual.
Internal NTP server (CPU NTP tab configured as an NTP server).
The CPU internal clock is used as reference clock. This setting can only be used in
the case of a flat architecture, page 38.
NOTE: For more details on NTP server configuration in a Modicon M580
CPU, refer to chapter NTP Tab in Modicon M580, Hardware, Reference
Manual.
BMX ERT 1604 T GPS time source (IRIG-B 004/5/6/7 or DCF77 time code).
Radio receiver time source (DCF77 time code) based on a radio transmitter based
in Germany near Frankfurt with an action range mainly limited to Europe.
NOTE: For more details on clock source connection on the BMX ERT 1604 T
module, refer to chapter Physical Implementation in Modicon X80,
BMXERT0604T Time Stamp Module, User Guide.
EIO0000001217.08 53
Selecting and Setting Time Synchronization
Dedicated high accuracy hardware like a Gorgy Timing LEDI Network NTP
Server or equivalent that provides IRIG-B 004/5/6/7 or DCF77 time code outputs.
An NTP server has to be available on the Ethernet network accessible from the
BM• CRA 312 10 module and set in Control Expert.
NOTE: With a Modicon M580 CPU, NTP server is configured in the CPU
embedded Ethernet ports parameters. Refer to topic NTP Tab in Modicon
M580, Hardware, Reference Manual.
NOTE: With a Modicon Quantum CPU, NTP server is configured in the CRP
communication head module on the local rack. Refer to chapter NTP
Configuration in Control Expert in Quantum EIO, Remote I/O Modules,
Installation and Configuration Guide.
External time source: The CPU is set as an NTP client and synchronizes its internal clock on an Ethernet
NTP server usually located on the control network.
Internal time source: The CPU is set as an NTP server. It uses its internal clock and acts as an Ethernet
NTP server for devices connected to the Ethernet network on which the CPU is
connected.
54 EIO0000001217.08
Selecting and Setting Time Synchronization
Step Action
1 In the Project Browser, double-click Project > Configuration > PLC bus.
2 In the PLC bus dialog box, double-click the drawing with 3 Ethernet ports in the middle of the CPU.
5 In the NTP Server Configuration field, enter the NTP server IP addresses and set the polling period.
NOTE: The polling period represents the time elapsed before internal clock resynchronization with
the Ethernet NTP server.
Step Action
1 In the Project Browser, double-click Project > Configuration > PLC bus.
2 In the PLC bus dialog box, double-click the drawing with 3 Ethernet ports in the middle of the CPU.
EIO0000001217.08 55
Selecting and Setting Time Synchronization
Step Action
56 EIO0000001217.08
Selecting and Setting Time Synchronization
Select the clock type by setting the Clock SYNC source value:
EIO0000001217.08 57
Selecting and Setting Time Synchronization
58 EIO0000001217.08
Activating System Time Stamping Service
Overview
This chapter describes the actions performed in order to activate the system time stamping
in Control Expert and OFS software.
Step Action
2 Create an application in Control Expert with time stamping modules. Select the appropriate time
stamping modules, page 49.
3 Set the time stamping module time sources parameters, page 51.
Project Settings
In Control Expert software, to allow system time stamping, adjust the Project Settings by
clicking Tools > Project Settings > General.
EIO0000001217.08 59
Activating System Time Stamping Service
60 EIO0000001217.08
Activating System Time Stamping Service
In Time field, set the time stamping mode and time zone:
Time Stamping Mode System Select System to enable system time stamping.
Max events stored See Only available for System Time Stamping, this value (between 0 and 32000)
description. defines the maximum number of time stamping events that can be stored in
the PLC global event buffer. See the PLC > Memory Consumption... to
know the memory size used and refine this value if needed.
Custom TimeZone Enabled or Gives the possibility to define your own time zone. If checked the option:
Disabled
• Time Zone in UTC time cannot be selected.
• Time Offset can be adjusted.
• Automatically adjust clock for daylight saving can be configured.
Allows you to select the wanted time zone in the list of standard time zone.
Allows you to add an offset to the current local time between -1439...1439
minutes.
Automatically adjust (1.) Can be selected if Custom TimeZone is enabled only.
clock for daylight
saving Enabled: In the START Daylight Saving and END Daylight Saving fields,
enter the month, day of the week, occurrence range, hour, minute, second,
and offset from the respective dropdown lists.
Disabled (by default): The START Daylight Saving and END Daylight
Saving fields are disabled because their times are automatically changed in
the spring and fall every year.
NOTE: Automatic clock adjust for daylight saving change is not
implemented on Modicon Premium range. You are advised not to
activate this useless feature (No internal or external action is performed
when this function is activated).
(1.) START Daylight Saving
(1.) END Daylight Saving
1. No specific value required for system time stamping, depends on Custom TimeZone subfield value.
EIO0000001217.08 61
Activating System Time Stamping Service
Time stamped events are marked in UTC values and the time zone settings allow to convert
GPS local time to UTC values in BMX ERT 1604 T.
NOTE: When the source of time stamped events is a BM• CRA 312 10 module, the time
zone settings have no influence on time stamped events (the module uses UTC time
from the NTP server) but the time zone settings are used for diagnostic purpose (local
time is needed).
NOTE: The daylight saving time settings are not applicable to the BMX ERT 1604 T
module because this module gets the daylight saving time switching information from
the external clock (DCF77 or IRIG-B 004/5/6/7 time code). IRIG-B 004/5/6/7 has to
support IEEE-1344 extensions (2004 update) or IEEE C37.118 in order to provide the
Daylight Saving Time information.
OFS Settings
Features
The custom OPC property is linked to OPC items with the following definition:
• Description: time stamped event support
• PropertyId: 5012
• Comment: true if the variable is configured as time stamped event
• Type: VT_BOOL
• Values: 1 if the item is a time stamped event and 0 if not
NOTE: For Control Expert variables configured as TS events, the property value is
set to 1 and used by the OPC client to determine which items can be added in the
event group.
62 EIO0000001217.08
Activating System Time Stamping Service
To reach the time stamping configuration in OFS Configuration tool, click Devices >
Device overview > Communication information > Time-Stamped Events:
EIO0000001217.08 63
Activating System Time Stamping Service
Service support Enabled When checked, the time stamped events service is enabled:
• Time stamped items can be added to the event group.
• Access to event sources buffer is performed at the per-family
Polling Rate (all event sources linked to the current PLC are
accessed).
BMX\BME-CRA Polling 1000 Polling rate for event read request sent to the BM• CRA 312 10.
Rate (ms)
Rate at which ReadEvent requests are sent on a BM• CRA 312 10
event channel.
BMX-ERT Polling Rate 1000 Polling rate for event read request sent to the BMX ERT 1604 T.
(ms)
Rate at which ReadEvent requests are sent on a BMX ERT 1604 T
event channel.
64 EIO0000001217.08
Activating System Time Stamping Service
Setting Description
Polling of buffer The polling rate for event read requests handled by the BME NUA 0100.
(ms)
Valid settings range from:
• 250 ms minimum, to
• 5000 ms maximum
in increments of 250 ms.
NOTE: The maximum number of source time stamped variables in Control Expert is
5000.
NOTE: If the M580 local rack includes two BME NUA 0100 modules, source time
stamping can be activated by only one module.
EIO0000001217.08 65
Activating System Time Stamping Service
To be recognized by the BME NUA 0100, the Alias variables need to be embedded in the
data dictionary.
BOOL or EBOOL Alias variables and their corresponding "Alias of" variables share both the
same logical address inside M580 memory and the same EventID in the M580 time
stamping buffer. Source time stamping is managed only on the Alias and not on "Alias of"
variable. In other words, you need to subscribe the Alias variable (OPC UA node) in the
OPC UA client to be able to receive the source time stamping from the device instead of
from the BME NUA 0100 module.
Because neither the BOOL or EBOOL "Alias of" variable is seen as being at source time
stamped by the BME NUA 0100 firmware, the Alias must be embedded in data dictionary. In
that case, you need to add the Alias variable as a monitored item in an OPC UA
subscription, in order to achieve source time stamping set by the device.
66 EIO0000001217.08
Selecting and Configuring the Variables to Time
Stamp
Overview
This chapter presents how to configure and activate the time stamping variables.
NOTE: All variables that need to be time stamped as well as time stamping global
parameters need to be activated in Control Expert.
Variables Usage
System Performance
Time stamping events usage has to be restricted to real needs. Each time stamped event
adds additional communication to the system and thus limits the global system bandwidth.
System performance is therefore limited by intensive time stamping variables usage.
Only select the variables that really need to be mapped on time stamped events.
System Limitations
System limitations, page 45 represent the maximum physical limits allowed in the system.
EIO0000001217.08 67
Selecting and Configuring the Variables to Time
Stamp
68 EIO0000001217.08
Selecting and Configuring the Variables to Time
Stamp
USER_TSTAMP DDT
Element Type Description
Value BOOL User event value scanned by the system time stamping.
Bit 6 = ClockFailure
Bit 5 = ClockNotSynchronized.
Bit 4 to 0 = TimeAccuracy
EIO0000001217.08 69
Selecting and Configuring the Variables to Time
Stamp
SecondSinceEpoch UDINT Number of seconds since midnight (00:00:00) 1970/01/01 (UTC time).
FractionOfSecond UDINT This is the fraction of the current second when the value of the time
stamped variable has been determined.
It is the sum of the numerical values assigned to each bit for those bits
which are set to 1:
• 1/21 s is assigned to bit 23
• 1/22 s is assigned to bit 22
• ...
• 1/224 s is assigned to bit 0
NOTE: Bits 31 to 24 are not used
Values Synchronization This state allows a synchronization of the values for example after a SCADA reset.
The system time stamping updates the event buffer of the CPU with the values of
all the user event variables. The time is the time read in the DDT and TimeAccuracy
bit are forced to 11100.
Buffer Full The system time stamping updates the event buffer of the CPU if the current value
Synchronization is different from the last value recorded.The time is the time read in the DDT and
TimeAccuracy bits are forced to 11110.
Limitations
The system time stamping does not check:
• the consistency of the time read in the user event DDT.
NOTE: The time information must be compliant with the time format defined in IEC
61850-7-2 Edition 2.
70 EIO0000001217.08
Selecting and Configuring the Variables to Time
Stamp
• that the interval of time between two user events is greater than 1 ms. You have to
respect SCADA limitation.
The system time stamping does not manage:
• the time catch up on user events. You need to provide ascending time.
• the following TimeQuality bits:
◦ bit 7: LeapsSecondsKnown
◦ bit 6: ClockFailure
◦ bit 5: ClockNotSynchronized.
You need to manage these 3 bits.
Step Action
1 Buffer settings, page 71: Those parameters are predefined, no action required.
EIO0000001217.08 71
Selecting and Configuring the Variables to Time
Stamp
Step Action
1 Buffer settings, page 73: Those parameters are predefined, no action required.
72 EIO0000001217.08
Selecting and Configuring the Variables to Time
Stamp
EIO0000001217.08 73
Selecting and Configuring the Variables to Time
Stamp
The 16 discrete inputs are logically grouped in 4 channels (4 inputs per channel group):
Channels 4, 8 and 12: Time stamping function is user defined in the Function drop-down list box for this
channel.
74 EIO0000001217.08
Selecting and Configuring the Variables to Time
Stamp
• Dechatter filter
For each of the 16 discrete channel, set:
• Channel x used (Channel use is enabled or disabled)
• Channel x debounce time
NOTE: For time stamping function, channel edge event detection is set on Both edges
for each BMX ERT 1604 T discrete input and cannot be modified.
NOTE: More details on BMX ERT 1604 T variable settings are provided in the Modicon
X80, BMXERT0604T Time Stamp Module, User Guide, page 11. The variables are
automatically created in the Data Editor with an ID associated.
EIO0000001217.08 75
Selecting and Configuring the Variables to Time
Stamp
Example of prefixed variables in a BMX ERT 1604 T located on the local rack in position 1:
The SOE_UNCERTAIN parameter needs to be activated by entering its address in the Data
Editor. To activate it proceed as follows:
1. Open the Data Editor.
2. Select the next empty row.
3. Select the Address parameter.
4. Enter %IWr.m.0.3.7, where r represents the rack number and m represents the BMX
ERT 1604 T module position in the rack.
5. Enter a name for the variable created (for example: SOE_UNCERTAIN_ERT as shown
in the following picture) and validate. The variable type is automatically set to BOOL,
time stamping field is set to Both Edges and a unique time stamping ID created.
76 EIO0000001217.08
Selecting and Configuring the Variables to Time
Stamp
Example of activated time stamped variables that appear in the Data Editor:
EIO0000001217.08 77
Selecting and Configuring the Variables to Time
Stamp
Variables Mapping
For a BMX ERT 1604 T module, 2 cases are considered:
78 EIO0000001217.08
Selecting and Configuring the Variables to Time
Stamp
• The module is located in the PLC local rack: Mapping is the topological address of the
BMX ERT 1604 T input time stamped.
• The module is located in a Modicon X80 drop: Mapping is provided by device DDT, the
I/O time stamped module location is used (for example \2.1.0.1 means: bus 2 (RIO),
drop 1, rack 0, slot 1).
An alias can also be associated with a time stamped variable in device DDT.
For more details on BMX ERT 1604 T module variables, refer to BMX ERT 1604 T Software
Implementation part of Modicon X80, BMXERT0604T Time Stamp Module, User Guide,
page 11.
Step Action
1 Buffer settings, page 79: Those parameters are predefined, no action required.
2 Activate, page 80 each time stamped variable located in discrete I/O modules.
EIO0000001217.08 79
Selecting and Configuring the Variables to Time
Stamp
To set a channel time stamping parameter for the discrete module chosen, proceed as
follows:
1. In the Data Editor, click the + beside the implicit device DDT name that corresponds to
the discrete module you want to set in order to display the module elements.
2. Click the + beside DIS_CH_IN or DIS_CH_OUT elements to display each channel
parameter.
3. Click the + beside the channel to be set.
4. In the VALUE parameter line, double-click in the Time stamping cell to set the event
detection edge. Selecting the edge enables the channel for time stamping.
NOTE: Do not change the Modicon X80 drop SOE_UNCERTAIN parameter time
stamping condition. It is activated and set to Both Edges by default.
80 EIO0000001217.08
Selecting and Configuring the Variables to Time
Stamp
Variables Mapping
As the module is located in a Modicon X80 drop, mapping is provided by device DDT, the I/O
time stamped module location is used (for example \2.1\0.1 means: bus 2 (RIO), drop 1,
rack 0, slot 1).
An alias can also be associated with a time stamped variable in device DDT.
EIO0000001217.08 81
Selecting the Communication Parameters
Overview
This chapter describes how to set the communication parameters once the number of
events detected is properly estimated.
Capability Checks
Requirements
The normal average number of time stamped events detected per second in the installation
needs to be estimated by the user in order to define the communication parameters.
Based on the normal number of events, the user sets:
• OFS polling rate, page 84
• OFS client alive timeout, page 85
• BME NUA 0100 polling rate, page 64
OFS Performance
OFS communicates with several PLCs and devices. The assumption is that 50% of the PC
resources are used by OFS and 50% are used by AVEVA Plant SCADA.
A dedicated tool (OFS TimeStamp Helper) is used to estimate the event detection
capability depending on the polling rate chosen. This tool is located on the OFS installation
DVD.
82 EIO0000001217.08
Selecting the Communication Parameters
EIO0000001217.08 83
Selecting the Communication Parameters
84 EIO0000001217.08
Selecting the Communication Parameters
• PLC local BMX ERT 1604 T modules and Modicon X80 Ethernet remote I/O BMX ERT
1604 T modules.
• Modicon X80 Ethernet remote I/O BM• CRA 312 10 modules.
NOTE: OFS polling rate setting has to be validated using the OFS Time Stamp Helper
Tool in order to check that the normal average number of time stamped events
estimated by the user can be read and that the capability of the system is not exceeded,
page 82.
EIO0000001217.08 85
Setting AVEVA Plant SCADA Parameters
Overview
This chapter describes the parameters to configure in AVEVA Plant SCADA to visualize the
sequence of events and quality parameters.
86 EIO0000001217.08
Setting AVEVA Plant SCADA Parameters
EIO0000001217.08 87
Setting AVEVA Plant SCADA Parameters
88 EIO0000001217.08
Setting AVEVA Plant SCADA Parameters
EIO0000001217.08 89
Setting AVEVA Plant SCADA Parameters
90 EIO0000001217.08
Setting AVEVA Plant SCADA Parameters
EIO0000001217.08 91
Setting AVEVA Plant SCADA Parameters
92 EIO0000001217.08
Commissioning and Operation Phases
What’s in This Part
Diagnostic ...............................................................................94
Behavior on Operating Modes................................................. 111
Behavior on Time Synchronization .......................................... 124
Introduction
This part presents the time stamping diagnostic, the behavior on operating modes and time
synchronization.
EIO0000001217.08 93
Diagnostic
Diagnostic
What’s in This Chapter
Introduction ............................................................................94
PLC View ................................................................................95
OFS View................................................................................97
BME NUA 0100 View ...............................................................99
AVEVA Plant SCADA View ..................................................... 101
Hardware Diagnostic.............................................................. 105
Overview
This chapter describes the available diagnostic views, the diagnostic information provided
by the system and the components diagnostic.
Introduction
Diagnostic Data
Diagnostic data provide information on:
• Quality of the time stamping for each event.
• Time and buffers management.
• Communication between each time stamping source and client.
Diagnostic information is displayed on:
• AVEVA Plant SCADA
• OFS
• BME NUA 0100
• PLC variable viewers
• Time stamping source module (hardware)
Diagnostic Sources
At source time stamping diagnostic information is provided by:
94 EIO0000001217.08
Diagnostic
Time stamping event sources Buffer diagnostic Viewers of PLC variables: Device DDT
or IODDT (SCADA, Control Expert...).
Time valid, synchronized
Time Quality
PLC View
Overview
Diagnostic data on time stamping modules and events quality can be accessed on the PLC.
The following topics present the data that can be accessed through the PLC interface
(Control Expert software).
EIO0000001217.08 95
Diagnostic
96 EIO0000001217.08
Diagnostic
For details on those device DDTs, refer to chapter Device DDT Names for Quantum EIO
Remote I/O Adapter Modules in Quantum EIO, Remote I/O Modules, Installation and
Configuration Guide, page 11.
OFS View
Introduction
OFS provides diagnostic data on connection status of the event sources and buffer level.
EIO0000001217.08 97
Diagnostic
NOTE: Those 2 items have the same feature, but it is recommended to use
#PLCQualStatus item because:
• It optimizes the communication when used in groups with different periods.
• It automatically uses #PLCQualStatus2 item on devices that are not the PLC.
Those items can return one of the following values:
QUAL_UNCERTAIN No communication with the device since less than DEVICE_TO milliseconds.
(value 0040 hex):
For more details on the time stamping event sources diagnostic items, syntax and content,
refer to sections Specific Items and Time Stamped Events Configuration in OPC Factory
Server User Manual, page 11.
98 EIO0000001217.08
Diagnostic
EIO0000001217.08 99
Diagnostic
100 EIO0000001217.08
Diagnostic
EIO0000001217.08 101
Diagnostic
(Quality)
Clock not reliable, or initial Time Uncertain 011x xxxx x xxxx can be equal to:
clock synchronization not • 0 1010: Time resolution is 1 ms
done
• 1 1110: Buffer full
• 1 1100: Values synchronization
• 1 1101: I/O channel error
Clock not synchronized Clock Not Synchronized 001x xxxx x xxxx can be equal to:
• 0 1010: Time resolution is 1 ms
• 1 1110: Buffer full
• 1 1100: Values synchronization
• 1 1101: I/O channel error
Clock OK + I/O channel Time Good 0001 1101 0001 1101 value meaning:
error • 000: Clock OK
• 1 1101: I/O channel error
Clock OK + Values Time Uncertain 0001 1100 0001 1100 value meaning:
synchronization (TSInit, • 000: Clock OK
page 113 , page 120)
• 1 1100: Values synchronization
Clock OK + Buffer full Time Uncertain 0001 1110 0001 1110 value meaning:
(Invalid, page 117) • 000: Clock OK
• 1 1110: Buffer full
102 EIO0000001217.08
Diagnostic
(Quality)
Clock OK + Time catch up Time Uncertain 0001 1011 0001 1011 value meaning:
mode (ClockInSync, page • 000: Clock OK
124)
• 1 1011: Time catch up
Normal operating condition Time Good 0000 1010 0000 1010 value meaning:
• 000: Clock OK
• 0 1010: Time resolution is 1 ms
NOTE: Some detected errors cannot be displayed simultaneously and if this situation
occurs, they will be displayed respecting the following precedence order:
1. I/O channel error (highest priority)
2. Invalid or TSInit
3. ClockInSync
EIO0000001217.08 103
Diagnostic
104 EIO0000001217.08
Diagnostic
Hardware Diagnostic
BME P58 xxxx Module View
CPU front view:
1 LED display
2 MAC address
3 mini-B USB connector
4 SERVICE port
5 DEVICE NETWORK port
5 DEVICE NETWORK port
5 SD memory card slot
5 SD status LED
LED display:
EIO0000001217.08 105
Diagnostic
The following table describes the LED display activity meaning for diagnostic purpose:
• steady green:
EtherNet/IP connection
established
recoverable detected HALT any pattern • steady red: duplicate
error IP address
106 EIO0000001217.08
Diagnostic
power off –
The following table describes the LED display activity meaning for diagnostic purpose:
EIO0000001217.08 107
Diagnostic
Flashing The module has lost the communication with the PLC CPU.
Quick flashing Module clock synchronization error detected: External time clock is
temporarily unstable but the internal time quality is acceptable.
108 EIO0000001217.08
Diagnostic
1 LED display
2 rotary switches
3 SERVICE port (ETH 1)
4 DEVICE NETWORK port (ETH 2)
5 DEVICE NETWORK port (ETH 3)
LED display:
The following table describes the LED display activity meaning for diagnostic purpose:
valid IP address, but invalid off off flashing off flashing off
configuration
EIO0000001217.08 109
Diagnostic
(1) For more information about the module states, refer to your system hardware reference
manual.
NOTE 1 (STOP state):
• on: An input or output is a detected error that originates in a module, or a channel configuration or a channel
configuration error has been detected.
• off: Operations are normal.
NOTE 2 (RUN state):
• on: External error detected.
• off: External error not detected.
110 EIO0000001217.08
Behavior on Operating Modes
Overview
This chapter describes the system behavior during different operating modes.
The last topic of this chapter is dedicated to various specific operating modes that generate
a simple behavior.
NOTE: In the following chapters, the behavior is described through tables showing
events, time stamps, and time quality sequences. The following list presents some of the
fields shown in tables to describe the SOE sequences and the corresponding fields in
AVEVA Plant SCADA SOE page, page 101:
• Event: Data available in Tag, Name, and Message fields in AVEVA Plant SCADA
SOE display.
• Timestamp: Data available in Date and Time fields in AVEVA Plant SCADA SOE
display.
• TimeQuality attribute: Data available in the highest 8 bits of Quality field in
AVEVA Plant SCADA SOE display, page 102.
Operating Modes
Overview
Time stamped variable value consistency between the process and the SCADA is a key
point in system time stamping solution. To manage that consistency, in addition to the time
stamped transitions flow (regular events flow), the system time stamping solution manages
the report of process values to the SCADA system even when the system is facing operating
modes that differ from the normal operating conditions.
Operating modes that differ from the normal operating conditions:
EIO0000001217.08 111
Behavior on Operating Modes
112 EIO0000001217.08
Behavior on Operating Modes
EIO0000001217.08 113
Behavior on Operating Modes
The following table presents the initial start SOE sequence provided by a BMX CRA 312 10
time stamping module with 3 time stamped inputs and 1 time stamped output:
(0 -> 1)
(1 -> 0)
(1 -> 0)
(0 -> 1)
(1 -> 0)
(0 -> 1)
(1 -> 0)
(1 -> 0)
(0 -> 1)
(0 -> 1)
114 EIO0000001217.08
Behavior on Operating Modes
(1 -> 0)
1. SOE_UNCERTAIN event appears only if events can be lost after power up, start of the module, and start and
connection of the SCADA server. SOE_UNCERTAIN event does not appear for the BMX ERT 1604 T module.
2. The duplicated SOE_UNCERTAIN sequence appears because the SCADA server starts.
EIO0000001217.08 115
Behavior on Operating Modes
(0 -> 1)
(1 -> 0)
(0 -> 1)
(0 -> 1)
(1 -> 0)
(1 -> 0)
(0 -> 1)
(1 -> 0)
1. SOE_UNCERTAIN event appears only if events can be lost after power up and start of the module assuming
that the SCADA server is already started, connected, and operational for communication. SOE_UNCERTAIN
event does not appear for the BMX ERT 1604 T module.
116 EIO0000001217.08
Behavior on Operating Modes
EIO0000001217.08 117
Behavior on Operating Modes
(0 -> 1)
(1 -> 0)
(0 -> 1)
(1 -> 0)
(1 -> 0)
(0 -> 1)
(1 -> 0)
118 EIO0000001217.08
Behavior on Operating Modes
BMX CRA 312 10 Input 1 value change detected, historical takes the current value.
t2 Buffer full detected, no time stamping on this module, last Input 1 value is frozen
(historical).
BMX CRA 312 10 Input 1 value compared with the historical value: 1 to 0 change
detected, storage of the event CRA Input 1 (1 to 0) in the buffer with
TimeQuality = Invalid.
t8 Buffer is not full, normal time stamping mode, Time Resolution = 1 ms.
EIO0000001217.08 119
Behavior on Operating Modes
(0 -> 1)
(1 -> 0)
(0 -> 1)
(0 -> 1)
(1 -> 0)
(0 -> 1)
120 EIO0000001217.08
Behavior on Operating Modes
(0 -> 1)
(1 -> 0)
(1 -> 0)
(0 -> 1)
(1 -> 0)
1. SOE_UNCERTAIN event appears only if events can be lost after start and connection of the SCADA server.
SOE_UNCERTAIN event does not appear for the BMX ERT 1604 T module.
EIO0000001217.08 121
Behavior on Operating Modes
PLC application change: • Same behavior as in the initial start after the
application download, page 113 operating mode.
• Change the time
stamping mode setting
• The time stamping module event buffer is
(Applicative -> System). automatically reset.
• Import a XEF, ZEF,
XHW, or ZHW file.
• Insert a new module
(BM• CRA 312 10 or
BMX ERT 1604 T).
• Copy / Paste a new
module (BM• CRA 312
10 or BMX ERT 1604 T).
• Replace a BMX CRA
312 00 by a BMX CRA
312 10module.
Replace a BMX ERT 1604 T • Same behavior as in the initial start after the
application download, page 113 operating mode.
I/O channel error on a discrete • Diagnose the PLC parameters, page 95 (for example,
time stamped I/O. %MWr.m.c.2 for a BMX ERT 1604 T module).
122 EIO0000001217.08
Behavior on Operating Modes
PLC run to stop / stop to run PLC run to stop transition Behavior depends on the time stamping component:
transition while the system (behavior in stop state). • BME P58 ••••: Stop time stamping.
time stamping is running.
• BMX ERT 1604 T: Normal time stamping.
• BM• CRA 312 10: Discrete I/O type:
◦ Input: Inputs are still time stamped.
◦ Output: Detection and time stamping of the
output image (in case of Control Expert
animation table evolutions).
NOTE: The BM• CRA 312 10 module does
not time stamp outputs fallback state (not
available in the output image) on PLC run to
stop transition.
PLC stop to run transition. Behavior depends on the time stamping component:
• BME P58 ••••: Begin time stamping.
• BMX ERT 1604 T: Normal time stamping.
• BM• CRA 312 10: Normal time stamping.
EIO0000001217.08 123
Behavior on Time Synchronization
Overview
This chapter describes the time synchronization mechanism.
Time Synchronization
Time Synchronization on System Start
On system start, the time stamping modules begin to time stamp events without waiting for
the initial time synchronization. To signal that the first synchronization has not been done
yet, page 113 to the SCADA server, the following parameters of TimeQuality are set to 1:
• ClockNotSynchronized
• ClockFailure
Once the time stamping module time is synchronized, ClockNotSynchronized and
ClockFailure parameters are set to 0 in TimeQuality.
124 EIO0000001217.08
Behavior on Time Synchronization
The following figure illustrates the synchronization mechanism in a BMX CRA 312 10
module when the internal time is ahead of external clock time (5 ms detection cycle and 1
ms incrementation step):
The following table presents the SOE sequence shown in previous figure provided by a
BMX CRA 312 10 time stamping module with 1 time stamped input:
EIO0000001217.08 125
Behavior on Time Synchronization
CRA INPUT 1 1 102 93 ClockInSync Internal Time (n) <= Time Stamp (n-1)
CRA INPUT 1 0 103 98 ClockInSync Internal Time (n) <= Time Stamp (n-1)
CRA INPUT 1 1 104 103 ClockInSync Internal Time (n) <= Time Stamp (n-1)
CRA INPUT 1 0 108 108 Time Resolution = 1 Internal Time (n) > Time Stamp (n-1)
ms
(1 -> 0) => Time Stamp (n) = Internal Time (n)
In this example: Catch-up time = (100 - 86) x 5 / (5 - 1). Catch-up time = 17.5 ms (around 4
detection cycles of 5 ms).
NOTE: The following list presents some fields available in previous table and their
corresponding fields in AVEVA Plant SCADA SOE page, page 101:
• Event: Data available in Tag, Name and Message fields in AVEVA Plant SCADA
SOE display.
• Timestamp: Data available in Date and Time fields in AVEVA Plant SCADA SOE
display.
• TimeQuality Attributes: Data available in Quality and TSQuality fields in
AVEVA Plant SCADA SOE display.
126 EIO0000001217.08
Behavior on Time Synchronization
EIO0000001217.08 127
How to Interface with a 3rd Party Client
SCADA
What’s in This Part
3rd Party OPC DA Client SCADA ............................................ 129
Introduction
This part presents the OPC DA sequences needed to interface with system time stamping.
128 EIO0000001217.08
3rd Party OPC DA Client SCADA
Overview
This chapter describes the steps that an OPC DA (version 2.04 or later) client needs to
follow in order to operate the system time stamping solution with OFS. It is intended for OPC
client developers.
Event Group
A particular OPC group named: ##TSEventsGroup## needs to be created to manage time
stamped variables. This group is referenced as Events Group in this section.
Each OPC client can only create 1 OPC events group.
This Events Group complies with the following rules:
• If the Service support tab is not set to Available, page 62 for the OFS alias of an item,
that item is not added and an E_FAIL error detected message is returned.
• Items for which the Time-stamped Event Support custom property, page 62 is set to 1
can be added to the Events Group.
Items for which the Time-stamped Event Support custom property, page 62 is set to 0
can also be added to the Events Group but a message is displayed in OFS diagnostics
window (Example of message: Item ‘myvar’ has not time-stamped property set; it will be
ignored).
EIO0000001217.08 129
3rd Party OPC DA Client SCADA
• The same item can not be added more than once in the Events Group otherwise an
OPC_E_DUPLICATE_NAME error detected message is returned.
• Items associated to a same OFS alias cannot be added in several client Events Group;
otherwise an E_FAIL error detected message is returned.
• OFS specific items can not be added in the Events Group; otherwise an E_FAIL error
detected message is returned.
• If one of the following operations is performed, an E_FAIL error detected message is
returned immediately:
◦ IOPCGroupStateMgt::SetName()
◦ IOPCGroupStateMgt::CloneGroup()
◦ Any IOPCSyncIO method
◦ Any IOPCSyncIO2 method
NOTE: A standard OPC group cannot be renamed ##TSEventsGroup## .
For more details, refer to topic Time Stamped Events Configuration in OPC Factory Server
User Manual, page 11.
Specific Items
NOTE: #TSEventItemsReady item has to be placed in a fast update rate group (200
ms).
Operation Steps
Required Steps
Step Action
4 Add the time stamped variables in the group (for example myAlias!eventVar1) as an active
OPC item.
5 Activate the ##TSEventsGroup##.
130 EIO0000001217.08
3rd Party OPC DA Client SCADA
NOTE: When activating the ##TSEventsGroup## , OFS starts polling all event
sources configured for myAlias. On group deactivation or removal, the polling is
stopped.
NOTE: When an event value is notified to an inactive item, that event value is lost.
Adding inactive items to the active ##TSEventsGroup## is not recommended.
Optional Steps
On OPC client initial start, it may be needed to initialize the cache values of the SOE viewer
or alarm system with current process values.
To force the event source to provide current process values, proceed with the following
steps during configuration (described in previous topic):
Step Action
1. The return code of the OPC write operation is always S_OK; it means that the synchro value order has been
taken into account by OFS. OFS manages the fact of sending this order to each time stamping module.
For more details, refer to topic Specific Item in OPC Factory Server User Manual, page 11.
Optional Functionalities
OPC Item Property 5012
As described in the chapter OFS settings, page 62, this OPC item property can be read
during a browse operation to discover if a variable is configured as a time stamp variable in
Control Expert application.
Time stamp variables can be added to ##TSEventsGroup##. For more details, refer to
topic Time Stamped Events Configuration.
EIO0000001217.08 131
3rd Party OPC DA Client SCADA
Value
Value is the event value (Value field in the event data format, page 140) converted to VT_
BOOL.
Time
Time is the event time stamp (DateAndTime field in the event data format, page 140)
converted to FILETIME.
132 EIO0000001217.08
3rd Party OPC DA Client SCADA
The following conversion is applied to the time stamp: pftTimeStamps = 10 000 000 *
(DateAndTime.SecondSinceEpoch + 11 644 473 600 + (DateAndTime.
FractionOfSecond * 2 power –24))
NOTE: If the Quality of an event indicates a ClockFailure value, the Time field is
patched by OFS with the local time of the OFS machine.
Quality
Quality is a WORD and it is the combination of the event time quality and standard OPC
quality.
Quality format:
• Byte 0: OPC Quality
• Byte 1: TimeQuality (TimeQuality field in the event data format, page 140).
OPC_Quality value:
• OPC_QUALITY_BAD or QUAL_CONFIGURATION_ERROR (04 hex): A configuration error
is detected on the item (unknown event source for example)
• OPC_QUALITY_GOOD (C0 hex): Normal working condition.
H1 0 TimeQuality1 T1
H1 1 TimeQuality2 T2
H2 0 TimeQuality3 T3
H1 0 TimeQuality4 T4
H2 1 TimeQuality5 T5
EIO0000001217.08 133
Troubleshooting
What’s in This Part
Troubleshooting SOE Page in AVEVA Plant SCADA................. 135
134 EIO0000001217.08
Troubleshooting SOE Page in AVEVA Plant SCADA
Step Action
2 Check in the hardware alarms and verify that your client is connected to the alarm server (a
detected error is displayed when the alarm server is not connected).
EIO0000001217.08 135
Troubleshooting SOE Page in AVEVA Plant SCADA
Step Action
3 Verify that you did not deactivate the cluster for this client. More details on [Client]Cluster
parameter are provided in the Parameters section of AVEVA Plant SCADA User Guide or
AVEVA Plant SCADA Help, page 11.
4 Verify that you are logged in with the appropriate level of privileges.
6 Try to decrease the requested range by using the filter capability (use filter to request events for
the last hour or for a particular tag for example).
7 Try to increase the request time-out for all alarm servers or for a particular alarm server:
• Request time-out parameter for all alarm servers:
[ALARM]
ClientRequestTimeout = xxx
• Request time-out parameter for a particular alarm server, where <Cluster> is the name of
the cluster and <ServerName> is the name of the alarm server:
[ALARM.<Cluster>.<ServerName>]
ClientRequestTimeout = xxx
More details on ClientRequestTimeout parameter are provided in the following pages, page
138.
136 EIO0000001217.08
Troubleshooting SOE Page in AVEVA Plant SCADA
Step Action
3 Try to decrease the requested range by using the filter capability (use filter to request events for
the last hour or for a particular tag for example).
EIO0000001217.08 137
Troubleshooting SOE Page in AVEVA Plant SCADA
138 EIO0000001217.08
Appendices
What’s in This Part
Event Format......................................................................... 140
EIO0000001217.08 139
Event Format
Event Format
What’s in This Chapter
Event Time Stamp Entry ......................................................... 140
Overview
This chapter describes the time stamping event time stamp data format.
Value Byte 1
140 EIO0000001217.08
Event Format
TimeQuality Byte 11
Value Parameter
Bit 0 defines the value of the variable after change detection:
• 0: Falling edge
• 1: Rising edge
Event ID Parameter
The variable management assigns a unique value to each time stamped event (including
SOE_UNCERTAIN event).
DateAndTime Parameter
Defines the date and time of the variable change detection.
The following table describes the DataAndTime parameter format:
SecondSinceEpoch INT32U Number of seconds since midnight (00:00:00) 1970/01/01 (UTC time).
(0...MAX)
FRACT_SEC_1 B15-B8
EIO0000001217.08 141
Event Format
2- 2- 2- 2- 1- 1- 1- 1- 1- 1- 1- 1- 1- 1- 9 8 7 6 5 4 3 2 1 0
3 2 1 0 9 8 7 6 5 4 3 2 1 0
TimeQuality Parameter
The following table describes the TimeQuality parameter format:
142 EIO0000001217.08
Event Format
EIO0000001217.08 143
Glossary
H
HMI:
Human Machine Interface. An HMI is a device that displays process data to a human
operator, who in turn, uses the HMI to control the process.
An HMI is typically connected to a SCADA system to provide diagnostics and management
data (such as scheduled maintenance procedures and detailed schematics for a particular
machine or sensor).
Hot Standby:
A high-availability Quantum control system with a first PLC (primary) and a second PLC
(standby) that maintains up-to-date system status. If the primary PLC becomes inoperable,
the standby PLC takes control of the system.
O
OFS :
OPC Factory Server. OFS is a multi-controller data server which is able to communicate
with PLCs in order to supply the OPC clients with data.
OPC DA:
OLE for Process Control Data Access. OPC DA is a group of standards that provides
specifications for communicating real-time data.
OPC:
OLE for Process Control
S
SCADA:
Supervisory Control and Data Acquisition. SCADA usually refers to centralized systems
which monitor and control entire sites or systems spread out over large areas.
AVEVA Plant SCADA provides an SOE view.
For system time stamping, it refers to AVEVA Plant SCADA or 3rd party SCADA with OPC
DA interface.
EIO0000001217.08 145
SOE:
Sequence Of Events
146 EIO0000001217.08
Index communication
parameter ..............................................82
performance...........................................82
3rd party select.....................................................82
SCADA ................................................ 128 components...............................................19
Control Expert...................................... 25, 59
A
D
activate
service ...................................................59 DDT
architecture USER_TSTAMP .....................................68
typical ....................................................33 diagnostic
AVEVA Plant SCADA .................................20 commissioning .......................................94
parameter ..............................................86 hardware.............................................. 105
set parameters .......................................86 PLC .......................................................95
disconnection (SCADA server)
operating mode .................................... 121
B
BME NUA 0100 .........................................24 H
BMECRA31210 .........................................28
clock ......................................................57 hardware
variables ................................................79 diagnostic ............................................ 105
BMEP58xxxx .............................................26
clock ......................................................54
variables ................................................71 I
BMXCRA31210 .........................................28 initial start
clock ......................................................57 operating mode .................................... 113
variables ................................................79 initialize PLC variables
BMXERT1604T..........................................27 operating mode .................................... 121
clock ......................................................56 internal
variables ................................................72 variable ..................................................26
BMXNOC0401...........................................31 I/O channel error
BMXNOE0100 ...........................................31 operating mode .................................... 121
BMXNOE0101 ...........................................31
buffer full
operating mode .................................... 117 M
module
C select.....................................................49
module disconnected from PLC
clock operating mode .................................... 121
BMECRA31210 ......................................57
BMEP58xxxx..........................................54
BMXCRA31210 ......................................57 O
BMXERT1604T ......................................56
commissioning...........................................93 OFS .................................................... 23, 62
diagnostic ..............................................94 setting....................................................84
EIO0000001217.08 147
operating mode........................................ 111 module...................................................49
buffer full .............................................. 117 time source ............................................51
disconnection (SCADA server) .............. 121 time synchronization ...............................51
initial start............................................. 113 variables ................................................67
initialize PLC variables .......................... 121 service
I/O channel error................................... 121 activate ..................................................59
module disconnected from PLC ............. 121 set parameters
PLC run to stop / stop to run .................. 121 AVEVA Plant SCADA ..............................86
PLC start.............................................. 121 setting
power down/up ..................................... 115 OFS.......................................................84
replace module..................................... 121 SOE page
restart SCADA server............................ 120 troubleshooting..................................... 135
operation ...................................................93 synchronization
time ............................................... 22, 124
system time stamping.................................14
P
parameter
AVEVA Plant SCADA ..............................86
T
communication .......................................82 time
performance synchronization .............................. 22, 124
communication .......................................82 time source
PLC select.....................................................51
diagnostic ..............................................95 time stamp
PLC run to stop / stop to run resolution ...............................................49
operating mode .................................... 121 variables ................................................67
PLC start time stamping ............................................14
operating mode .................................... 121 time synchronization
power down/up select.....................................................51
operating mode .................................... 115 troubleshooting
SOE page ............................................ 135
typical
R architecture ............................................33
replace module
operating mode .................................... 121
resolution
U
time stamp .............................................49 USER_TSTAMP ........................................68
restart SCADA server
operating mode .................................... 120
router ........................................................30 V
variable
internal...................................................26
S variables
SCADA .....................................................21 BMECRA31210 ......................................79
3rd party .............................................. 128 BMEP58xxxx..........................................71
select BMXCRA31210 ......................................79
communication .......................................82 BMXERT1604T ......................................72
148 EIO0000001217.08
select.....................................................67
time stamp .............................................67
version ......................................................32
EIO0000001217.08 149
Schneider Electric
35 rue Joseph Monier
92500 Rueil Malmaison
France
+ 33 (0) 1 41 29 70 00
www.se.com