Use an Ignition Edge 8 tag Value Changed event script to copy a source value from one controller to a writable tag in another controller. In the documented example, Circulation_VFD is the source and WriteValTo is the destination.
Supported Mapping Mechanism
The mapping runs inside Ignition rather than either controller program. A Value Changed script attached to the source tag calls system.tag.writeAsync(tagPath, value). The function takes the destination tag path and the value to write.
| Element | Documented selection |
|---|---|
| Source tag | Circulation_VFD |
| Destination tag | WriteValTo |
| Event | Value Events > Value Changed Script |
| Write function | system.tag.writeAsync(tagPath, value) |
| Event value | currentValue |
The valueChanged event executes when the source tag's data or quality changes. This means a quality transition can invoke the script even when the process value has not changed.
Confirm the Architecture and License
Confirm that both controller data sources are accessible to the Ignition Edge gateway and that the destination tag accepts writes. The evidence describes this as an Ignition solution requiring Edge Compute, but also contains a later statement that Edge Compute became included with the Ignition Edge 8 license. Because those statements may reflect different licensing dates or packages, verify the installed license before commissioning.
Ignition Edge 8.1 is described as allowing two device connections by default. The evidence also distinguishes device connections from OPC UA client connections, but it does not establish that every controller exposes an OPC UA server. Count the actual connection type used by each controller and verify licensing when the architecture exceeds the available connections.
Configure the Value Changed Script
- Open the source tag,
Circulation_VFD, and navigate to Scripting > Tag Event Scripts. - Select the edit control for Tag Event Scripts, then choose Value Events > Value Changed Script.
- Insert
system.tag.writeAsync(tagPath, value)in the scripting area. - Use the tag browser to select the writable destination tag,
WriteValTo. Let the browser insert its complete tag path instead of manually guessing the provider or path syntax. - Use the event's
currentValueparameter as the value passed to the write function. - Accept the script changes, save the tag properties, and confirm that the updated configuration is active.
The resulting call has this evidence-supported form; replace the symbolic destination with the path inserted by the tag browser:
system.tag.writeAsync(destinationTagPath, currentValue)
Set the Update Rate
Adjust the source scan rate to match the application's response requirement. The evidence states that there is little benefit in scanning faster than 250 ms. Treat that value as the documented design recommendation, then validate it against the process response and communication load.
Do not interpret the asynchronous write as a reason to shorten the scan rate. The event frequency follows source data or quality changes, so unstable quality or rapidly changing data can generate additional write requests.
Verify the Mapping
- Observe
Circulation_VFDand record its current value and quality. - Change the source value through the normal process or controller test method.
- Confirm that
WriteValToreceives the new value after the source event executes. - Check behavior during a source quality change because quality changes also run
valueChanged. - If no value arrives, verify that the script and tag properties were saved, the browser-selected destination path is correct, the destination permits writes, both controllers are connected, and the installed license supports the configuration.
FAQ
How do I copy a PLC tag to another controller in Ignition Edge 8?
Attach a Value Changed event script to the source tag and call system.tag.writeAsync(tagPath, currentValue), using the tag browser to insert the destination path.
Why does my Ignition tag script run when the value did not change?
The documented valueChanged event runs when either the source data or its quality changes. Check the source quality history when diagnosing unexpected executions.
How fast should an Ignition Edge tag mapping scan?
The evidence recommends no faster than 250 ms because little is gained below that interval. Confirm the selected rate against the required process response and observed communication load.