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. |
| 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
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.
The value of the first element in the array.
The value of the second element in the array.
The value of the third element in the array.
The value of the corresponding element in the array.
The value of the corresponding element in the array.
The value of the corresponding element in the array.
The value of the corresponding element in the array.
The value of the corresponding element in the array.
The value of the corresponding element in the array.
The value of the corresponding element in the array.
The value of the corresponding element in the array.
The value of the corresponding element in the array.
The value of the corresponding element in the array.
The value of the corresponding element in the array.
The value of the corresponding element in the array.
The value of the corresponding element in the array.
The value of the corresponding element in the array.
The value of the corresponding element in the array.
The value of the corresponding element in the array.
The value of the corresponding element in the array.
The value of the corresponding element in the array.
The value of the corresponding element in the array.
The value of the corresponding element in the array.
The value of the corresponding element in the array.
Number of used outputs. This value has to be supplied by the user.