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

Device Description File - Array

Anonymous
2015-09-12
2016-09-08
  • Anonymous - 2015-09-12

    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:

    <Types namespace="local">
        <ArrayType basetype="std:BYTE" name="Test123" 
        </ArrayType>
    

    Please help!

    Best regards,
    Oleg

     
  • Anonymous - 2015-09-17

    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>

     
  • 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:

    <Types namespace="localTypes">
       <ArrayType name="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

     

Log in to post a comment.