Full qualified Access

Top 

 

You can access data in data blocks in three different ways:

 

1.) You open a DB with the operation OPN. All following accesses to a DBX, DBB, DBW or DBD refer to the data in the opened block then.

 

2.) You use the full qualified access, that means you specify explicitly out of which DB the data shall be taken.

 

      L       DB10.DBW 10,

 

Here no doubt is possible which data word shall be loaded. Attention! Doing this the DB10 is opened automatically!

 

3.) You use the name of a parameter or a variable out of the declaration part of a function block. By this an access to the instance-DB with which the instance DB is called happens. The system always puts a # in front of the name, but you will not have to enter this character if the name is obvious.