Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2016-09-08
Originally created by: KevinR
I know this is an old entry.
but how can i define the default Value for ArrayType?
I tried following:
<Typesnamespace="localTypes">
  <ArrayTypename="ArrayTest"basetype="std:REAL">
  <Default>[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]</Default>
    <FirstDimension>
      <LowerBorder>0</LowerBorder>
      <UpperBorder>7</UpperBorder>
    </FirstDimension>
  </ArrayType></Types>
But this doesnt Work.
I also tried it under the Parameter Section, but this doesn't work, too.
Can someone please help me to solve this easy looking problem?
Thank you in advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Originally created by: OW_RPi
Hello,
want to creat a description file for a device and need an array.
But I do not know how to add items to the array:
Please help!
Best regards,
Oleg
Originally created by: OW_RPi
<types namespace="local">
<arraytype type="local:Settings" name="Test123" basetype="std:BYTE">
<firstdimension>
<lowerborder>0</lowerborder>
<upperborder>9</upperborder>
</firstdimension>
<seconddimension>
<lowerborder>0</lowerborder>
<upperborder>3</upperborder>
</seconddimension>
</arraytype>
</types>
Originally created by: KevinR
I know this is an old entry.
but how can i define the default Value for ArrayType?
I tried following:
But this doesnt Work.
I also tried it under the Parameter Section, but this doesn't work, too.
Can someone please help me to solve this easy looking problem?
Thank you in advance