# Access device settings table

**URL:** <https://forum.inductiveautomation.com/t/access-device-settings-table/39758>\
**Category:** Ignition\
**Created:** [October 16, 2020, 3:27pm UTC](https://forum.inductiveautomation.com/t/access-device-settings-table/39758 "2020-10-16T15:27:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpervaiz](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@mpervaiz](https://forum.inductiveautomation.com/u/mpervaiz)\
**Post date:** [October 16, 2020, 3:27pm UTC](https://forum.inductiveautomation.com/t/access-device-settings-table/39758/1 "2020-10-16T15:27:50Z")

</div>

I am trying to get to the device settings for each device in my ignition server. For example I have a Micrologix device “device-A” and I want to access Microxlogixsettingsrecord in the internal db. Is it possible?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 16, 2020, 3:53pm UTC](https://forum.inductiveautomation.com/t/access-device-settings-table/39758/2 "2020-10-16T15:53:11Z")

</div>

From a custom module? Sure.  
From some random scripting context? Generally speaking, no, and certainly not in any supported way.

---

<div class="post-metadata">

**Author:** ![mpervaiz](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@mpervaiz](https://forum.inductiveautomation.com/u/mpervaiz)\
**Post date:** [October 16, 2020, 4:06pm UTC](https://forum.inductiveautomation.com/t/access-device-settings-table/39758/3 "2020-10-16T16:06:04Z")

</div>

I am sorry I didnt set the context.  
I am writing a custom module that will run in the gateway scope.

How can i do that ?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 16, 2020, 4:16pm UTC](https://forum.inductiveautomation.com/t/access-device-settings-table/39758/4 "2020-10-16T16:16:01Z")

</div>

So, you’ll want to ensure that you have the Logix driver as a requirement for your module so that you’re loaded into the appropriate classloader. From the `GatewayContext` you get in your gateway hook’s `setup()` method, you can `getPersistenceInterface` to get the [`PersistenceInterface`](http://files.inductiveautomation.com/sdk/javadoc/ignition80/8.0.14/com/inductiveautomation/ignition/gateway/localdb/persistence/PersistenceInterface.html) - the entrypoint into our ORM. You’ll want to create a `new SQuery<MicroLogixDriverSettings>()`, and pass that to `PersistenceInterface.query()` - which will give you a list of all the MLX driver settings records in the internal DB. You can add restrictions to the SQuery to limit your results - such as `.eq(MicroLogixDriverSettings.Hostname, "1.1.1.1")`.

---

<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:** [October 16, 2020, 4:17pm UTC](https://forum.inductiveautomation.com/t/access-device-settings-table/39758/5 "2020-10-16T16:17:56Z")

</div>

MicroLogix driver is part of the AB Driver module, not the Logix Driver module, which has only the v21+ driver in it.

None of these are really part of the SDK though and aren’t considered public API.

---

<div class="post-metadata">

**Author:** ![mwilliamson](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@mwilliamson](https://forum.inductiveautomation.com/u/mwilliamson)\
**Post date:** [October 16, 2020, 4:37pm UTC](https://forum.inductiveautomation.com/t/access-device-settings-table/39758/7 "2020-10-16T16:37:02Z")

</div>

I’m assuming you mean adding a dependency something like:

```auto
<dependency>
   <groupId>com.inductiveautomation.drivers</groupId>
   <artifactId>driver-allen-bradley</artifactId>
   <version>5.0.16</version>
</dependency>

```

Are there settings/orm functionality for the other device types you support? E.g. bacnet, dnp3, modbus, omron, siemens?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 16, 2020, 4:41pm UTC](https://forum.inductiveautomation.com/t/access-device-settings-table/39758/8 "2020-10-16T16:41:09Z")

</div>

Each module contains its own settings records - I don’t think there are any exceptions to that rule. So whatever driver _module_ contains the driver you want to view the records for, you will need that as a dependency of your module.
