8 OPC UA DataTypes

8.1 SpecialEventType

This structure contains a period, a list of time actions, and a priority. It is a means to identify moments in time over one or more days. How the priority is used is defined in section 6.2. The structure is defined in Table 16.

Table 16 – SpecialEventType Structure
NameTypeDescription
SpecialEventTypestructure

Period

SpecialEventPeriodTypeA period where the special event is active

ListOfTimeActions

TimeActionsType[]Points in time where the special event occurs and the associated actions

EventPriority

0:BytePriority of this special event. The lower the number, the higher the priority.

Its representation in the AddressSpace is defined in Table 17.

Table 17 – SpecialEventType Definition
Attribute Value
BrowseNameSpecialEventType
IsAbstractFalse
DescriptionThis structure contains a period, a list of time values, and a priority. It is a means to identify moments in time over one or more days.
References NodeClass BrowseName DataType TypeDefinition Other
Subtype of the 0:Structure
Conformance Units
Scheduler Scheduling Base

8.2 SpecialEventPeriodType

This union contains a calendar entry or a reference to a calendar Object. The union is defined in Table 18.

Table 18 – SpecialEventPeriodType Union
Name Type Description
SpecialEventPeriodTypeunion

CalendarEntry

CalendarEntryTypeA calendar entry

CalendarReference

0:NodeIdReference to a calendar object

Its representation in the AddressSpace is defined in Table 19.

Table 19 – SpecialEventPeriodType definition
Attributes Value
BrowseNameSpecialEventPeriodType
IsAbstractFalse
DescriptionThis union contains a calendar entry or a reference to a calendar object
References NodeClass BrowseName DataType TypeDefinition Other
Subtype of 0:Union
Conformance Units
Scheduler Scheduling Base

8.3 CalendarEntryType

This union that defines various calendar date values. The union is defined in Table 18.

Table 20 – CalendarEntryType Union
Name Type Description
CalendarEntryTypeunion

Date

DateTypeA calendar date, potentially partly defined and repeating

DateRange

DateRangeTypeA range of dates

Its representation in the AddressSpace is defined in Table 19.

Table 21 – CalendarEntryType Definition
Attributes Value
BrowseNameCalendarEntryType
IsAbstractFalse
DescriptionThis union that defines various calendar date values
References NodeClass BrowseName DataType TypeDefinition Other
Subtype of 0:Union
Conformance Units
Scheduler Scheduling Base
Scheduler Calendar Base

8.4 DateType

This structure defines a calendar date. It allows to define a concrete date, e.g. 2022-02-12. By using wildcards, it also allows to define repeating dates, like every Wednesday, every odd day of a month, every 24th of December, every last day of a month in 2023, etc. Its composition is formally defined in Table 22.

Table 22 – DateType Structure
Name Type Description
DateTypestructure

Year

0:UInt16Years based on the Gregorian calendar, 0 is used as “unspecific”.

Month

MonthA specific Gregorian calendar month or relative (e.g. “odd”, “even”)

DayOfMonth

DayOfMonthA specific day of the month or relative (e.g. “last day”). Shall be “unspecific” if DayOfWeek is not “unspecific”.

DayOfWeek

DayOfWeekA specific day of the week. Shall be “unspecific” if DayOfMonth is not “unspecific”.

Its representation in the AddressSpace is defined in Table 23.

Table 23 – DateType Definition
Attribute Value
BrowseNameDateType
IsAbstractFalse
DescriptionThis structure defines a calendar date. It allows to define a concrete date, e.g. 2022-02-12. By using wildcards, it also allows to define repeating dates, like every Wednesday, every odd day of a month, every 24th of December, every last day of a month in 2023, etc.
References NodeClass BrowseName DataType TypeDefinition Other
Subtype of the 0:Structure
Conformance Units
Scheduler Scheduling Base
Scheduler Calendar Base

8.5 Month

This enumeration indicates either a specific Gregorian calendar month, or a relative relationship (“odd”, “even”, and “unspecified”). The enumeration is defined in Table 24.

Table 24 – Month Values
Name Value Description
Unspecified0
January1
February2
March3
April4
May5
June6
July7
August8
September9
October10
November11
December12
Odd13
Even14

Its representation in the AddressSpace is defined in Table 25.

Table 25 – Month Definition
Attribute Value
BrowseNameMonth
IsAbstractFalse
DescriptionThis enumeration indicates either a specific Gregorian calendar month, or a relative relationship (“odd”, “even”, and “unspecified”).
References NodeClass BrowseName DataType TypeDefinition Other
Subtype of the 0:Enumeration
0:HasPropertyVariable0:EnumStrings0:LocalizedText[]0:PropertyType
Conformance Units
Scheduler Scheduling Base
Scheduler Calendar Base

