I'm new to programming, so my question is when I define a variable like this,
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.
here is a getting started with ABB AC500 V2 manual (codesys v23 based hardware)
there is also a getting started for AC500 v3 hardware (Codesys v35 based)
I've read all of these in the past , sadly there's no answer to my questions in these documents.
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.
-> 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
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.
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?
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.
Please read up on MODBUS TCP Client/Server for AC500 in their help.
Log in to post a comment.