Package com.automation_pros.odva.logix
Class LgxProbeReport.LgxNamedData
- java.lang.Object
-
- com.automation_pros.odva.logix.LgxProbeReport.LgxNamedData
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
LgxProbeReport.LgxProbedMember,LgxProbeReport.LgxProbedTag
- Enclosing class:
- LgxProbeReport
public abstract static class LgxProbeReport.LgxNamedData extends java.lang.Object implements java.io.SerializableThis abstract class contains the functionality shared between tags and members of a structure type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LgxNamedData()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description DataDefinitionSegabbrevTypeDef()Supplies the underlying data type of this tag or member.DecoratedDefSegdecoratedTypeDef()Supplies the underlying data type of this tag or member.java.lang.StringdimDisplay()abstract int[]getDimensions()Obtain the sizes of each array dimension, if any, outermost first.abstract java.lang.StringgetName()Obtain the tag or member name for use in an ANSI Symbol segment.intgetStructId()Obtain the instance number of this tag's structure type in the Template class (0x6c).abstract intgetSymbolType()A Logix symbol type code is a 16-bit word signals the number of array dimensions and distinguishes a structure type from a base type.abstract LgxProbeReport.LgxProbedTypegetType()When a Logix symbol is a complex type, and the probe algorithm has enumerated it, return the probe object.DataDefinitionSegnamedTypeDef()Supplies the underlying data type of this tag or member.inttotalBits()Used to determine aliasing.inttotalBytes()java.lang.StringtypeName()inttypeSize()
-
-
-
Method Detail
-
getName
public abstract java.lang.String getName()
Obtain the tag or member name for use in an ANSI Symbol segment.- Returns:
- Tag or Member name string.
-
getSymbolType
public abstract int getSymbolType()
A Logix symbol type code is a 16-bit word signals the number of array dimensions and distinguishes a structure type from a base type. This is only used in Rockwell processors during browse.- Returns:
- A 16-bit encoded type, as follows: Bit 15: 0 for base type, 1 for structure type Bits 14-13: Array shape (number of dimensions). Bit 12: System reserved flag. Included in structure id. Bits 12-0: Structure Identifier for structure types. Bits 7-0: CIP Formal Type for base types.
-
getType
public abstract LgxProbeReport.LgxProbedType getType()
When a Logix symbol is a complex type, and the probe algorithm has enumerated it, return the probe object. Must be assigned, typically after the fact inLgxProbeReport.reMap().- Returns:
-
getDimensions
public abstract int[] getDimensions()
Obtain the sizes of each array dimension, if any, outermost first. Structure members can only have one dimension in Logix.- Returns:
- An integer array. Length zero if not an array.
-
getStructId
public int getStructId()
Obtain the instance number of this tag's structure type in the Template class (0x6c). Extracted from the Symbol Type. That limits this to a 12-bit unsigned, non-zero integer.- Returns:
- Value for use in a Logical Instance segment type or zero if not applicable (not a structure type).
-
abbrevTypeDef
public DataDefinitionSeg abbrevTypeDef()
Supplies the underlying data type of this tag or member. If a complex type, it will be anAbbrevStructSegfor which the type name is also configured. Otherwise it will be anElementarySeginstance.- Returns:
-
namedTypeDef
public DataDefinitionSeg namedTypeDef()
Supplies the underlying data type of this tag or member. If a complex type, it will be aNamedStructSegfor which the CRC (handle) is also configured. Otherwise it will be anElementarySeginstance.- Returns:
-
decoratedTypeDef
public DecoratedDefSeg decoratedTypeDef()
Supplies the underlying data type of this tag or member. If an array, it will be aDecoratedDefSegwith the dimensions set accordingly. If a complex type, it will be aNamedStructSegfor which the CRC (handle) is also configured. Otherwise it will be anElementarySeginstance.- Returns:
-
typeName
public java.lang.String typeName()
-
dimDisplay
public java.lang.String dimDisplay()
-
typeSize
public int typeSize()
-
totalBytes
public int totalBytes()
-
totalBits
public int totalBits()
Used to determine aliasing.- Returns:
-
-