8.6 DayOfMonth

This enumeration indicates specific days of the month by specific date (“1”, “22”, and so on) or by relative position (“last day of month”, “even day of month”, and so on). The enumeration is defined in Table 26.

Table 26 – DayOfMonth Values
Name Value Description
Unspecified0
Day11
Day22
Day33
Day44
Day55
Day66
Day77
Day88
Day99
Day1010
Day1111
Day1212
Day1313
Day1414
Day1515
Day1616
Day1717
Day1818
Day1919
Day2020
Day2121
Day2222
Day2323
Day2424
Day2525
Day2626
Day2727
Day2828
Day2929
Day3030
Day3131
LastDayOfMonth32
OddDayOfMonth33
EvenDayOfMonth34

Its representation in the AddressSpace is defined in Table 27.

Table 27 – DayOfMonth Definition
Attribute Value
BrowseNameDayOfMonth
IsAbstractFalse
DescriptionThis enumeration indicates specific days of the month by specific date (“1”, “22”, and so on) or by relative position (“last day of month”, “even day of month”, and so on).
References NodeClass BrowseName DataType TypeDefinition Other
Subtype of the 0:Enumeration
0:HasPropertyVariable0:EnumStrings0:LocalizedText[]0:PropertyType
Conformance Units
Scheduler Scheduling Base
Scheduler Calendar Base

8.7 DayOfWeek

This enumeration indicates each of the seven days of the week, or “unspecified”. The enumeration is defined in Table 28.

Table 28 – DayOfWeek Values
Name Value Description
Unspecified0
Monday1
Tuesday2
Wednesday3
Thursday4
Friday5
Saturday6
Sunday7

Its representation in the AddressSpace is defined in Table 29.

Table 29 – DayOfWeek Definition
Attribute Value
BrowseNameDayOfWeek
IsAbstractFalse
DescriptionThis enumeration indicates each of the seven days of the week, or “unspecified”.
References NodeClass BrowseName DataType TypeDefinition Other
Subtype of the 0:Enumeration type defined in OPC 10000-5
0:HasPropertyVariable0:EnumStrings0:LocalizedText[]0:PropertyType
Conformance Units
Scheduler Scheduling Base
Scheduler Calendar Base

8.8 DateRangeType

This structure defines a time span, with start and end dates that are either open or absolute. The structure is defined in Table 30.

The StartDate and EndDate are limited to either use specific dates, i.e., wild cards like odd months are not allowed, or unspecified dates, i.e. only use wild cards.

In case a specific date is provided, the Year field shall not be 0; the Month field shall be a value between 1 to 12; the DayOfMonth field shall be between 1 to 31 and the DayOfWeek field shall be “unspecified”.

In case an unspecified date is provided, the Year field shall be 0, the Month field shall be “unspecified”, the DayOfMonth field shall be “unspecified”, and the DayOfWeek field shall be “unspecified”.

No other values shall be used for StartDate and EndDate.

Table 30 – DateRangeType Structure
Name Type Description
DateRangeTypestructure

StartDate

DateTypeThe start date of the date range. The start day is included in the range.

EndDate

DateTypeThe end date of the date range. The end day is included in the range.

Its representation in the AddressSpace is defined in Table 31.

Table 31 – DateRangeType Definition
Attribute Value
BrowseNameDateRangeType
IsAbstractFalse
DescriptionThis structure defines a time span, with absolute start and end dates. The StartDate and EndDate are limited to specific values, i.e., wild cards like odd months are not allowed. The Year field shall not be 0; the Month field shall be a value between 1 to 12; the DayOfMonth field shall be between 1 to 31 and the DayOfMonth field shall be “unspecified”.
References NodeClass BrowseName DataType TypeDefinition Other
Subtype of the 0:Structure
Conformance Units
Scheduler Scheduling Base
Scheduler Calendar Base

8.9 TimeActionsType

This structure contains a time and an array of actions. It is used to define which actions shall be executed at a specific point in time. The structure is defined in Table 16.

Table 32 – TimeActionsType Structure
NameTypeDescriptionAllow
Subtypes
TimeActionsTypestructure

Time

TimeTypeA point in time during a day

Actions

BaseActionType[]

A list of actions to be executed at the defined Time

Note: Here, subtypes are allowed. The table format will be updated, once a final format is defined.

True

Its representation in the AddressSpace is defined in Table 17.

Table 33 – TimeActionsType Definition
Attribute Value
BrowseNameTimeActionsType
IsAbstractFalse
DescriptionThis structure contains a time and an array of actions. It is used to define actions to be executed at a specific point in time.
References NodeClass BrowseName DataType TypeDefinition Other
Subtype of the 0:Structure
Conformance Units
Scheduler Scheduling Base

