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

Where can I see the available addresses or the auto declared ones?

2021-10-02
2021-10-03
  • mysticbaklava

    mysticbaklava - 2021-10-02

    I'm new to programming, so my question is when I define a variable like this,

    Variable_A: REAL;

    and don't add the "AT" to pick an address for it. What happens to this variable? Where can I see the assigned address after I compile the program?

    Is there a place where I can see the avaible addresses?

    Btw I'm using ABB's automation builder.

     
  • mysticbaklava

    mysticbaklava - 2021-10-02

    I've read all of these in the past , sadly there's no answer to my questions in these documents.

     
  • h-hermsen

    h-hermsen - 2021-10-02

    AT is a fairly old fashioned way of declaring variables which point at hardware addresses (%I, %X, %M, %Q). If you are using ABB Automation Builder, this mechanism is also redundant(!) and you should not use it since the V3.5 hardware tree editor will let you declare variables directly in the V2 hardware. After starting up V2.3 editor the declared variables from the V3.5 hardware tree are automatically available as GLOBALS in V2.3 editor.

    Same works in reverse,if you declare a global, you can select them up in the V3.5 Hardware tree editor as IO(!), and no AT %* necessary :-)

    Other OEM's may have implemented different tricks to help you declare IO variables for V2.3 based hardware varies.

    I've read all of these in the past , sadly there's no answer to my questions in these documents.

    -> https://library.abb.com/d/3ADR010649 See page 16 and 17, it explains what I explained above. Please read the manual again(!)

    With kind regards

     
    πŸ‘
    1

    Last edit: h-hermsen 2021-10-02
    • mysticbaklava

      mysticbaklava - 2021-10-03

      Thanks for the reply.
      I've seen that part, it only shows the hardware IO declaration. What I'm asking is if I could see the empty moemory blocks or where my unaddressed variables go in the memory.

       
      • h-hermsen

        h-hermsen - 2021-10-03

        What I'm asking is if I could see the empty memory blocks or where my unaddressed variables go in the memory

        Yes you can ask such detailed statistics but I don't remember where you could ask this. It has been a long time since I used v23.

        To be honest, why should/would you care WHERE your variables are place in the memory? It is of little importance unless you are using something like MODBUS or such?

         

        Last edit: h-hermsen 2021-10-03
        • mysticbaklava

          mysticbaklava - 2021-10-03

          My client wants to recieve every data on my system through Modbus TCP for their SCADA, for that I need the addresses but I didn't define them in the first place. So I'm just trying to locate them instead of defining 500 variables again.

           
  • h-hermsen

    h-hermsen - 2021-10-03

    Please read up on MODBUS TCP Client/Server for AC500 in their help.
    Good luck.

     

Log in to post a comment.