# Indirect address component writing default value to PLC

**URL:** <https://forum.inductiveautomation.com/t/indirect-address-component-writing-default-value-to-plc/67706>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [December 16, 2022, 6:06am UTC](https://forum.inductiveautomation.com/t/indirect-address-component-writing-default-value-to-plc/67706 "2022-12-16T06:06:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaoliang](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@chaoliang](https://forum.inductiveautomation.com/u/chaoliang)\
**Post date:** [December 16, 2022, 6:06am UTC](https://forum.inductiveautomation.com/t/indirect-address-component-writing-default-value-to-plc/67706/1 "2022-12-16T06:06:33Z")

</div>

Here's the issue:

1. there's a numericEntry component created as a library element.
2. in this numericEntry compnent, there's a property called "value", set as InOut type.
3. this property has a default setting as "12.33".
4. this numeric entry is used used multiple time on the screen for control setpoint entry.
5. when this component is called, it's using indirect tag to assign the "value" property.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/d/8d4304a7131393ec6f26e03065badb197ca0c1e1.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/f/0f11317db75e2e21cefa46322ada52fe8c5f2e6e.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/2/e2c0c470836db92dd3aeebaf7d6e83b3ea197cc0.png)

Somehow, from time to time, some part of the setpoint list will be changed to 12.33 in the PLC.

I checked with local IA tech support. I have been advised to change the default value to "null". It may prevent writing PLC with default value, as "null" is invalid.  
Another suggestion is to assign the tag path as property to this component instead of actual value, then in the component to assign value to the PLC directly using the tag path, this way, the layer of InOut "Value" parameter can be removed, which could be cause of this issue.

I would like to check from the forum to see whether it also happened to you guys?  
What's the root cause of this issue?

I am using perspective, Ignition V8.19.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [December 16, 2022, 11:00am UTC](https://forum.inductiveautomation.com/t/indirect-address-component-writing-default-value-to-plc/67706/2 "2022-12-16T11:00:46Z")

</div>

Definitely don't pass the value of the tag and all its associated properties (eng unit, format, etc.) into the View, this is not good design. Pass the tag path into the View, then you have the freedom to read whatever properties you might need, now and in the future.

---

<div class="post-metadata">

**Author:** ![chaoliang](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@chaoliang](https://forum.inductiveautomation.com/u/chaoliang)\
**Post date:** [December 20, 2022, 5:33am UTC](https://forum.inductiveautomation.com/t/indirect-address-component-writing-default-value-to-plc/67706/3 "2022-12-20T05:33:24Z")

</div>

Just notice something interesting.  
Current the setup has not been updated due to amount of changes across the whole project.

But here's what is happening:

1. this forced writing to PLC action takes place only when I open the view from the designer, happened only to perspective, not to vision.
2. only when I switched to "NO read/write" mode on the designer before opening the view, can it prevents the forced writing action. If I choose "read only" mode on the designer, it will still force the default value to PLC. It may need IA to further investigate.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/a/8afd54943b85a36c9f3f508c5cc625ea1c12e45d.png)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 20, 2022, 2:10pm UTC](https://forum.inductiveautomation.com/t/indirect-address-component-writing-default-value-to-plc/67706/4 "2022-12-20T14:10:30Z")

</div>

This sounds like #5433:

> [@Nightly 8.1 Changelogs - 2022](https://forum.inductiveautomation.com/t/nightly-8-1-changelogs-2022/54636/167):
>
> Weekly Changelog: 8.1.23-b20221111 Visualization 229: Time Series Chart - Add a "relative weight" property to the plots config Adds a new "relative weight" property to the plots config that allows a user to set the amount of relative space each plot can take in a Time Series chart. 5959: Perspective session doesn’t always recover from unexpected disconnect Ensured sessions clear stale sync requests upon reconnection. Prevented Gateway scoped action events from accumulating when there is no …

So, upgrade to v8.1.23 and see if you still have the problem.
