Click or drag to resize

MessageRouter Class

The message router.
Inheritance Hierarchy

Namespace: Demo3D.PLC.Comms.CIP.Nodes
Assembly: PLC (in PLC.dll) Version: 19.00.00
Syntax
C#
public abstract class MessageRouter : CIPObjectObjectInstance

The MessageRouter type exposes the following members.

Constructors
 NameDescription
Protected methodMessageRouter Constructs a MessageRouter.
Top
Properties
 NameDescription
Protected propertyAttributes Extended attributes.
(Inherited from CIPObject)
Public propertyClassId The class id of an object.
(Inherited from CIPObject)
Public propertyEPATH EPATH containing class and instance id.
(Inherited from CIPObjectObjectInstance)
Public propertyInstanceId The instance id of an object.
(Inherited from CIPObject)
Public propertyIOEntry The IO configuration tree entry for this device/module.
Public propertyMissingClassFirstChanceFunc First chance to intercept a missing node. Passes the id of the missing node. Return true to indicate that we added a node.
(Inherited from CIPObjectObjectInstance)
Public propertyNode The associated node in the CIP node hierarchy.
(Inherited from CIPObject)
Public propertyNodeName Override to provide a name for the node.
(Inherited from CIPObject)
Public propertyNotImplementedPaths A list of paths that we know we'll get asked for but are deliberately not implemented.
(Inherited from CIPObject)
Public propertyNumLinks Returns the number of links.
(Inherited from CIPObject)
Public propertyParentClass The parent class of an instance (or null).
(Inherited from CIPObjectObjectInstance)
Public propertyRouter The message router instance.
(Inherited from CIPObject)
Top
Methods
 NameDescription
Public methodAddChild Add a class to an instance.
(Inherited from CIPObjectObjectInstance)
Public methodAllInstancesT Find all instances of a specified sub class.
(Inherited from CIPObjectObjectInstance)
Public methodAllObjects Returns all linked nodes.
(Inherited from CIPObject)
Protected methodConstructNode Initialize object properties.
(Inherited from CIPObject)
Public methodCreateAttributeList Common interpretation of the data part of a Create service request. The service data is the same format as the SetAttributeList, but doesn't return the same SetAttributeList response.
(Inherited from CIPObjectObjectInstance)
Public methodCreateValue Create an attribute value of the specified dimensions.
(Inherited from CIPObject)
Public methodDescendants Return all descendants of this node.
(Inherited from CIPObject)
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.


(Inherited from CIPObject)
Public methodFindClass(ClassID) Find class with a specified id.
(Inherited from CIPObjectObjectInstance)
Public methodFindInstanceT(ClassID, UInt32, Boolean) Find class instance by id.
(Inherited from CIPObjectObjectInstance)
Public methodGetAttributeList Service GetAttributeList CIP request.
(Inherited from CIPObject)
Protected methodGetAttributeProperties Returns all attribute properties (in GetAttributeAll order, ie not necessarily numerical order).
(Inherited from CIPObject)
Protected methodGetAttributeProperties(UInt32) Return the attribute properties for one attribute.
(Inherited from CIPObject)
Public methodGetAttributesAll Service GetAttributesAll CIP request.
(Inherited from CIPObject)
Public methodGetAttributeSingle Service GetAttributeSingle CIP request.
(Inherited from CIPObject)
Protected methodGetAttributeValue Read the value of one attribute and write it into the responseData.
(Inherited from CIPObject)
Public methodGetAttributeValues Return the values of all the attributes.
(Inherited from CIPObject)
Public methodInitialize Initialize the object.
(Inherited from CIPObject)
Public methodMissingClassFirstChance First chance to intercept a missing node. Return true to indicate that we added a node.
(Inherited from CIPObjectObjectInstance)
Public methodNotifyAddedHierarchy Initialize object after its has been added to the hierarchy.
(Inherited from CIPObject)
Public methodNotifyAllChildrenRemoved Called to notify when all removable children have been removed.
(Inherited from CIPObject)
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.
(Inherited from CIPObject)
Public methodNotifyChildAdded Called to notify when a child object is added.
(Inherited from CIPObject)
Public methodNotifyChildRemoved Called to notify when a child object has been removed.
(Inherited from CIPObject)
Public methodNotifyRemovedHierarchy Called to notify when this object has been removed from the hierarchy.
(Inherited from CIPObject)
Protected methodOverrideNodePropertyBag Return the property bag for this node.
(Inherited from CIPObject)
Public methodRequestRemoveChild Called to request permission to remove a child.
(Inherited from CIPObject)
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.
(Inherited from CIPObject)
Public methodSetAttributesAll Service SetAttributesAll CIP request.
(Inherited from CIPObject)
Public methodSetAttributeSingle Service SetAttributeSingle CIP request.
(Inherited from CIPObject)
Protected methodSetAttributeValue Set one attribute to the value read from requestData.
(Inherited from CIPObject)
Public methodSetInstance(ClassID, UInt32) Set the node id.
(Inherited from CIPObject)
Public methodSetInstance(CIPObjectObjectClass, UInt32) Set the node id.
(Inherited from CIPObjectObjectInstance)
Public methodSetupBus Setup the bus configuration.
(Inherited from CIPObject)
Top
Events
 NameDescription
Public eventOnChildAdded Occurs when a child object has been added.
(Inherited from CIPObject)
Public eventOnChildRemoved Occurs when a child object has been removed.
(Inherited from CIPObject)
Top
Remarks
The Message Router is the root of the CIP node tree. From this node, you can navigate to any other node in the tree. For example, various objects can be reached: using Demo3D.PLC.Comms.CIP.Nodes;
using Demo3D.PLC.Comms.CIP.Nodes.Motion;
using Demo3D.PLC.Rockwell.Comms.CIP.Nodes;

var identity = mr.FindInstance{Identity}(ClassID.Identity, 1); // Get the Identity object.
var timeSync = mr.FindInstance{TimeSync}(ClassID.TimeSync, 1); // Get the TimeSync object.
var mda = mr.FindInstance{MotionDeviceAccess}(ClassID.CIPMotion, driveNumber); // Get the MDA instance for a specified drive.
var parameters = mr.FindClass{ParameterClass}(ClassID.Parameter).Parameters; // Get the parameters for the device.
See Identity, TimeSync, MotionDeviceAccess, and ParameterClass.
See Also