9 LogbookEvent

9.1 LogbookEvent Definition

Logbook events are fired by the machine for the documentation of relevant changes in the machine configuration/status. The LogbookEventType is formally defined in Table 12.

Table 12 – LogbookEventType Definiton
Attribute Value
BrowseNameLogbookEventType
IsAbstractTrue
References Node Class BrowseName DataType TypeDefinition Other
Subtype of 0:BaseEventType defined in OPC UA Part 5
0:HasComponentObjectUserUserTypeM
0:HasPropertyVariableEventOriginatorEventOriginatorEnumeration0:PropertyTypeM
0:HasPropertyVariableJobCycleCounter0:UInt640:PropertyTypeO
0:HasSubtypeObjectTypeParameterChangeLogTypeDefined in 9.5
0:HasSubtypeObjectTypeUserLogTypeDefined in 9.6
0:HasSubtypeObjectTypeRemoteAccessLogTypeDefined in 9.7
0:HasSubtypeObjectTypeSequenceChangeLogTypeDefined in 9.8
0:HasSubtypeObjectTypeMachineModeChangeLogTypeDefined in 9.9
0:HasSubtypeObjectTypeProductionStatusChangeLogTypeDefined in 9.10
0:HasSubtypeObjectTypeProductionDatasetChangeLogTypeDefined in 9.11
0:HasSubtypeObjectTypeProductionDatasetFrozenLogTypeDefined in 9.12
0:HasSubtypeObjectTypeStandstillReasonLogTypeDefined in 9.13
0:HasSubtypeObjectTypeMessageLogTypeDefined in 9.14
0:HasSubtypeObjectTypeUserFeedbackLogTypeDefined in 9.15

The LogbookEventType is abstract. There will be no instances of a LogbookEventType itself, but there will be instances of its subtypes which provide detailed information.

The EventSource is the root node of the interface (e.g. instance of IMM_MES_InterfaceType for OPC 40077).

NOTE: The EventSource, Time and a Message are already included in the BaseEventType of OPC UA.

There shall be a buffer to be accessible via the OPC UA service history read (even when the machine has been switched off in the meantime). The minimum size is 100 LogbookEvents to be stored in a (persistent) ring buffer containing the recent 100 events (over all LogbookEvents).

9.2 User

This Object indicates the user who is responsible for the change that leads to the event. The fields of UserType (see 13.2) shall be null or emtpy if no user is directly responsible (e.g. for messages coming from the machine control system).

9.3 EventOriginator

This Property represents the originator of a logbook event. The EventOriginatorEnumeration is defined in Table 13.

Table 13 – EventOriginatorEnumeration Items
Name Value Description
OTHER0Undefined
MACHINE1The machine causes the event (e.g. an alarm)
OPERATOR2The operator of the machine causes the event (e.g. a parameter change)
MES3The MES causes the event (e.g. a MESMessage)
PERIPHERAL_DEVICE4A peripheral device causes the event (e.g. an alarm)

9.4 JobCycleCounter

This Property represents the current value of JobCycleCounter in the ActiveJobValues Object when the event is fired (see 18.4.7.1). Only to be used for cyclic production (e.g. injection moulding).

9.5 ParameterChangeLogType

The ParameterChangeLogType is used for the logging of relevant changes in production parameters.

The decision which parameter is relevant for the production is done by the machine.

Table 14 – ParameterChangeLogType Definition
Attribute Value
BrowseNameParameterChangeLogType
IsAbstractTrue
References Node Class BrowseName DataType TypeDefinition Other
Subtype of LogbookEventType
0:HasPropertyVariableParameterId0:String0:PropertyTypeM
0:HasPropertyVariableOldValue0:BaseDataType0:PropertyTypeM
0:HasPropertyVariableOldValueUnit0:EUInformation0:PropertyTypeO
0:HasPropertyVariableNewValue0:BaseDataType0:PropertyTypeM
0:HasPropertyVariableNewValueUnit0:EUInformation 0:PropertyTypeO

The ParameterId Property represents the Id of the changed parameter.

The OldValue Property represents the old value of the changed parameter.

The NewValue Property represents the new value of the changed parameter.

Depending on the changed parameter, the Datatype of OldValue and NewValue are subtypes of 0:BaseDataType (0:String, Number, …). Where the unit is important (e.g. temperatures, lengths…), also OldValueUnit and NewValueUnit shall be used (see OPC UA Part 5 for the definition of EUInformation).

9.6 UserLogType

The UserLogType is used for logging which users are logged in to the machine.

Table 15 – UserLogType Definition
Attribute Value
BrowseNameUserLogType
IsAbstractTrue
References Node Class BrowseName DataType TypeDefinition Other
Subtype of LogbookEventType
0:HasPropertyVariableUserChangeUserChangeEnumeration0:PropertyTypeM

The UserChangeEnumeration is defined in Table 16.

Table 16 – UserChangeEnumeration Definition
Name Value Description
LOG_ON0The User has logged on the machine.
LOG_OFF1The User has logged off the machine.

9.7 RemoteAccessLogType

The RemoteAccessLogType is used for logging access from outside to the machine (e.g. remote service).

Table 17 – RemoteAccessLogType Definition
Attribute Value
BrowseNameRemoteAccessLogType
IsAbstractTrue
References Node Class BrowseName DataType TypeDefinition Other
Subtype of LogbookEventType
0:HasPropertyVariableRemoteUserName0:String0:PropertyTypeM
0:HasPropertyVariableUserChangeUserChangeEnumeration0:PropertyTypeM
0:HasPropertyVariableOrigin0:String0:PropertyTypeO

