Commit 2a63b77e authored by Claes Sjofors's avatar Claes Sjofors

man_dg class editor text about pointer attributes added

parent b09a1ab7
......@@ -6669,7 +6669,16 @@ the Array bit in Flags, and state the number of elements in the array in Element
<image> ced_fig3.gif
<b>Definition of an array attribute with 50 elements
<b>Pointers
There are two types of pointer attributes
- relative pointers that can be used by serveral processes. The value is set with the
gdh_StoreRtdbPointer() function and converted to an absolute pointer with
gdh_TranslateRtdbPointer(). Set the Pointer bit in Flags. Note! The size of the element the
pointer is pointing at should be set in Size (in bytes).
- absolute pointers. These can only be set and used by one single process. Set the Pointer
bit and the Private bit in Flags.
<b>Attribute objects
The term attribute objects refer to attributes that are described by a data structure. The
......@@ -6980,7 +6989,9 @@ pwrs:Type-AttrRef. The attribute is handled by the IoConnect method.
<b>IoStatus
If you want to fetch the status from the I/O-module object, you create the attribute
'IoStatus' of type pwrs:Type-$Status, and set the Pointer bit in Flags.
'IoStatus' of type pwrs:Type-$Status, and set the Pointer bit in Flags. You also have
to set 4 in Size (for relative pointers the size of what the pointer is pointing at, has
to specified in Size).
The attribute will be assigned a pointer to the Status attribute of the I/O-module in runtime
when the I/O handling is initialized. The Status attribute is of type Status and can for example
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment