Class CellDisp
Version 1.0
Modified 07-JUL-2017 13:58:14.00
Code nmps_plc_display.c
 CellDisp objects are used to display the content of data objects
 that is stored i NMpsCells, in the process graphics. It also makes it
 possible for the operator to remove data objects from the cell, move
 dataobjects forward or backwards in the cell, or select a data object
 to gain more information about the object.

 With the CellDisp object you can display a table of the data objects
 in a cell, with the object name and some selected attributes. The
 CellDisp object contains a number or arrays where the values for the selected
 attributes are copied. The arrays can be displayed in a process graph.

 There is also a select function, where a data object is selected, and
 the selected object is copied to a dispay object, i.e. a permanent object
 of the same class as the data object. If the content of the display
 object is viewed in the process graphics, it will always display the
 content of the currently selected data object.

 Several tables in the same process graph, can have a common select
 function, by using the DispLink object. One common DispLink object
 is connected to all the DispCell, which will guarantee that at most
 one data object is selected. In the DispLink object there is also
 functions to remove the selected data object, or to move the object
 forward or backward in the cell.

 The selection is done, either with a select button in each row of
 the table, or with the SelectNext/SelectPrevious function in the
 DispLink object. With SelectNext/SelectPrevious the selection can
 be performed with the function keys.

 One table can display up to 10 cell objects. In the CellDisp object
 there is room for 5 attributes of type float, 5 integers and 5
 boolean. There is also an array containing the objid of the data
 objects.

 Maximum number of data objects displayed in one table is 60.
 The connected cell objects can be of class NMpsCell or
 NMpsStoreCell.
 A DispLink object can link an unlimited number of CellDisp objects.
 The select function is not conntected to the select function of the
 NMpsStoreCell.

See also



