# system.opc.writeValue

**URL:** <https://forum.inductiveautomation.com/t/system-opc-writevalue/23513>\
**Category:** Module Development\
**Created:** [March 21, 2019, 4:58pm UTC](https://forum.inductiveautomation.com/t/system-opc-writevalue/23513 "2019-03-21T16:58:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kraenbring](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@Kraenbring](https://forum.inductiveautomation.com/u/Kraenbring)\
**Post date:** [March 21, 2019, 4:58pm UTC](https://forum.inductiveautomation.com/t/system-opc-writevalue/23513/1 "2019-03-21T16:58:45Z")

</div>

Is there an module example of an equivalent to this command:

system.opc.writeValue(‘Ignition OPC-UA Server’,myTagPath, myNewValue)

(and the corresponding read command)

I’m not looking to create tags in Ignition and write them. I want to write/read directly to the plc addresses using the Ignition OPC-UA server and PLC device. I’ve seen the module example code for the simple tag provider and such, but it doesn’t seem to cover exactly what I’m looking for.

Thanks!

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 21, 2019, 5:04pm UTC](https://forum.inductiveautomation.com/t/system-opc-writevalue/23513/2 "2019-03-21T17:04:41Z")

</div>

Use the `read` and `write` methods on the `OPCManager` you get from `GatewayContext`.
