Member Login
member
passwd
remember me on this computer.

- join now -

Search

Past & Future Posts
Neat Stuff

Visit our shop for nerds in control lifestyle products.

Cool stuff
Select a topic of interest:
...and press:
Fortune
Life is like a bowl of soup with hairs floating on it. You have to
eat it nevertheless.
-- Flaubert
RSS Feed
RSS feed Use this link to get an RSS feed of the Control.com article flow, for private, non-commercial use only:
www.control.com/rss
Select a Page Style
Select one of the following styles:
- BluFu
- Classic
(cookies required)
from the Automation List department...
Unity Pro DDT
Software in Automation topic
advertisement
Posted by Vinod on 3 March, 2008 - 5:37 pm
I cannot give located physical address for DDT (Derived Data Types ) elements. Only option is to give a starting address for the DDT itself. If my DDT contains different datatypes, the address allocation is not proper. Any thoughts on this?

Posted by Troy on 10 April, 2008 - 11:54 pm
We are running into the same problem. It looks like if you mix and match data types such as real, int, and bool, it assigns your addressing for you.

You can re-order so it is a better fit though. For example, we have 5 REAL's followed by 2 INT's and then 10 BOOLS. (Note that BOOL's use a byte of a word.) If we start at MW3000, 17 words are used, MW3000 to MW3016. Be sure to add some spares in case you want to add a real or a bool later.

Another approach is to make a separate DDT for BOOLS, REALS, INTS, etc. For example have MOTOR_Bool for your first DDT and have MOTOR_Real for your second DDT. This way you can use M1000 for your BOOL's and MW3000 for your reals. This would save memory since we are not wasting 7 bits for each BOOL this way.

From Control Engineering magazine...
Related articles from Control Engineering magazine
Above articles copyright 2008 Reed Business Information. Subject to its Terms of Use.

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2008 Control Technology Corporation. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, PostgreSQL and Apache. Be happy.

Advertisement
Our Advertisers
Help keep our servers running...
Patronize our advertisers!