advertisement
from the "What is normal practice?" department...
Consecutive registers vs. shared registers across projects
Local and wide area networking in factory automation. topic
Posted by Christian on 16 July, 2012 - 8:52 pm
Today at the office we have been discussing what is the best approach for defining our own modbus registers.

On one hand we would like to use the same modbus registers for the same parameters across projects. That way we can use general master software to request the same parameters from different types of slaves. Therefore we plan to define the modbus registers we use along with their associated parameters in a central document, which is common for all projects.

On the other hand, for reasons of efficiency we would also like our master applications to be able to request a batch of modbus registers in one query and not request only one register in each query.

However, if we use the same modbus registers for the same parameters across projects, we won't be able to achieve register consecutiveness.

Similarly, if we define the needed registers consecutively for each project, we won't be able to use the same registers for the same parameters across projects.

Since we can't have it both ways, I would like to ask which of the two above mentioned alternatives are common practice.

Thanks in advance.

Christian


Posted by Lynn August Linse on 17 July, 2012 - 11:25 am
Actually, you can have it both ways (unless you are running out of logic space).

Nothing stops you from creating project specific data ranges, then using 'MOV' or other instructions to aggregate a 'common block' elsewhere. this also helps the 'common block' be smaller since you don't bloat it with one-offs.

It does complicate writable settings, but common blocks which are read aggressively by many hosts are probably not the best place to put write/control anyway.

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-2013 Nerds in Control, LLC. All rights reserved.

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


Fortune
Old age is the most unexpected of things that can happen to a man.
-- Trotsky
Advertise here
Advertisement
our advertisers
Help keep our servers running...
Patronize our advertisers!
Visit our Post Archive