Topic: DMD0010 REFWRITE - Write Value Indirectly |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The Write Value Indirectly (REFWRITE) instruction writes the specified value to the bit or numeric location in the Do-more controller (structure elements are not supported).
The numerical element is referenced by the appropriate block type from the following list, and the offset of the desired element within that block.
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameters:Note: Use the F9 key (Element Browser) or Down-Arrow key (Auto-Complete) at any time to see a complete list of the memory locations that are valid in the current field of the instruction.
Value - the Value to be written. This can be any constant value, any readable bit location, or any readable numeric location.
Reference Type - specifies the destination memory block number from the following table. Typically this will be a register location that will contain the desired memory block number.
Note:
If the Reference Type is not a valid memory block number, $IndexError
(ST129) will be ON.
Reference ID - designates the
index within the selected memory block where the Value
will be written. Typically this will be a register location that will
contain the offset value. This can be any constant value from 0 to 65535
or any readable numeric location. Note: If the Reference ID value exceeds the size of the block $IndexError (ST129) will be ON.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See Also:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Rung Example:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|