
F O U N D A T I O N
®
OPC Unified Architecture
Specification
Part 10: Programs
Version 1.00
January 29, 2007

OPC Unified Architecture, Part 10 ii Release 1.00
Specification
Type
Industry Standard
Specification
Title: OPC Unified
Architecture
Part 10: Programs
Date: January 29, 2007
Version: Release 1.00 Software MS-Word
Source: OPC UA Part 10 -
Programs 1.00
Specification.doc
Author: OPC Foundation Status: Release

OPC Unified Architecture, Part 10 iii Release 1.00
CONTENTS
Page
FOREWORD.......................................................................................................................
vii
AGREEMENT OF USE ........................................................................................................vii
1 Scope............................................................................................................................ 1
2 Reference documents .................................................................................................... 1
3 Terms, definitions, and abbreviations ............................................................................. 1
3.1 OPC UA Part 1 terms............................................................................................ 1
3.2 OPC UA Part 3 terms............................................................................................ 2
3.3 OPC UA Program terms ........................................................................................ 2
3.3.1 Function.................................................................................................... 2
3.3.2 Program.................................................................................................... 2
3.3.3 Finite State Machine.................................................................................. 2
3.3.4 ProgramType ............................................................................................ 2
3.3.5 Program Control Method............................................................................ 2
3.3.6 Program Invocation ................................................................................... 2
3.4 Abbreviations and symbols.................................................................................... 2
4 Concepts ....................................................................................................................... 3
4.1 General ................................................................................................................ 3
4.2 Programs.............................................................................................................. 4
4.2.1 Overview................................................................................................... 4
4.2.2 Program Finite State Machine.................................................................... 4
4.2.3 Program States ......................................................................................... 5
4.2.4 State Transitions ....................................................................................... 6
4.2.5 Program State Transition Stimuli................................................................ 6
4.2.6 Program Control Methods .......................................................................... 6
4.2.7 Program State Transition Effects ............................................................... 7
4.2.8 Program Result Data ................................................................................. 7
4.2.9 Program Lifetime....................................................................................... 8
5 Model ............................................................................................................................ 8
5.1 General ................................................................................................................ 8
5.2 ProgramType ........................................................................................................ 9
5.2.1 Overview................................................................................................... 9
5.2.2 ProgramType Properties.......................................................................... 10
5.2.3 ProgramType Components ...................................................................... 11
5.2.4 ProgramType Causes (Methods).............................................................. 16
5.2.5 ProgramType Effects (Events) ................................................................. 17
5.2.6 ProgramTransitionAuditEventType........................................................... 19
5.2.7 FinalResultData....................................................................................... 20
5.2.8 ProgramDiagnosticType .......................................................................... 20
Annex A - Program Example............................................................................................... 22
A.1 Overview ............................................................................................................ 22
A.2 DomainDownload Program.................................................................................. 22
A.2.1 DomainDownload States.......................................................................... 22
A.2.2 DomainDownload Transitions................................................................... 23
A.2.3 DomainDownload Methods ...................................................................... 23
A.2.4 DomainDownload Events......................................................................... 24

OPC Unified Architecture, Part 10 v Release 1.00
FIGURES
Figure 1 - Automation Facility Control ...................................................................................
3
Figure 2 - Program Illustration .............................................................................................. 4
Figure 3 - Program States and Transitions ............................................................................ 5
Figure 4 - Program Type....................................................................................................... 9
Figure 5 - Program FSM References................................................................................... 11
Figure 6 - ProgramType Causes and Effects....................................................................... 16
Figure 7 - Program Example 1............................................................................................ 22
Figure 8 – DomainDownload State Diagram ........................................................................ 23
Figure 8 ............................................................................................................................. 23
Figure 9 - DomainDownloadType Partial State Model .......................................................... 28
Figure 10 – Ready To Running Model ................................................................................. 30
Figure 11 - Opening To Sending To Closing Model ............................................................. 31
Figure 12 ........................................................................................................................... 33
Figure 12 - Running To Suspended Model........................................................................... 33
Figure 13 ........................................................................................................................... 34
Figure 13 - Suspended To Running Model........................................................................... 34
Figure 14 ........................................................................................................................... 35
Figure 14 - Running To Halted - Aborted Model ................................................................... 35
Figure 15 - Suspended To Aborted Model............................................................................ 36
Figure 16 ........................................................................................................................... 36
Figure 16 - Running To Completed Model ........................................................................... 37
Figure 17 - Sequence of Operations ................................................................................... 38