Class IpDistribute
Version 1.0
Modified 15-JAN-2025 13:23:37.00
Kod rt_plc_data.c
 The IpDistribute expands the number of integer outputs that can be
 handled in a DataArithm object.

 The IpDistribute has 24 integer outputs, which values can be set from
 an array of Int32 declared in the code of a DataArithm. By connecting
 the data input of the IpDistribute to an data output of a DataArithm,
 and placing the address of the integer array in the data output, the
 values of the array will be copied to the Ip output of the IpDistribute
 object. This expands the number of integer outputs from the DataArithm
 from ordinary 9 to 96, if all four data outputs are connected to IpDistribute
 objects.

 Another advantage of IpDistribute is that its sometimes convenient to have
 the values arranged in an array, for example to handle in an for or
 while loop.

 MaxIndex should be assigned the number of used outputs in the IpDistribute
 object. The value can be set at runtime or in the configurator.

 The array should be a static declared array of pwr_tInt32, with size
 greater or equal to the value in MaxIndex. Use the type pwr_sIpDistribute
 defined in $pwr_inc/rt_plc_data.h.

Example

 This is the code in a DataArithm witch has a IpDistribute object connected
 to the ODa1 output.

       static pwr_sIpDistribute vect;
       int i;

       ODa1 = vect;
       for ( i = 0; i < 24; i++)
         vect[i] = 0.1 * i;

See also



RtBody attributes pwr_sClass_IpDistribute
Pointer to Void DataIn Da Data input connected to a data output of a DataArithm object.
Int32 IpOut1 Ip1 The value of the first element in the array.
Int32 IpOut2 Ip2 The value of the second element in the array.
Int32 IpOut3 Ip3 The value of the third element in the array.
Int32 IpOut4 Ip4 The value of the corresponding element in the array.
Int32 IpOut5 Ip5 The value of the corresponding element in the array.
Int32 IpOut6 Ip6 The value of the corresponding element in the array.
Int32 IpOut7 Ip7 The value of the corresponding element in the array.
Int32 IpOut8 Ip8 The value of the corresponding element in the array.
Int32 IpOut9 Ip9 The value of the corresponding element in the array.
Int32 IpOut10 Ip10 The value of the corresponding element in the array.
Int32 IpOut11 Ip11 The value of the corresponding element in the array.
Int32 IpOut12 Ip12 The value of the corresponding element in the array.
Int32 IpOut13 Ip13 The value of the corresponding element in the array.
Int32 IpOut14 Ip14 The value of the corresponding element in the array.
Int32 IpOut15 Ip15 The value of the corresponding element in the array.
Int32 IpOut16 Ip16 The value of the corresponding element in the array.
Int32 IpOut17 Ip17 The value of the corresponding element in the array.
Int32 IpOut18 Ip18 The value of the corresponding element in the array.
Int32 IpOut19 Ip19 The value of the corresponding element in the array.
Int32 IpOut20 Ip20 The value of the corresponding element in the array.
Int32 IpOut21 Ip21 The value of the corresponding element in the array.
Int32 IpOut22 Ip22 The value of the corresponding element in the array.
Int32 IpOut23 Ip23 The value of the corresponding element in the array.
Int32 IpOut24 Ip24 The value of the corresponding element in the array.
Int32 MaxIndex   Number of used outputs. This value has to be supplied by the user.

DevBody attributes 
PlcNode PlcNode  


GraphPlcNode
object_type 11
parameters[0] 1
parameters[1] 2
parameters[2] 24
parameters[3] 0
subwindows 0
graphmethod 16
graphindex 0
default_mask[0] 1
default_mask[1] 3
segname_annotation 1
compmethod 4
compindex 0
tracemethod 0
traceindex 0
executeordermethod 2
objname IpDistr
graphname IpDistr
debugpar


Template Object
MaxIndex 2


Attributes detail


DataIn Input
Klass Input
Typ Pointer to Void
Flags POINTER | NOEDIT | NOREMOVE | NOINVERT | STATE
GraphName Da
Kropp RtBody
 Data input connected to a data output of a DataArithm object.
 In the DataAritm code, the address of en array should be placed in
 the connected data output.

IpOut1 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip1
Kropp RtBody
 The value of the first element in the array.

IpOut2 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip2
Kropp RtBody
 The value of the second element in the array.

IpOut3 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip3
Kropp RtBody
 The value of the third element in the array.

IpOut4 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip4
Kropp RtBody
 The value of the corresponding element in the array.

IpOut5 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip5
Kropp RtBody
 The value of the corresponding element in the array.

IpOut6 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip6
Kropp RtBody
 The value of the corresponding element in the array.

IpOut7 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip7
Kropp RtBody
 The value of the corresponding element in the array.

IpOut8 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip8
Kropp RtBody
 The value of the corresponding element in the array.

IpOut9 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip9
Kropp RtBody
 The value of the corresponding element in the array.

IpOut10 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip10
Kropp RtBody
 The value of the corresponding element in the array.

IpOut11 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip11
Kropp RtBody
 The value of the corresponding element in the array.

IpOut12 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip12
Kropp RtBody
 The value of the corresponding element in the array.

IpOut13 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip13
Kropp RtBody
 The value of the corresponding element in the array.

IpOut14 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip14
Kropp RtBody
 The value of the corresponding element in the array.

IpOut15 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip15
Kropp RtBody
 The value of the corresponding element in the array.

IpOut16 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip16
Kropp RtBody
 The value of the corresponding element in the array.

IpOut17 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip17
Kropp RtBody
 The value of the corresponding element in the array.

IpOut18 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip18
Kropp RtBody
 The value of the corresponding element in the array.

IpOut19 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip19
Kropp RtBody
 The value of the corresponding element in the array.

IpOut20 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip20
Kropp RtBody
 The value of the corresponding element in the array.

IpOut21 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip21
Kropp RtBody
 The value of the corresponding element in the array.

IpOut22 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip22
Kropp RtBody
 The value of the corresponding element in the array.

IpOut23 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip23
Kropp RtBody
 The value of the corresponding element in the array.

IpOut24 Output
Klass Output
Typ Int32
Flags REDUTRANSFER
GraphName Ip24
Kropp RtBody
 The value of the corresponding element in the array.

MaxIndex Intern
Klass Intern
Typ Int32
Flags
Kropp RtBody
 Number of used outputs. This value has to be supplied by the user.

PlcNode Buffer
Klass Buffer
Typ PlcNode
Flags INVISIBLE
Kropp DevBody