RtBody attributes pwr_sClass_CellDisp
Pointer to Void Cell1 Cell1 Data input connected to a GetData refering to a NMpsCell or NMpsStoreCell object.
Pointer to Void Cell2 Cell2 Data input connected to a GetData refering to a NMpsCell or NMpsStoreCell object.
Pointer to Void Cell3 Cell3 Data input connected to a GetData refering to a NMpsCell or NMpsStoreCell object.
Pointer to Void Cell4 Cell4 Data input connected to a GetData refering to a NMpsCell or NMpsStoreCell object.
Pointer to Void Cell5 Cell5 Data input connected to a GetData refering to a NMpsCell or NMpsStoreCell object.
Pointer to Void Cell6 Cell6 Data input connected to a GetData refering to a NMpsCell or NMpsStoreCell object.
Pointer to Void Cell7 Cell7 Data input connected to a GetData refering to a NMpsCell or NMpsStoreCell object.
Pointer to Void Cell8 Cell8 Data input connected to a GetData refering to a NMpsCell or NMpsStoreCell object.
Pointer to Void Cell9 Cell9 Data input connected to a GetData refering to a NMpsCell or NMpsStoreCell object.
Pointer to Void Cell10 Cell10 Data input connected to a GetData refering to a NMpsCell or NMpsStoreCell object.
Float32 Link Link Connected to the output of a DispLink object. Is used to link the select
function with other DispLink objects, or to use the function for remove
the selected data object from the cell, move the object forward or backward,
or select next or previous object.
Pointer to Void DisplayObject DObj Connected to a GetData object refering to a display object of the same
class as the data objects handled by the cells. The DisplayObject makes
it possible to display more detailed information for the seleted object.
The content of the selected data object is copied to the display object.
ClassId DataClass   Class of the data objects handled by the cell.
Int32 Function   Specific functions
- 0 Normal function.
- 1 The data objects are stored in reverse order.
Int32 Number   If the selection function is shared with other DispCell objects, there has to
be a specified order when the selection is moved between the different
DispCell tables. The DispCell objects connected to one DispLink object are
numbered from 1 and upwards. The number for each DispCell object has to
be unique and there should be no jumps in the enumeration.
Int32 MaxSize   Size of the displayed table (number or rows). Largest size is 60.
Int32 SelDirection   SelDirection changes the selection direction, i.e the function of
SelectNext/SelectPrevious and MoveForward/MoveBackward is reversed.
This is useful if several CellDisp objects are linked, and some
displayes their objects in normal order, other in reverse order.
Array of String32 FloatAttr   The name of attributes of type float in the data object, that
should be displayed in the table. Up to 5 float attributes can be specified.
The attribute in FloatAttr[0] is copied to F1, FloatAttr[1] to F2, etc.
Array of String32 BooleanAttr   The name of attributes of type boolean in the data object, that
should be displayed in the table. Up to 5 boolean attributes can be specified.
The attribute in BooleanAttr[0] is copied to B1, BooleanAttr[1] to B2, etc.
Array of String32 IntAttr   The name of attributes of type integer in the data object, that
should be displayed in the table. Up to 5 integer attributes can be specified.
The attribute in IntAttr[0] is copied to I1, IntAttr[1] to I2, etc.
If the attributes is of type Int16, add the suffix ##Int16 to the
attributename.
Array of Boolean Select   Array for selecting objects in the table.
An object in a row is selected by setting the corresponding index in Select.
Select[n] could be connected to a pushbutton of row n in the table.
Array of Boolean OldSelect  
Array of Objid Objid   Array with objid of the data objects.
Array of Float32 F1   Contains the values of the attribute specfied in FloatAttr[0].
Array of Float32 F2   Contains the values of the attribute specfied in FloatAttr[1].
Array of Float32 F3   Contains the values of the attribute specfied in FloatAttr[2].
Array of Float32 F4   Contains the values of the attribute specfied in FloatAttr[3].
Array of Float32 F5   Contains the values of the attribute specfied in FloatAttr[4].
Array of Boolean B1   Contains the values of the attribute specfied in BooleanAttr[0].
Array of Boolean B2   Contains the values of the attribute specfied in BooleanAttr[1].
Array of Boolean B3   Contains the values of the attribute specfied in BooleanAttr[2].
Array of Boolean B4   Contains the values of the attribute specfied in BooleanAttr[3].
Array of Boolean B5   Contains the values of the attribute specfied in BooleanAttr[4].
Array of Int32 I1   Contains the values of the attribute specfied in IntAttr[0].
Array of Int32 I2   Contains the values of the attribute specfied in IntAttr[1].
Array of Int32 I3   Contains the values of the attribute specfied in IntAttr[2].
Array of Int32 I4   Contains the values of the attribute specfied in IntAttr[3].
Array of Int32 I5   Contains the values of the attribute specfied in IntAttr[4].
Array of Int32 FloatAttrOffs   Calculated offset for the float attributes.
Array of Int32 BooleanAttrOffs   Calculated offset for the boolean attributes.
Array of Int32 IntAttrOffs   Calculated offset for the integer attributes.
Objid SelectObjid  
UInt32 DataSize  
Int32 OldLastIndex  

DevBody attributes 
pwrs:Class-$PlcNode PlcNode  


GraphPlcNode
object_type 11
parameters[0] 12
parameters[1] 0
parameters[2] 0
parameters[3] 0
graphmethod 0 (standard, individual attributes)
graphindex 0
default_mask[0] 1
default_mask[1] 0
segname_annotation 1
compmethod 35
compindex 0
tracemethod 0
traceindex 0
connectmethod 0
executeordermethod 2
objname CellDisp
graphname CellDisp


Template Object
MaxSize 60


Attributes detail


Cell1 Input
Class Input
Type Pointer to Void
Flags Pointer|State|Noedit|Noremove
GraphName Cell1
Body RtBody
Data input connected to a GetData refering to a NMpsCell or NMpsStoreCell object.

Cell2 Input
Class Input
Type Pointer to Void
Flags Pointer|State|Noedit
GraphName Cell2
Body RtBody
Data input connected to a GetData refering to a NMpsCell or NMpsStoreCell object.

Cell3 Input
Class Input
Type Pointer to Void
Flags Pointer|State|Noedit
GraphName Cell3
Body RtBody
Data input connected to a GetData refering to a NMpsCell or NMpsStoreCell object.

Cell4 Input
Class Input
Type Pointer to Void
Flags Pointer|State|Noedit
GraphName Cell4
Body RtBody
Data input connected to a GetData refering to a NMpsCell or NMpsStoreCell object.

