7.1 CalendarType

7.1.1 Overview

The CalendarType provides a list of calendar dates. Each entry in the list describes a specific date or date pattern, or range of dates. The CalendarType ObjectType is formally defined in Table 4.

7.1.2 ObjectType definition

Table 4 – CalendarType Definition
Attribute Value
BrowseNameCalendarType
IsAbstractFalse
DescriptionProvides a list of calendar dates. Each entry in the list describes a specific date or date pattern, or range of dates
References NodeClass BrowseName DataType TypeDefinition Other
Subtype of the 0:BaseObjectType
0:HasComponentVariablePresentValue0:Boolean0:BaseDataVariableTypeM
0:HasPropertyVariableDateListCalendarEntryType[]0:PropertyTypeM
0:HasComponentMethodAddDateListElementsO
0:HasComponentMethodRemoveDateListElementsO
Conformance Units
Scheduler Calendar Base

This PresentValue indicates the current value of the calendar: True if the current date is in the DateList and False if it is not. For the current date that local time of the OPC UA Server shall be considered.

The DateList is an array of elements of which each is either a specific date or date pattern, or range of dates.

The child Nodes of the CalendarType have additional Attribute values defined in Table 5.

Table 5 – CalendarType Attribute values for child Nodes
BrowsePath Description Attribute
PresentValueIndicates if the current date is in the DateList (true) or not (false)
DateListArray of elements each defining either a specific date or date pattern, or range of dates
AddDateListElementsAdds elements to the DateList
RemoveDateListElementsRemoves elements of the DateList

7.1.3 Method AddDateListElements

This Method adds entries to the DateList Property. Even if one entry cannot be added, the other entries are still processed and added, if possible. The signature of this Method is specified below. Table 6 and Table 7 specify the Arguments and AddressSpace representation, respectively.

Signature

	AddDateListElements (
		[in]		CalendarEntryType[]		CalendarEntries
		[out]	0:Int32[]				EntryResults
		);
Table 6 – AddDateListElements Method Arguments
Argument Description
CalendarEntriesAn array of calendar entries to be added to the DateList Property.
EntryResults

An array of results, one entry per entry in CalendarEntries, indicating if the individual entry could be added. Each result <> 0 indicates, that adding this calendar entry was not successful.

0 – OK

-1 – Duplicate – Entry already in DateList

-2 – Invalid Format – The entry contains an invalid format, e.g. an invalid range

Values larger 0 can be used for vendor-specific errors.

Method Result Codes (defined in Call Service)

Result Code Description
BadNodeIdUnknownSee OPC 10000-4 for a general description.
BadNotWritableSee OPC 10000-4 for a general description.
BadOutOfMemorySee OPC 10000-4 for a general description.
Table 7 – AddDateListElements Method AddressSpace definition
Attribute Value
BrowseNameAddDateListElements
References NodeClass BrowseName DataType TypeDefinition ModellingRule
0:HasPropertyVariable0:InputArguments0:Argument[] 0:PropertyType0:Mandatory
0:HasPropertyVariable0:OutputArguments0:Argument[] 0:PropertyType0:Mandatory

7.1.4 Method RemoveDateListElements

This Method removes entries from the DateList Property. Even if one entry cannot be removed, the other entries are still processed and removed, if possible. The signature of this Method is specified below. Table 8 and Table 9 specify the Arguments and AddressSpace representation, respectively.

Signature

	RemoveDateListElements (
		[in]		CalendarEntryType[]		CalendarEntries
		[out]	0:Int32[]				EntryResults
		);
Table 8 – RemoveDateListElements Method Arguments
Argument Description
CalendarEntriesAn array of calendar entries to be removed from the DateList Property.
EntryResults

An array of results, one entry per entry in CalendarEntries, indicating if the individual entry could be removed. Each result <> 0 indicates, that removing this calendar entry was not successful.

0 – OK

-1 – Not found – Entry is not in DateList

Values larger 0 can be used for vendor-specific errors.

Method Result Codes (defined in Call Service)

Result Code Description
BadNodeIdUnknownSee OPC 10000-4 for a general description.
BadNotWritableSee OPC 10000-4 for a general description.
Table 9 – RemoveDateListElements Method AddressSpace definition
Attribute Value
BrowseNameRemoveDateListElements
References NodeClass BrowseName DataType TypeDefinition ModellingRule
0:HasPropertyVariable0:InputArguments0:Argument[] 0:PropertyType0:Mandatory
0:HasPropertyVariable0:OutputArguments0:Argument[] 0:PropertyType0:Mandatory