Write Local Register

NI Vision Builder

Write Local Register

Use this dialog box to configure your system to write data to local registers.

How to Use

  1. Select the type of data to write.
    • If you select Boolean Constant, enable or disable the corresponding checkbox to write the corresponding value to the register.
    • If you select Numeric Constant, enter the value of the numeric constant to write to the register.
    • If you select String Constant, enter the string to write to the register.
    • If you select Measurement, select a measurement or variable from the Measurements list to write to the register.
  2. In Write to Local Register, select the register table to which you want to write. The options are Discrete Input, Coils, Input Registers, or Holding Registers.
  3. Specify the start address of the registers to write.
  4. Specify the type of data to write. If the output type is different from the input type, specify the measurement formatting.
  5. Type a comment about the data to write.

Control Descriptions

The following controls are available on the Write Local Register dialog box.

Control Name Description
Data to Write to Local Register Specifies the type of data to write.
  • Boolean Constant—When selected, writes a Boolean constant to the register. The value of the Boolean to write is specified by the corresponding checkbox.
  • Numeric Constant—When selected, writes a numeric constant to the register. Specify the value to write in the corresponding control.
  • String Constant—When selected, writes a string constant to a set of registers. Specify the string to write in the corresponding control.
  • Measurement—When selected, writes a measurement or variable value to a register. Select the measurement to write from the Measurements list.
Write to Local Register Specifies the register to write.
  • Table—Type of register to which you want to write.
  • Start Address—Address of the register to write.
  • Type—Type of data to write to the register.
  • Number of Registers—When you write a string whose type is ASCII, you can choose the number of registers to which you want to write.
Measurement Formatting Specifies how you want to format the data if the output type is different from the input type.
Input Type Output Type Formatting
Numeric Boolean No formatting necessary. Value sent is True if numeric is different than 0.
Numeric String Width is the number of digits to use. Precision is the number of digits after the decimal point of the output string.
Boolean Numeric Specify the value to read if the Boolean is False (False Value) and if the Boolean is True (True Value).
Boolean String Specify the string to send when the Boolean is True (True String) and when the Boolean is False (False String).
String Numeric No formatting necessary. Vision Builder AI converts the string to a double.
String Boolean Specify the string that corresponds to a True Value.
Comment Comment about the measurement to write.