Codesys StructType in Device Description File

Anonymous
2018-08-13
2023-10-30
  • Anonymous - 2018-08-13

    Originally created by: osmaneliar

    Zitat:
    <structtype name="isos">
    <component identifier="my_name" type="std:STRING">
    <visiblename name="local:my_name">MYNAME</visiblename>
    </component>
    <component identifier="my_value" type="std:DWORD">
    <visiblename name="local:my_value">MYValue</visiblename>
    </component>
    </structtype>

    I defined a structure type as Input in my device description file. I install clearly my device desciption file to codesys editor. And , I wrote a I/O Template library in C programming as given codesys examples. Everything are OK until I try to login . Return an error from codesys editor . It says address aldready used. When I change String type to dword type in my device description , everything are working well. What is the wrong with a string type in device description ? How will i define string in c programming side ? I read documentation , it says default max 80 char for string . Any help , Any example please .

    How can I use std:string with Structure Type in device description. How can I match them in Codesys C programming I/O template library ? Please help .

     
  • ronald.de.jonge - 2023-10-30

    We have the same issue when using CODESYS V3.5 SP18 Patch 2. Is there a solution for this issue?

     

Log in to post a comment.