Click or drag to resize

CIPObject Class

Represents one CIP object.
Inheritance Hierarchy

Namespace:  Demo3D.PLC.Comms.CIP.Nodes
Assembly:  PLC (in PLC.dll) Version: 15.0.2.11458
Syntax
C#
public abstract class CIPObject : CIPServices, 
	IAttributeDatabase

The CIPObject type exposes the following members.

Properties
  NameDescription
Protected propertyAttributes
Extended attributes.
Public propertyClassId
The class id of an object.
Public propertyInstanceId
The instance id of an object.
Public propertyNode
The associated node in the CIP node hierarchy.
Public propertyNodeName
Override to provide a name for the node.
Public propertyNotImplementedPaths
A list of paths that we know we'll get asked for but are deliberately not implemented.
Public propertyNumLinks
Returns the number of links.
Public propertyRouter
The message router instance.
Top
Methods
  NameDescription
Public methodAllObjects
Returns all linked nodes.
Protected methodConstructNode
Initialize object properties.
Public methodCreateValue
Create an attribute value of the specified dimensions.
Public methodDescendants
Return all descendants of this node.
Public methodFindAddOrUpdateAttributeValue
Add or update an attribute value.

If an attribute value with the specified id does not exist, then the function 'create' is called to create a new attribute value. If the 'create' function is null then no new attribute value is added.

If an attribute value with the specified id already exists, then the function 'update' (if not null) is called to update the attribute value.

Public methodGetAttributeList
Service GetAttributeList CIP request.
(Overrides CIPServicesGetAttributeList(MessageContext, OutgoingResponse, IPacketReader).)
Protected methodGetAttributeProperties
Returns all attribute properties (in GetAttributeAll order, ie not necessarily numerical order).
Protected methodGetAttributeProperties(UInt32)
Return the attribute properties for one attribute.
Public methodGetAttributesAll
Service GetAttributesAll CIP request.
(Overrides CIPServicesGetAttributesAll(MessageContext, OutgoingResponse).)
Public methodGetAttributeSingle
Service GetAttributeSingle CIP request.
(Overrides CIPServicesGetAttributeSingle(MessageContext, OutgoingResponse, UInt32).)
Protected methodGetAttributeValue
Read the value of one attribute and write it into the responseData.
Public methodGetAttributeValues
Return the values of all the attributes.
Public methodInitialize
Initialize the object.
Protected methodMissingAttributeFirstChance
First chance to intercept a missing attribute. Return true to indicate that we added an attribute.
Public methodNotifyAddedHierarchy
Initialize object after its has been added to the hierarchy.
Public methodNotifyAllChildrenRemoved
Called to notify when all removable children have been removed.
Protected methodNotifyAttributesSet
Callback to indicate that an attribute value has been set. Only called at the end of the protocol request after all attributes in the packet have been set.
Public methodNotifyChildAdded
Called to notify when a child object is added.
Public methodNotifyChildRemoved
Called to notify when a child object has been removed.
Public methodNotifyRemovedHierarchy
Called to notify when this object has been removed from the hierarchy.
Protected methodOverrideNodePropertyBag
Return the property bag for this node.
Public methodRequestRemoveChild
Called to request permission to remove a child.
Public methodServiceErrorStatus
Return error code for a service that's not supported by this node.
(Inherited from CIPServices.)
Public methodServiceRequest(MessageContext, OutgoingResponseContainer, IncomingRequest)
Service a request.
(Inherited from CIPServices.)
Public methodServiceRequest(MessageContext, OutgoingResponseContainer, IncomingRequest, EPATHLogicalPath, ServiceRequestHandler)
Try to service a request where we couldn't traverse the entire logical EPATH. Route will contain the remaining elements of the path that need to be resolved.
(Inherited from CIPServices.)
Public methodSetAttributeList
Service SetAttributeList CIP request.
(Overrides CIPServicesSetAttributeList(MessageContext, OutgoingResponse, IPacketReader).)
Public methodSetAttributesAll
Service SetAttributesAll CIP request.
(Overrides CIPServicesSetAttributesAll(MessageContext, OutgoingResponse, IPacketReader).)
Public methodSetAttributeSingle
Service SetAttributeSingle CIP request.
(Overrides CIPServicesSetAttributeSingle(MessageContext, OutgoingResponse, IPacketReader, UInt32).)
Protected methodSetAttributeValue
Set one attribute to the value read from requestData.
Public methodSetInstance
Set the node id.
Public methodSetupBus
Setup the bus configuration.
Top
Events
  NameDescription
Public eventOnChildAdded
Occurs when a child object has been added.
Public eventOnChildRemoved
Occurs when a child object has been removed.
Top
Extension Methods
  NameDescription
Public Extension MethodFindAttributeValue
Find an attribute value by id.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindByteArrayAttribute
Finds an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindByteAttribute
Finds an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindDIntAttribute
Finds an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindDWordAttribute
Finds an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindLIntAttribute
Finds an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindLRealAttribute
Finds an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindLWordAttribute
Finds an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindOrAddAttributeValue(AttributeValue, Boolean)Overloaded.
Find or add an attribute value.

If an attribute value with the specified id does not exist, then the specified attribute is added. If an attribute value with the specified id already exists, then the original attribute is returned.

(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindOrAddAttributeValue(UInt32, DataDimensions, Boolean)Overloaded.
Find or add an attribute value.

If an attribute value with the specified id already exists, then it's returned. If an attribute value with the specified id does not exist, then a new attribute value is created.

(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindRealAttribute
Finds an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindShortStringAttribute
Finds an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodFindWordAttribute
Finds an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetByteArrayAttribute(UInt32, Int32)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetByteArrayAttribute(UInt32, Int32, Boolean)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetByteArrayAttribute(UInt32, Int32, BufferSegment)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetByteAttribute(UInt32, Boolean)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetByteAttribute(UInt32, Byte)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetDIntAttribute(UInt32, Boolean)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetDIntAttribute(UInt32, Int32)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetDWordAttribute(UInt32, Boolean)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetDWordAttribute(UInt32, UInt32)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetLIntAttribute(UInt32, Boolean)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetLIntAttribute(UInt32, Int64)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetLRealAttribute(UInt32, Boolean)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetLRealAttribute(UInt32, Double)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetLWordAttribute(UInt32, Boolean)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetLWordAttribute(UInt32, UInt64)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetRealAttribute(UInt32, Boolean)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetRealAttribute(UInt32, Single)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetShortStringAttribute(UInt32, Int32, Boolean)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetShortStringAttribute(UInt32, Int32, String)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetWordAttribute(UInt32, Boolean)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Public Extension MethodGetWordAttribute(UInt32, UInt16)Overloaded.
Finds or creates an attribute.
(Defined by AttributeDatabaseExtensions.)
Top
See Also