Class Output
|
Version |
1.0 |
|
Modified |
26-MAY-2023 14:29:29.00 |
|
Definition of an output attribute.
Output attributes are used in plc-objects, and are displayed as output pins
in the plc symbol. The output contains a value, that generally is calculated
by the plc code, and will be transfered to any connected input-attribute.
If the PWR_MASK_RTVIRTUAL bit is set in the Flag word, the output does not
exist in runtime, and the connection to other objects is present in the
generated plc code.
The Output object reside in a class volume as a child of an ObjBodyDef object.
Template Object |
Elements |
1 |
TypeRef |
pwrs:Type-$Boolean |
Attributes detail
Name for the element the c-struct.
Compiled size, number of bytes.
Bitmask for attribute properties.
PWR_MASK_POINTER Attribute is a pointer.
PWR_MASK_ARRAY Attribute is an array.
PWR_MASK_STATE Value will not be loaded from develompent database.
PWR_MASK_CONST Value is a constant.
PWR_MASK_RTVIRTUAL Attribute doesn't exist in runtime environment
PWR_MASK_DEVBODYREF Used for input and output attributes, where the
connection refers another object which is found
in the first attribute of type Objid in DevBody.
PWR_MASK_OBJIDSELF Contains the objects own objid. Used in timer attributes.
PWR_MASK_NOEDIT Value can't be changed in object editor.
PWR_MASK_INVISIBLE Attribute will not be displayed in object editor.
PWR_MASK_REFDIRECT If an AttrRef, should not give value pointed to.
PWR_MASK_NOINVERT Can't be inverted in plc editor.
PWR_MASK_NOREMOVE Can't be removed in plc editor.
PWR_MASK_RTDBREF Contains an rtdb reference.
PWR_MASK_PRIVATE Should not be interpreted by an object editor.
PWR_MASK_ISCLASS Attribute is specified by a class.
PWR_MASK_SUBCLASS ...
PWR_MASK_BUFFER ...
PWR_MASK_NOWBL Attribute will not be to printed to wb_load file.
PWR_MASK_ALWAYSWBL Attribute is always printed to wb_load file.
If array, number of elements..
Index of attribute within a body.
Reference to the object defining the type.
Name displayed in plc editor.
Direction of input or output pin.
Implemented in graphmethod 16 only.
0: Ordinare direction, left for inputs and right for outputs.
1: Pin positioned on top of symbol, direction up
2: Pin positioned on bottom of symbol, direction down
The value will be displayed in the plc symbol. The plc symbol
contains places where individual text can be drawn, annotations.
The annotations are numbered, and NiNaAnnot is the number of the
annotation where the value of the attribute will be drawn.
Special condition for an annotation to be drawn or not.
In some cases, the condition whether an attribute should be displayed
in an annotation or not, can be configured from the object editor.
If NiNaCond is true, the condition will be fetched from an attribute
named Show'attributename' in devbody.
For example, the DSup object has an attribute ShowDetectText which
is the condition for DetectText to be displayed in the plc symbol.
Special condition for the number of segments to be displayed for an
objid.
In some cases, the number of name segments for an objid attribute
that should be displayed in an annotatation, can be configured from
the object editor.
If NiNaSegments is true, the number of segments will be fetched
from an attribute named 'attributename'Segments in devbody.
For example, the GetDi object has an attribute SigChanConSegments
which contains the number of segments of SigChanCon to be displayed
in the plc symbol.
Number of the connection point for this attribute.
Used only in graphmethod 4.
Graphmethod 4 contains a number of symbols with fix number of input
and output pins. ConPointNr relates an attribute to a specific input
or output pin.