# How to config address for a new OPC device using script

**URL:** <https://forum.inductiveautomation.com/t/how-to-config-address-for-a-new-opc-device-using-script/11525>\
**Category:** Ignition\
**Created:** [April 18, 2016, 7:06pm UTC](https://forum.inductiveautomation.com/t/how-to-config-address-for-a-new-opc-device-using-script/11525 "2016-04-18T19:06:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pratul](https://avatars.discourse-cdn.com/v4/letter/p/3ab097/32.png) [@pratul](https://forum.inductiveautomation.com/u/pratul)\
**Post date:** [April 18, 2016, 7:06pm UTC](https://forum.inductiveautomation.com/t/how-to-config-address-for-a-new-opc-device-using-script/11525/1 "2016-04-18T19:06:04Z")

</div>

Hello,

I am trying to configure addressing for a newly created OPC-UA device using the scripting functions.

I am able to create a new device using system.device.addDevice() and it works great but the next step is configuration of address on this device by adding rows and giving a Prefix, Start, End, etc. I can do that using the browser but I want to do that from a scripting function. I am not able to find a function to do that.

Is it possible to do that using any such function? Or some other trick to accomplish this config without doing it from the browser?

Thanks!