RemoteUserName: Name of the remote user (e.g. name of the service employee doing remote service)

UserChange: The UserChangeEnumeration is the same used in UserLogType and is defined in Table 16.

Origin: Information about the origin of the remote access (e.g. "Headquarters").

9.8 SequenceChangeLogType

The SequenceChangeLogType is used for the logging changes in the production sequence.

Table 18 – SequenceChangeLogType Definition
Attribute Value
BrowseNameSequenceChangeLogType
IsAbstractTrue
References Node Class BrowseName DataType TypeDefinition Other
Subtype of LogbookEventType
0:HasPropertyVariableSequenceChangeSequenceChangeEnumeration0:PropertyTypeM

The SequenceChange Property allows classifying the changes. (A description of the changes is included in the Message Property of the LogBookEventType)

Table 19 – SequenceChangeEnumeration Definition
Name Value Description
UPDATE0The sequence has been updated (e.g. when a new production dataset has been activated)
ADD1An element has been added to the sequence
MODIFY2An element of the sequence has been modified.
MOVE3An element of the sequence has been moved.
DELETE4An element of the sequence has been deleted.

9.9 MachineModeChangeLogType

The MachineModeChangeLogType is used for logging changes of the machine mode.

Table 20 – MachineModeChangeLogType Definition
Attribute Value
BrowseNameMachineModeChangeLogType
IsAbstractTrue
References Node Class BrowseName DataType TypeDefinition Other
Subtype of LogbookEventType
0:HasPropertyVariableOldMachineModeMachineModeEnumeration0:PropertyTypeM
0:HasPropertyVariableNewMachineModeMachineModeEnumeration0:PropertyTypeM

The MachineModeEnumeration is defined in 12.4.

9.10 ProductionStatusChangeLogType

The ProductionStatusChangeLogType is used for logging changes of the production status.

Table 21 – ProductionStatusChangeLogType Definition
Attribute Value
BrowseNameProductionStatusChangeLogType
IsAbstractTrue
References Node Class BrowseName DataType TypeDefinition Other
Subtype of LogbookEventType
0:HasPropertyVariableOldProductionStatusProductionStatusEnumeration0:PropertyTypeM
0:HasPropertyVariableNewProductionStatusProductionStatusEnumeration0:PropertyTypeM

The ProductionStatusEnumeration is defined in 14.7.1.

9.11 ProductionDatasetChangeLogType

The ProductionDatasetChangeLogType is used when a new production dataset is loaded and activated in the control system of the machine.

Table 22 – ProductionDatasetChangeLogType Definition
Attribute Value
BrowseNameProductionDatasetChangeLogType
IsAbstractTrue
References Node Class BrowseName DataType TypeDefinition Other
Subtype of LogbookEventType
0:HasPropertyVariableOldProductionDatasetName0:String0:PropertyTypeM
0:HasPropertyVariableNewProductionDatasetName0:String0:PropertyTypeM

9.12 ProductionDatasetFrozenLogType

The ProductionDatasetFrozenLogType is used when a production dataset is locked or unlocked (see 20.3.4).

Table 23 – ProductionDatasetFrozenLogType Definition
Attribute Value
BrowseNameProductionDatasetFrozenLogType
IsAbstractTrue
References Node Class BrowseName DataType TypeDefinition Other
Subtype of LogbookEventType
0:HasPropertyVariableOldValue0:Boolean0:PropertyTypeM
0:HasPropertyVariableNewValue0:Boolean0:PropertyTypeM

9.13 StandstillReasonLogType

The StandstillReasonLogType is used for logging StandstillReasons.

Table 24 – StandstillReasonLogType Definition
Attribute Value
BrowseNameStandstillReasonLogType
IsAbstractTrue
References Node Class BrowseName DataType TypeDefinition Other
Subtype of LogbookEventType
0:HasPropertyVariableStandstillReasonId0:String0:PropertyTypeM

9.14 MessageLogType

The MessageLogType is used for logging MessageConditions (see 14.8).

Table 25 – MessageLogType Definition
Attribute Value
BrowseNameMessageLogType
IsAbstractTrue
References Node Class BrowseName DataType TypeDefinition Other
Subtype of LogbookEventType
0:HasPropertyVariableId0:String0:PropertyTypeM
0:HasPropertyVariableIsStandstillMessage0:Boolean0:PropertyTypeM
0:HasPropertyVariableClassification0:Enumeration0:PropertyTypeM

Classification: Classification of the message. The valid values of the Enumeration are specified in the specific Companion Specification (e.g. IMMMessageClassificationEnumeration in OPC 40077).

9.15 UserFeedbackLogType

The UserFeedbackLogType is used for logging text messages entered by the user into the machine control system.

Table 26 – UserFeedbackLogType Definition
Attribute Value
BrowseNameUserFeedbackLogType
IsAbstractTrue
References Node Class BrowseName DataType TypeDefinition Other
Subtype of LogbookEventType
0:HasPropertyVariableClassification0:Enumeration0:PropertyTypeM

Classification: Classification of the message. The valid values of the Enumeration are specified in the specific Companion Specification (e.g. IMMMessageClassificationEnumeration in OPC 40077).

NOTE: The Message itself is included in the BaseEventType