Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The PlcObjectInfo type exposes the following members.
Initializes a new instance of the PlcObjectInfo class using the specified name
and type
.
C#
public PlcObjectInfo(PlcName name, PlcObjectType type)
Parameters
name
PlcName
The name of the member.
type
PlcObjectType
The type of the member.
Exceptions
The name
or type
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the PlcObjectInfo class using the specified name
and members
.
C#
public PlcObjectInfo(PlcName name, PlcTypeLayout layout, IEnumerable<IPlcMemberInfo> members)
Parameters
name
PlcName
The name of the member.
layout
PlcTypeLayout
An instance of the PlcTypeLayout class which provides the characteristics to use to absolutely align the members
.
members
IEnumerable<IPlcMemberInfo>
The IPlcMemberInfo objects which are to be associated with the PlcObjectType of the member.
Exceptions
The name
, layout
or members
or one of its items is a null reference (Nothing in Visual Basic).
Initializes a new instance of the PlcObjectInfo class using the specified name
and members
.
C#
public PlcObjectInfo(PlcName name, PlcTypeLayout layout, params IPlcMemberInfo[] members)
Parameters
name
PlcName
The name of the member.
layout
PlcTypeLayout
An instance of the PlcTypeLayout class which provides the characteristics to use to absolutely align the members
.
members
IPlcMemberInfo[]
The IPlcMemberInfo objects which are to be associated with the PlcObjectType of the member.
Exceptions
The name
, layout
or members
or one of its items is a null reference (Nothing in Visual Basic).
Retrieves the PlcObjectInfo as an absolute addressable PLC data member.
C#
public override IPlcMemberInfo MakeAbsoluteMember(PlcIdentity identity)
Parameters
identity
PlcIdentity
The PlcIdentity to use to define the absolute location. This identity is used to define the basis starting from that the member is be located.
Returns
In case there IsAbsolute is equals true the reference to this member; otherwise a new instance of the member which refers to an absolute PlcType.
Exceptions
The identity
specified does not provide the necessary information required to address the type of data.
The identity
is a null reference (Nothing in Visual Basic).