Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Basic Objects

The read and write of basic objects is symmetrical. Therefore the description is limited to read access. The data width of basic objects is 8bit (byte), 16bit (word) or 32bit (long). All widths are handled in the same way, therefore the description is limited to 32bit (long) object entries.

...

The following diagram shows the internal behavior of this service.


Panel
borderWidth0
titleFigure - Read Basic Object

Image Added


For multiple accesses to the same object entry, the following sequence reduces the performance overhead, which are based on searching within the object directory. The object functions takes the pre-searched object entry (see service CODirFind()) as first argument:


Code Block
languagecpp
obj = CODirFind(&demo.Dir, CO_DEV(0x1234,0x56));
 
do {
    COObjRdValue(obj, &value, 4, 0);
 } while (value == 0);