Skip to main content
1-Visitor
April 2, 2024
Solved

Write a constant string value to a tag

  • April 2, 2024
  • 1 reply
  • 1787 views

Hi,

Is it possible to permanently write a constant value (in my case a string value) to a tag within Kepware?

Thanks!

Best answer by ntripathi

Greetings @WH_11011145 

 

In Kepware, you can write a constant value (such as a string) to a tag. Please follow the steps:-

 

1. Tag Configuration:

  • First, ensure that you have the appropriate tag set up in Kepware. This tag should be associated with the device or data source you’re working with.

2. Tag Value Assignment:

  • Once you have the tag configured, assign the constant value (string) to it:
    • Locate the tag in Kepware’s tag list.
    • Edit the tag properties.
    • Look for a field where you can set the value. Depending on the tag type, this field might be labeled “Value,” “Initial Value,” or something similar.
    • Enter your desired constant string value.
  • Test the setup by monitoring the tag value in Kepware and verifying that it matches the constant string you assigned.
  • Also, check the PLC side to ensure that the value has been successfully written.

1 reply

ntripathi15-MoonstoneAnswer
15-Moonstone
April 2, 2024

Greetings @WH_11011145 

 

In Kepware, you can write a constant value (such as a string) to a tag. Please follow the steps:-

 

1. Tag Configuration:

  • First, ensure that you have the appropriate tag set up in Kepware. This tag should be associated with the device or data source you’re working with.

2. Tag Value Assignment:

  • Once you have the tag configured, assign the constant value (string) to it:
    • Locate the tag in Kepware’s tag list.
    • Edit the tag properties.
    • Look for a field where you can set the value. Depending on the tag type, this field might be labeled “Value,” “Initial Value,” or something similar.
    • Enter your desired constant string value.
  • Test the setup by monitoring the tag value in Kepware and verifying that it matches the constant string you assigned.
  • Also, check the PLC side to ensure that the value has been successfully written.