Cell5 Input
Class Input
Type Pointer to Void
Flags Pointer|State|Noedit
GraphName Cell5
Body RtBody
Data input connected to a GetData refering to a NMpsCell or NMpsStoreCell object.

Cell6 Input
Class Input
Type Pointer to Void
Flags Pointer|State|Noedit
GraphName Cell6
Body RtBody
Data input connected to a GetData refering to a NMpsCell or NMpsStoreCell object.

Cell7 Input
Class Input
Type Pointer to Void
Flags Pointer|State|Noedit
GraphName Cell7
Body RtBody
Data input connected to a GetData refering to a NMpsCell or NMpsStoreCell object.

Cell8 Input
Class Input
Type Pointer to Void
Flags Pointer|State|Noedit
GraphName Cell8
Body RtBody
Data input connected to a GetData refering to a NMpsCell or NMpsStoreCell object.

Cell9 Input
Class Input
Type Pointer to Void
Flags Pointer|State|Noedit
GraphName Cell9
Body RtBody
Data input connected to a GetData refering to a NMpsCell or NMpsStoreCell object.

Cell10 Input
Class Input
Type Pointer to Void
Flags Pointer|State|Noedit
GraphName Cell10
Body RtBody
Data input connected to a GetData refering to a NMpsCell or NMpsStoreCell object.

Link Input
Class Input
Type Float32
Flags State|Noedit
GraphName Link
Body RtBody
Connected to the output of a DispLink object. Is used to link the select
function with other DispLink objects, or to use the function for remove
the selected data object from the cell, move the object forward or backward,
or select next or previous object.

DisplayObject Input
Class Input
Type Pointer to Void
Flags Pointer|State|Noedit
GraphName DObj
Body RtBody
Connected to a GetData object refering to a display object of the same
class as the data objects handled by the cells. The DisplayObject makes
it possible to display more detailed information for the seleted object.
The content of the selected data object is copied to the display object.

DataClass Intern
Class Intern
Type ClassId
Flags
Body RtBody
Class of the data objects handled by the cell.

Function Intern
Class Intern
Type Int32
Flags
Body RtBody
Specific functions
- 0 Normal function.
- 1 The data objects are stored in reverse order.

Number Intern
Class Intern
Type Int32
Flags
Body RtBody
If the selection function is shared with other DispCell objects, there has to
be a specified order when the selection is moved between the different
DispCell tables. The DispCell objects connected to one DispLink object are
numbered from 1 and upwards. The number for each DispCell object has to
be unique and there should be no jumps in the enumeration.

MaxSize Intern
Class Intern
Type Int32
Flags
Body RtBody
Size of the displayed table (number or rows). Largest size is 60.

SelDirection Intern
Class Intern
Type Int32
Flags
Body RtBody
SelDirection changes the selection direction, i.e the function of
SelectNext/SelectPrevious and MoveForward/MoveBackward is reversed.
This is useful if several CellDisp objects are linked, and some
displayes their objects in normal order, other in reverse order.

FloatAttr Intern
Class Intern
Type Array of String32
Flags Array
Elements 5
Body RtBody
The name of attributes of type float in the data object, that
should be displayed in the table. Up to 5 float attributes can be specified.
The attribute in FloatAttr[0] is copied to F1, FloatAttr[1] to F2, etc.

BooleanAttr Intern
Class Intern
Type Array of String32
Flags Array
Elements 5
Body RtBody
The name of attributes of type boolean in the data object, that
should be displayed in the table. Up to 5 boolean attributes can be specified.
The attribute in BooleanAttr[0] is copied to B1, BooleanAttr[1] to B2, etc.

IntAttr Intern
Class Intern
Type Array of String32
Flags Array
Elements 5
Body RtBody
The name of attributes of type integer in the data object, that
should be displayed in the table. Up to 5 integer attributes can be specified.
The attribute in IntAttr[0] is copied to I1, IntAttr[1] to I2, etc.
If the attributes is of type Int16, add the suffix ##Int16 to the
attributename.

