Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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.

For a simple read access of a (hypothetical) 32bit object entry with an index=0x1234 and subindex=0x56, the service call is:

CODirRdLong(&demo.Dir, CO_DEV(0x1234,0x56), &value);

The following diagram shows the internal behavior of this service.

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:

  • No labels