8.10 BaseActionType

This abstract structure defines the base of an action. The base only contains information, if the last execution of the action was successful. The structure is defined in Table 34.

Table 34 – BaseActionType Structure
NameTypeDescription
BaseActionTypestructure

LastActionResult

0:StatusCode

Contains information, whether the last execution of the action was successful. Shall be Uncertain, if action was never executed or last execution not known by Server anymore, e.g., because of a restart.

Shall be a good status code when execution of action was successful, and a bad status code, when execution was not successful.

Subtypes might add additional information on execution of action, e.g. output arguments.

Its representation in the AddressSpace is defined in Table 35.

Table 35 – BaseActionType Definition
Attribute Value
BrowseNameBaseActionType
IsAbstractTrue
DescriptionThis abstract structure defines the base of an action. The base only contains information, if the last execution of the action was successful.
References NodeClass BrowseName DataType TypeDefinition Other
Subtype of the 0:Structure
Conformance Units
Scheduler Scheduling Base

8.11 WriteLocalVariableActionType

This structure defines an action to write the value of a Variable managed in the same Server where the action is used. The structure is defined in Table 36.

Table 36 – WriteLocalVariableActionType Structure
NameTypeDescription
WriteLocalVariableActionTypestructure

Variable

0:NodeIdThe NodeId of the Variable to be written

Value

0:BaseDataTypeThe value to be written to the Variable

Its representation in the AddressSpace is defined in Table 37.

Table 37 – WriteLocalVariableActionType Definition
Attribute Value
BrowseNameWriteLocalVariableActionType
IsAbstractFalse
DescriptionThis structure defines an action to write the value of a Variable managed in the same Server where the action is used.
References NodeClass BrowseName DataType TypeDefinition Other
Subtype of the BaseActionType
Conformance Units
Scheduler Scheduling Base

8.12 CallLocalMethodActionType

This structure defines an action to call a Method of an Object managed in the same Server where the action is used. The structure is defined in Table 38.

Table 38 – CallLocalMethodActionType Structure
NameTypeDescription
CallLocalMethodActionTypestructure

ObjectId

0:NodeIdThe NodeId of the Object the Method should be called on

MethodId

0:NodeIdThe NodeId of the Method to be called

InputValues

0:BaseDataType[]An array of input values to be used in the Method call

LastOutputValues

0:BaseDataType[]An array of the output values the last time the Method was called. Shall be an empty array if no outputs arguments, the LastActionResult is a bad status code or the action was never executed or last execution is unknown.

Its representation in the AddressSpace is defined in Table 39.

Table 39 – CallLocalMethodActionType Definition
Attribute Value
BrowseNameCallLocalMethodActionType
IsAbstractFalse
DescriptionThis structure defines an action to call a Method of an Object managed in the same Server where the action is used.
References NodeClass BrowseName DataType TypeDefinition Other
Subtype of the BaseActionType
Conformance Units
Scheduler Scheduling Base

8.13 TimeType

This structure that represents a point in time during a day. The structure is defined in Table 40.

Table 40 – TimeType Structure
Name Type Description
TimeTypestructure

Hour

0:ByteAllowed values between 0 and 23 – 255 as unspecific

Minute

0:ByteAllowed values between 0 and 59 – 255 as unspecific

Second

0:ByteAllowed values between 0 and 59 – 255 as unspecific

Its representation in the AddressSpace is defined in Table 41.

Table 41 – TimeType Definition
Attribute Value
BrowseNameTimeType
IsAbstractFalse
DescriptionThis structure that represents a point in time during a day
References NodeClass BrowseName DataType TypeDefinition Other
Subtype of the 0:Structure
Conformance Units
Scheduler Scheduling Base

8.14 DailyScheduleType

This structure defines a sequence of TimeActionsType structures. Each element in the sequence defines a time and a list of actions that shall be executed at that point in time. The structure is defined in Table 42.

Table 42 – DailyScheduleType Structure
Name Type Description
DailyScheduleTypestructure

DaySchedule

TimeActionsType[]A sequence of time / value pairs describing the value at a given point in the day.

Its representation in the AddressSpace is defined in Table 43.

Table 43 – DailyScheduleType Definition
Attribute Value
BrowseNameDailyScheduleType
IsAbstractFalse
DescriptionThis structure defines a sequence of TimeActionsType structures. Each element in the sequence defines a time/actions pair that describes the actions to be executed at a given point in the day.
References NodeClass BrowseName DataType TypeDefinition Other
Subtype of the 0:Structure
Conformance Units
Scheduler Scheduling Base