# Connecting Balluff BNI004A to Ignition

**URL:** <https://forum.inductiveautomation.com/t/connecting-balluff-bni004a-to-ignition/48133>\
**Category:** General Discussion\
**Tags:** ignition81\
**Created:** [June 23, 2021, 7:07pm UTC](https://forum.inductiveautomation.com/t/connecting-balluff-bni004a-to-ignition/48133 "2021-06-23T19:07:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcoghlin](https://avatars.discourse-cdn.com/v4/letter/j/ac8455/32.png) [@jcoghlin](https://forum.inductiveautomation.com/u/jcoghlin)\
**Post date:** [June 23, 2021, 7:07pm UTC](https://forum.inductiveautomation.com/t/connecting-balluff-bni004a-to-ignition/48133/1 "2021-06-23T19:07:12Z")

</div>

I’m trying to connect a Balluff BNI004A to Ignition without a PLC. Is there any way do get data from the connected ports through scripting/non OPC-UA methods? I have a air humidity sensor connected to the I/O block, and I would like a way to get the raw data from the I/O block and either write it to a tag, or bring it in through a script.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [June 23, 2021, 7:21pm UTC](https://forum.inductiveautomation.com/t/connecting-balluff-bni004a-to-ignition/48133/2 "2021-06-23T19:21:45Z")

</div>

@pturmel has an EIP comms module for such things.

[https://inductiveautomation.com/moduleshowcase/module/automation-professionals-llc-ethernetip-class-1-communications](https://inductiveautomation.com/moduleshowcase/module/automation-professionals-llc-ethernetip-class-1-communications)

---

<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:** [June 23, 2021, 7:26pm UTC](https://forum.inductiveautomation.com/t/connecting-balluff-bni004a-to-ignition/48133/3 "2021-06-23T19:26:06Z")

</div>

See these posts:

> [@Complete Newbie, how to add a BNI EIP-508-105-Z015](http://forum.inductiveautomation.com/t/complete-newbie-how-to-add-a-bni-eip-508-105-z015/28360):
>
> The BNI EIP-508-105-Z015 is an IO-LINK master (If I use the terminology correct, remember newbie here) It is on the network and you can grab sensor data by going to address/ports.jsn IO-LINK seems to be a popular standard… but looking around would it normally connect to a PLC before being connected to say ignition ? Or would a different master be the way to go? This looks pretty straight forward [https://comtrol.com/wp-content/uploads/Ignition-via-OPC-UA.pdf](https://comtrol.com/wp-content/uploads/Ignition-via-OPC-UA.pdf)

> [@BNI008M I/O Link Master direct to Ignition (no PLC)](http://forum.inductiveautomation.com/t/bni008m-i-o-link-master-direct-to-ignition-no-plc/39917):
>
> Hey Guys, slightly new here, Is it possible to link the Balluff I/O Link Master Directly to ignition, I will not be using a PLC just I/O Link sensors and would like to use Balluff, I know there are other Masters out there that can use HTTP: Post commands or MQTT, I guess my real Question Is can I do any of these methods with Balluff??

---

<div class="post-metadata">

**Author:** ![jcoghlin](https://avatars.discourse-cdn.com/v4/letter/j/ac8455/32.png) [@jcoghlin](https://forum.inductiveautomation.com/u/jcoghlin)\
**Post date:** [June 23, 2021, 7:27pm UTC](https://forum.inductiveautomation.com/t/connecting-balluff-bni004a-to-ignition/48133/4 "2021-06-23T19:27:00Z")

</div>

Is there any other options than this? Even if it is more involved, I would like to find a way to do this without @pturmel 's module.

---

<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:** [June 23, 2021, 7:36pm UTC](https://forum.inductiveautomation.com/t/connecting-balluff-bni004a-to-ignition/48133/5 "2021-06-23T19:36:09Z")

</div>

Balluff has multiple models. IIRC, some are Modbus TCP, which Ignition can natively poll. There are other brands of IOLink masters with full OPC/UA servers.

If it has to be the BNI004A, I’m pretty sure only my module will talk to it. Short of scraping its configuration web page. Not sure if live data is displayed there to be scraped, though.

---

<div class="post-metadata">

**Author:** ![JustinHiemstra](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinhiemstra/32/41138_2.png) [@JustinHiemstra](https://forum.inductiveautomation.com/u/JustinHiemstra)\
**Post date:** [March 26, 2023, 10:43pm UTC](https://forum.inductiveautomation.com/t/connecting-balluff-bni004a-to-ignition/48133/6 "2023-03-26T22:43:38Z")

</div>

The BNI004A module constantly publishes json formatted data on the connected sensors/device. This can by accessed via the master IP address with '/dprop.jsn' at the end. -\> _xxx.xxx.xxx.xxx/dprop.jsn_.

Below is a small code example:

```auto
jsonString = system.net.httpGet("http://192.168.50.70/dprop.jsn")
# Decode the JSON string and store the results into a variable.
obj = system.util.jsonDecode(jsonString)
  
# Do something with the results. The code below prints the data type of the results to the console.
print type(obj)

# Print List
print obj

```

 ![BNI004A_Json_Example](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/6/96df63086194f19ca04795088c0e790e25a5899b.png)
