Hello,
when using a type-structure with a pre-defined elements you have to add the needed number of elements. The data-model cannot be extended on demand when receiving a various number of entries in the dyn-array.
When defining a dp-element of a dyn-type there is no possibility to define a fixed number of entries in the dyn-array. The number of entries can vary with every dpSet made to this dp-element. Therefore the values change when a new value is received from the driver.
If the elements for the dyn_array can only be addressed by using a specific peripheral address you have to define an own dp-element with the necessary peripheral address for every entry in the dyn_array.
There is no possibility to add an array of addresses to a single dp-element.
Best Regards
Leopold Knipp
Senior Support Specialist
dyn_int datatype and periphery address
- olduser2343
- Posts:20
- Joined: Thu Jan 01, 1970 1:00 am
Re: dyn_int datatype and periphery address
Hi Leopold,
LK>when using a type-structure with a pre-defined elements you have to add the needed number of elements.
I agree with that.
Then, my problems is "How do I add the pre-defined number of elements?"
I couldn't find a way to specify "I want to 10 elements in my dyn_int"
LK>you have to define an own dp-element with the necessary peripheral address for every entry in the dyn_array.
YESSSS! That's what I want to do. Again, the question is: HOW?
LK>There is no possibility to add an array of addresses to a single dp-element.
That's not what I need. I want an address for every element of the dyn_array.
Ciao,
Ezio
LK>when using a type-structure with a pre-defined elements you have to add the needed number of elements.
I agree with that.
Then, my problems is "How do I add the pre-defined number of elements?"
I couldn't find a way to specify "I want to 10 elements in my dyn_int"
LK>you have to define an own dp-element with the necessary peripheral address for every entry in the dyn_array.
YESSSS! That's what I want to do. Again, the question is: HOW?
LK>There is no possibility to add an array of addresses to a single dp-element.
That's not what I need. I want an address for every element of the dyn_array.
Ciao,
Ezio
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: dyn_int datatype and periphery address
Hello,
you have to differ between a datatype-structure and a dyn-array in your datapoint-type.
When using a datatype-structure you have to define a node with the necessary structure type. Afterwards you have to add the number of necessary elements below this structure at the dp-type-editor.
At the datapoint you can define an _address-config for every element of the datatype-structure.
If this does not solve your problem please make an official support request via support.automation@siemens.com including the necessary information.
https://portal.etm.at/index.php?view=it ... &Itemid=54
Best Regards
Leopold Knipp
Senior Support Specialist
you have to differ between a datatype-structure and a dyn-array in your datapoint-type.
When using a datatype-structure you have to define a node with the necessary structure type. Afterwards you have to add the number of necessary elements below this structure at the dp-type-editor.
At the datapoint you can define an _address-config for every element of the datatype-structure.
If this does not solve your problem please make an official support request via support.automation@siemens.com including the necessary information.
https://portal.etm.at/index.php?view=it ... &Itemid=54
Best Regards
Leopold Knipp
Senior Support Specialist
- olduser2343
- Posts:20
- Joined: Thu Jan 01, 1970 1:00 am
Re: dyn_int datatype and periphery address
Hi Leopold.
LK>you have to differ between a datatype-structure and a dyn-array in your datapoint-type.
No questions about that.
LK>When using a datatype-structure you have to define a node with the necessary structure type.
LK>Afterwards you have to add the number of necessary elements below this structure at the dp-type-editor.
No questions about these either, that's all plain-vanilla PVSS stuff.
LK>At the datapoint you can define an _address-config for every element of the datatype-structure.
Of course I can.
You describe what it is possible to do in term of periphery addressing on a normal, structured datapoint.
The real point about this whole topic is wether it is possible or not, to do what you described above on a dyn_int datatype kind of DP.
The dyn_int is a datatype-structure, it has elements in it (or, it is supposed to have elements), and I'm wondering "How can I define a periphery address to an element of a dyn_int?"
Apparently, the DP-editor and the PARA module allow me to define a dyn_int but NOT to work on its' members. is this true, or am I missing something?
Cheers,
Ezio
LK>you have to differ between a datatype-structure and a dyn-array in your datapoint-type.
No questions about that.
LK>When using a datatype-structure you have to define a node with the necessary structure type.
LK>Afterwards you have to add the number of necessary elements below this structure at the dp-type-editor.
No questions about these either, that's all plain-vanilla PVSS stuff.
LK>At the datapoint you can define an _address-config for every element of the datatype-structure.
Of course I can.
You describe what it is possible to do in term of periphery addressing on a normal, structured datapoint.
The real point about this whole topic is wether it is possible or not, to do what you described above on a dyn_int datatype kind of DP.
The dyn_int is a datatype-structure, it has elements in it (or, it is supposed to have elements), and I'm wondering "How can I define a periphery address to an element of a dyn_int?"
Apparently, the DP-editor and the PARA module allow me to define a dyn_int but NOT to work on its' members. is this true, or am I missing something?
Cheers,
Ezio
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: dyn_int datatype and periphery address
Hello,
for a dp-element only one address can be defined, even if it is a dyn-datatype.
If the driver supports dyn-arrarys all items for the dyn-array when the value for the given address is changed in the PLC.
There is no possibility to assign seperate addresses to the elements of a dyn-array when they are written to a single dp-element.
Best Regards
Leopold Knipp
Senior Support Specialist
for a dp-element only one address can be defined, even if it is a dyn-datatype.
If the driver supports dyn-arrarys all items for the dyn-array when the value for the given address is changed in the PLC.
There is no possibility to assign seperate addresses to the elements of a dyn-array when they are written to a single dp-element.
Best Regards
Leopold Knipp
Senior Support Specialist
- olduser2343
- Posts:20
- Joined: Thu Jan 01, 1970 1:00 am
Re: dyn_int datatype and periphery address
OK, this settles the issue.
Thank you Leopold.
Ezio
Thank you Leopold.
Ezio
- olduser2343
- Posts:20
- Joined: Thu Jan 01, 1970 1:00 am
Re: dyn_int datatype and periphery address
Thank you Leopold.
This settles the issue.
Ezio
This settles the issue.
Ezio