# \[Solved\] Allen-Bradley Read node

**URL:** <https://forums.losant.com/t/solved-allen-bradley-read-node/1510>\
**Category:** Bug Report\
**Tags:** allen-bradley\
**Created:** [February 5, 2019, 8:47pm UTC](https://forums.losant.com/t/solved-allen-bradley-read-node/1510 "2019-02-05T20:47:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [February 5, 2019, 8:47pm UTC](https://forums.losant.com/t/solved-allen-bradley-read-node/1510/1 "2019-02-05T20:47:30Z")

</div>

I’m able to read A/B tags from the Losant edge agent,but only if they are not an array.  
Unless I’m missing something.

The current tag is “Test[0]” in the PLC, but I can only read the first value in the array by using only “Test” as the tag name.  
Is there a way around that?

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [February 5, 2019, 9:16pm UTC](https://forums.losant.com/t/solved-allen-bradley-read-node/1510/2 "2019-02-05T21:16:34Z")

</div>

Hi,

Currently, the Allen-Bradley node does not accept the “” characters, but a fix will be pushed out soon.

For now, you can use a Mutate node to set a new rule to change “Test[0]” to something like “working.testArray1,” which can then be used within the Allen-Bradley nodes, as shown below:

 ![18%20PM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/1X/5df7ea1fa5a48214996f8d2df32a0a369f9c5036.png) ![20%20PM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/1X/276409b755c3c441588e8330b7957b2901eb3c6b.png)

Hopefully this helps,  
Julia

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [February 5, 2019, 9:42pm UTC](https://forums.losant.com/t/solved-allen-bradley-read-node/1510/3 "2019-02-05T21:42:24Z")

</div>

Hi Lars,

This bug has since been fixed, see below!

 ![01%20PM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/1X/374711e4800dcc845f3f9ff7835fd57e85ce5727.png)

Thanks,  
Julia

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [February 5, 2019, 9:46pm UTC](https://forums.losant.com/t/solved-allen-bradley-read-node/1510/4 "2019-02-05T21:46:24Z")

</div>

So will that work for me now without updating the agent?

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [February 5, 2019, 9:58pm UTC](https://forums.losant.com/t/solved-allen-bradley-read-node/1510/5 "2019-02-05T21:58:21Z")

</div>

Yes, the characters were just not being allowed in the input.

It should work fine now 😄

Thanks,  
Julia

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [February 5, 2019, 10:23pm UTC](https://forums.losant.com/t/solved-allen-bradley-read-node/1510/6 "2019-02-05T22:23:49Z")

</div>

Yes it does ! Thank You.  
You show the Result key in your screen shot above as “Test1”.  
How do I easiest get that Result value in to an indexed object?  
It doesn’t like me entering “Test[]”

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [February 6, 2019, 2:45pm UTC](https://forums.losant.com/t/solved-allen-bradley-read-node/1510/7 "2019-02-06T14:45:27Z")

</div>

Hi,

One way I would recommend doing this is by self indexing the results, as shown below:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/1X/4137ac57e7e56839f479403b8ab4dfca4eaa3b95.png)  
 ![image%20(1)](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/1X/30a472bbec0caf1f05c4706e6012dbf61532ac70.png)

Let me know if this helps!  
Julia

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [February 6, 2019, 10:40pm UTC](https://forums.losant.com/t/solved-allen-bradley-read-node/1510/8 "2019-02-06T22:40:32Z")

</div>

That’s what I am doing now.  
I was hoping there would be a way to “automatically” generate the indexed key number.  
I guess a loop would be one way of doing that.