Select Intern
Class Intern
Type Array of Boolean
Flags Array|State|Noedit
Elements 60
Body RtBody
Array for selecting objects in the table.
An object in a row is selected by setting the corresponding index in Select.
Select[n] could be connected to a pushbutton of row n in the table.

OldSelect Intern
Class Intern
Type Array of Boolean
Flags Array|State|Invisible
Elements 60
Body RtBody

Objid Intern
Class Intern
Type Array of Objid
Flags Array|State|Noedit
Elements 60
Body RtBody
Array with objid of the data objects.

F1 Intern
Class Intern
Type Array of Float32
Flags Array|State|Noedit
Elements 60
Body RtBody
Contains the values of the attribute specfied in FloatAttr[0].

F2 Intern
Class Intern
Type Array of Float32
Flags Array|State|Noedit
Elements 60
Body RtBody
Contains the values of the attribute specfied in FloatAttr[1].

F3 Intern
Class Intern
Type Array of Float32
Flags Array|State|Noedit
Elements 60
Body RtBody
Contains the values of the attribute specfied in FloatAttr[2].

F4 Intern
Class Intern
Type Array of Float32
Flags Array|State|Noedit
Elements 60
Body RtBody
Contains the values of the attribute specfied in FloatAttr[3].

F5 Intern
Class Intern
Type Array of Float32
Flags Array|State|Noedit
Elements 60
Body RtBody
Contains the values of the attribute specfied in FloatAttr[4].

B1 Intern
Class Intern
Type Array of Boolean
Flags Array|State|Noedit
Elements 60
Body RtBody
Contains the values of the attribute specfied in BooleanAttr[0].

B2 Intern
Class Intern
Type Array of Boolean
Flags Array|State|Noedit
Elements 60
Body RtBody
Contains the values of the attribute specfied in BooleanAttr[1].

B3 Intern
Class Intern
Type Array of Boolean
Flags Array|State|Noedit
Elements 60
Body RtBody
Contains the values of the attribute specfied in BooleanAttr[2].

B4 Intern
Class Intern
Type Array of Boolean
Flags Array|State|Noedit
Elements 60
Body RtBody
Contains the values of the attribute specfied in BooleanAttr[3].

B5 Intern
Class Intern
Type Array of Boolean
Flags Array|State|Noedit
Elements 60
Body RtBody
Contains the values of the attribute specfied in BooleanAttr[4].

I1 Intern
Class Intern
Type Array of Int32
Flags Array|State|Noedit
Elements 60
Body RtBody
Contains the values of the attribute specfied in IntAttr[0].

I2 Intern
Class Intern
Type Array of Int32
Flags Array|State|Noedit
Elements 60
Body RtBody
Contains the values of the attribute specfied in IntAttr[1].

I3 Intern
Class Intern
Type Array of Int32
Flags Array|State|Noedit
Elements 60
Body RtBody
Contains the values of the attribute specfied in IntAttr[2].

I4 Intern
Class Intern
Type Array of Int32
Flags Array|State|Noedit
Elements 60
Body RtBody
Contains the values of the attribute specfied in IntAttr[3].

I5 Intern
Class Intern
Type Array of Int32
Flags Array|State|Noedit
Elements 60
Body RtBody
Contains the values of the attribute specfied in IntAttr[4].

FloatAttrOffs Intern
Class Intern
Type Array of Int32
Flags Array|Invisible
Elements 5
Body RtBody
Calculated offset for the float attributes.

BooleanAttrOffs Intern
Class Intern
Type Array of Int32
Flags Array|Invisible
Elements 5
Body RtBody
Calculated offset for the boolean attributes.

IntAttrOffs Intern
Class Intern
Type Array of Int32
Flags Array|Invisible
Elements 5
Body RtBody
Calculated offset for the integer attributes.

SelectObjid Intern
Class Intern
Type Objid
Flags State|Invisible
Body RtBody

DataSize Intern
Class Intern
Type UInt32
Flags State|Invisible
Body RtBody

OldLastIndex Intern
Class Intern
Type Int32
Flags State|Invisible
Body RtBody

PlcNode Buffer
Class Buffer
Type pwrs:Class-$PlcNode
Flags Invisible
Body DevBody