Topic: DMD0063

DEVWRITE - Write Device Register


The Write Device Register (DEVWRITE) instruction is used to write a configuration value to a register in a Device. The individual registers that can be written to, and the values that can be written are defined by the Device.

 

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 pre-configured devices to create the Device Struct for.

 

No devices available - indicates there is no device that is appropriate for this instruction. Select one of the following to create the required device:
 

 

Write Register - designates which register in the Device to write to
 

  • If the Device is the Onboard Serial port or a port on a SERIO module, the following values are valid:
     

    • Serial Control - valid Values are shown below
       

    • Modbus/RTU Master Inner-packet Delay (uSec)

 

Value - the value to write to the register in the Device. This can be any constant value or any readable numeric location
 

  • If the Write Register is Serial Control, the following are valid Values:

    • 0x00 - lower the RTS line of the serial port
       

    • 0x01 - assert the RTS line of the serial port

 

  • if the Write Register is Modbus/RTU Master Inter-packet Delay (uSec), the Values are valid:

    • 0 to 65535

 


See Also:

 


Related Topics:

 


Rung Example: