# How to set Allen Bradly PLC address in function node of node red

**URL:** https://discourse.nodered.org/t/how-to-set-allen-bradly-plc-address-in-function-node-of-node-red/55068
**Category:** Industrial
**Created:** [12 December 2021 06:18 UTC](https://discourse.nodered.org/t/how-to-set-allen-bradly-plc-address-in-function-node-of-node-red/55068 "2021-12-12T06:18:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![aminulhaq](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@aminulhaq](https://discourse.nodered.org/u/aminulhaq)
#### Post date: [12 December 2021 06:18 UTC](https://discourse.nodered.org/t/how-to-set-allen-bradly-plc-address-in-function-node-of-node-red/55068/1 "2021-12-12T06:18:16Z")

</div>

Hi,  
collecting data from Allen Bradly PLC from eth-ip in node and put address of AB PLC in node, now i want this data to send on function node where i need to set variable whicg will get data from that address and will make some condition according to my need but, facing problem that how to convert Allen Bradlly PLc address that can accept in function because when i put same address in function node it is giving error see pic for reference

 ![WhatsApp Image 2021-12-12 at 11.13.40 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/5/2512d3d803f04fab94d8c287ecfbdb3924cf5912.jpeg)

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [12 December 2021 09:12 UTC](https://discourse.nodered.org/t/how-to-set-allen-bradly-plc-address-in-function-node-of-node-red/55068/2 "2021-12-12T09:12:26Z")

</div>

Hi @aminulhaq

In future, please share the code by pasting it directly (assuming it isn't too long). Blurry photos of your monitor make it hard to read the code you're asking us to help you with.

For the specific syntax error, you'd need to treat the value as a String and wrap it in `"quotes"`

---

<div class="post-metadata">

### Author: ![aminulhaq](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@aminulhaq](https://discourse.nodered.org/u/aminulhaq)
#### Post date: [12 December 2021 09:15 UTC](https://discourse.nodered.org/t/how-to-set-allen-bradly-plc-address-in-function-node-of-node-red/55068/3 "2021-12-12T09:15:12Z")

</div>

but if i make it string the how can i get value coming from this plc address

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [10 February 2022 09:15 UTC](https://discourse.nodered.org/t/how-to-set-allen-bradly-plc-address-in-function-node-of-node-red/55068/4 "2022-02-10T09:15:26Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
