Class DataSelect
Version 1.0
Modified 07-JUL-2017 13:58:14.00
Code nmps_plc.c
 Select one data input due to the supplied index.
 Up to sixteen data object can be connected to the DataSelect object. One
 of these is passed to the output. The input can be connected to data output,
 of for example GetData or DataArith objects.

 MaxIndex specifies the number of used inputs. All the input between 1 and
 MaxIndex has to be connected.

 Index specifies which data input to select. Index 1 selects the first, 2 the
 second etc. If Index < 1 the first is selected, and if Index > MaxIndex the
 last (MaxIndex) is selected.

See also



RtBody attributes pwr_sClass_DataSelect
Float32 Index Idx Controls which data input is selected. For Index 1 the first is select etc.
Float32 MaxIndex Max Number of connected data inputs. All inputs between 1 and MaxIndex has to be connected.
Pointer to Void DataIn1 Da1 Data input.
Pointer to Void DataIn2 Da2 Data input.
Pointer to Void DataIn3 Da3 Data input.
Pointer to Void DataIn4 Da4 Data input.
Pointer to Void DataIn5 Da5 Data input.
Pointer to Void DataIn6 Da6 Data input.
Pointer to Void DataIn7 Da7 Data input.
Pointer to Void DataIn8 Da8 Data input.
Pointer to Void DataIn9 Da9 Data input.
Pointer to Void DataIn10 Da10 Data input.
Pointer to Void DataIn11 Da11 Data input.
Pointer to Void DataIn12 Da12 Data input.
Pointer to Void DataIn13 Da13 Data input.
Pointer to Void DataIn14 Da14 Data input.
Pointer to Void DataIn15 Da15 Data input.
Pointer to Void DataIn16 Da16 Data input.
DataRef OutDataP Out Data output with a reference to the data object of the selected input.

DevBody attributes 
pwrs:Class-$PlcNode PlcNode  


GraphPlcNode
object_type 11
parameters[0] 18
parameters[1] 0
parameters[2] 1
parameters[3] 0
graphmethod 16
graphindex 0
default_mask[0] 13
default_mask[1] 1
segname_annotation 1
compmethod 4
compindex 0
tracemethod 0
traceindex 0
connectmethod 0
executeordermethod 2
objname DaSelect
graphname DaSelect


Template Object
MaxIndex 2.000000e+00


Attributes detail


Index Input
Class Input
Type Float32
Flags
GraphName Idx
Body RtBody
Controls which data input is selected. For Index 1 the first is select etc.

MaxIndex Input
Class Input
Type Float32
Flags
GraphName Max
Body RtBody
Number of connected data inputs. All inputs between 1 and MaxIndex has to be connected.

DataIn1 Input
Class Input
Type Pointer to Void
Flags Pointer
GraphName Da1
Body RtBody
 Data input.

DataIn2 Input
Class Input
Type Pointer to Void
Flags Pointer
GraphName Da2
Body RtBody
 Data input.

DataIn3 Input
Class Input
Type Pointer to Void
Flags Pointer
GraphName Da3
Body RtBody
 Data input.

DataIn4 Input
Class Input
Type Pointer to Void
Flags Pointer
GraphName Da4
Body RtBody
 Data input.

DataIn5 Input
Class Input
Type Pointer to Void
Flags Pointer
GraphName Da5
Body RtBody
 Data input.

DataIn6 Input
Class Input
Type Pointer to Void
Flags Pointer
GraphName Da6
Body RtBody
 Data input.

DataIn7 Input
Class Input
Type Pointer to Void
Flags Pointer
GraphName Da7
Body RtBody
 Data input.

DataIn8 Input
Class Input
Type Pointer to Void
Flags Pointer
GraphName Da8
Body RtBody
 Data input.

DataIn9 Input
Class Input
Type Pointer to Void
Flags Pointer
GraphName Da9
Body RtBody
 Data input.

DataIn10 Input
Class Input
Type Pointer to Void
Flags Pointer
GraphName Da10
Body RtBody
 Data input.

DataIn11 Input
Class Input
Type Pointer to Void
Flags Pointer
GraphName Da11
Body RtBody
 Data input.

DataIn12 Input
Class Input
Type Pointer to Void
Flags Pointer
GraphName Da12
Body RtBody
 Data input.

DataIn13 Input
Class Input
Type Pointer to Void
Flags Pointer
GraphName Da13
Body RtBody
 Data input.

DataIn14 Input
Class Input
Type Pointer to Void
Flags Pointer
GraphName Da14
Body RtBody
 Data input.

DataIn15 Input
Class Input
Type Pointer to Void
Flags Pointer
GraphName Da15
Body RtBody
 Data input.

DataIn16 Input
Class Input
Type Pointer to Void
Flags Pointer
GraphName Da16
Body RtBody
 Data input.

OutDataP Output
Class Output
Type DataRef
Flags State|Noedit
GraphName Out
Body RtBody
 Data output with a reference to the data object of the selected input.

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