|
Topic: DMD0062 DEVREAD - Read Device Register |
|
|
|
|
|
The Read Device Register (DEVREAD) instruction is used to read the contents of a register in a Device. The individual registers that can be read, and what those values mean are defined by the Device that is being accessed.
The red triangle in the upper left corner indicates this is a Fully Asynchronous instruction.
|
|
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.
Device - designates which of the configured Devices, or which Device Reference to read from.
No devices
available - indicates there is no device that is appropriate for
this instruction. Select one of the following to create the required device:
Read Register - designates which
register in the Device to read
0x01 = the CTS line of the serial port is
asserted 0x32 = reserved
Output - designates a location to store the value that has been read from the Device. This can be any writable numeric location. To reference a bit value in a numeric element use a bit cast operation. For example, use D10:0 to reference bit 0 of DWord D10, use D8:31 to reference bit 31 of DWord D8.
|
|
|
|
|
See Also:
|
|
|
|
|
Related Topics:
|
|
|
|
|
Rung Example:
|
|
|
|
|