# Read variable from OMRON

**URL:** <https://discourse.nodered.org/t/read-variable-from-omron/9727>\
**Category:** Industrial\
**Created:** [3 April 2019 11:51 UTC](https://discourse.nodered.org/t/read-variable-from-omron/9727 "2019-04-03T11:51:13Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [3 April 2019 11:51 UTC](https://discourse.nodered.org/t/read-variable-from-omron/9727/1 "2019-04-03T11:51:14Z")

</div>

How can i be able to read variable sent from OMRON PLC ??  
i have have successfuly connect to serial port (Com4) but still not able to read data ??  
Any idea PLZ ?

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [3 April 2019 12:19 UTC](https://discourse.nodered.org/t/read-variable-from-omron/9727/2 "2019-04-03T12:19:40Z")

</div>

Have you configured the serial node to match the properties of your OMRON?

---

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [3 April 2019 13:02 UTC](https://discourse.nodered.org/t/read-variable-from-omron/9727/3 "2019-04-03T13:02:50Z")

</div>

yes.. i have configured it ( com, baud, ..) everything. i don't know if i need to configure the address of variable ?? .. Or i have to use another node?

---

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [3 April 2019 13:41 UTC](https://discourse.nodered.org/t/read-variable-from-omron/9727/4 "2019-04-03T13:41:31Z")

</div>

![Sans%20titre](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/e/e351761fd90a2612b289101a60d4d853180e00bd.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [3 April 2019 13:55 UTC](https://discourse.nodered.org/t/read-variable-from-omron/9727/5 "2019-04-03T13:55:42Z")

</div>

Can't you use one of the Modbus nodes for that?

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [3 April 2019 14:04 UTC](https://discourse.nodered.org/t/read-variable-from-omron/9727/6 "2019-04-03T14:04:22Z")

</div>

Or if you want to use the serial port try changing the split on character to something else and see if there is any output

---

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [3 April 2019 14:09 UTC](https://discourse.nodered.org/t/read-variable-from-omron/9727/7 "2019-04-03T14:09:05Z")

</div>

is there an example?

---

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [3 April 2019 14:10 UTC](https://discourse.nodered.org/t/read-variable-from-omron/9727/8 "2019-04-03T14:10:29Z")

</div>

i always get nothing on msg debug ..

---

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [3 April 2019 14:11 UTC](https://discourse.nodered.org/t/read-variable-from-omron/9727/9 "2019-04-03T14:11:17Z")

</div>

![Sans%20titre%20(1)](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/9/9bae6861ef4e43a13fa7a28dedee430f32299121.png)  
here's what i tried so far but always get error .. ?

---

<div class="post-metadata">

**Author:** ![jesus](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@jesus](https://discourse.nodered.org/u/jesus)\
**Post date:** [3 April 2019 15:59 UTC](https://discourse.nodered.org/t/read-variable-from-omron/9727/10 "2019-04-03T15:59:56Z")

</div>

Can be connected to plc omron via etherner ? for sending mail

---

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [3 April 2019 16:04 UTC](https://discourse.nodered.org/t/read-variable-from-omron/9727/11 "2019-04-03T16:04:56Z")

</div>

unfortunately, no

---

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [3 April 2019 16:39 UTC](https://discourse.nodered.org/t/read-variable-from-omron/9727/12 "2019-04-03T16:39:22Z")

</div>

when i try to read data sent from termina " type COM4" it shows nothing and keep running to infinity. ?? is it related to my problem ?

---

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [5 April 2019 15:17 UTC](https://discourse.nodered.org/t/read-variable-from-omron/9727/13 "2019-04-05T15:17:28Z")

</div>

is there any chance to address a string starting at DM200 ?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [5 April 2019 15:39 UTC](https://discourse.nodered.org/t/read-variable-from-omron/9727/14 "2019-04-05T15:39:35Z")

</div>

Can you explain what you mean by that?

---

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [5 April 2019 15:52 UTC](https://discourse.nodered.org/t/read-variable-from-omron/9727/15 "2019-04-05T15:52:27Z")

</div>

i have set a variable on Omron memory to DM200 address, and i wan to be able to read this variable on node red.  
i have put all the necessary configuration (parity, baude rate, .. ) but i have nothing received on msg debug node.  
So, i wonder if i set variable address wich is DM200 in my case the i will be able to receive data on node-red ????

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [5 April 2019 16:00 UTC](https://discourse.nodered.org/t/read-variable-from-omron/9727/16 "2019-04-05T16:00:05Z")

</div>

Are you using modbus protocol to read from the device? If not then what protocol?

---

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [5 April 2019 16:02 UTC](https://discourse.nodered.org/t/read-variable-from-omron/9727/17 "2019-04-05T16:02:48Z")

</div>

yes am using serial protocol modbus/RTU

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [5 April 2019 16:06 UTC](https://discourse.nodered.org/t/read-variable-from-omron/9727/18 "2019-04-05T16:06:06Z")

</div>

Is the Omron device the slave and the node-red device the client?  
If so then node-red has to ask the device for data before it will send anything (at least I think that is how modbus works, I have not used it for a long time).

---

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [5 April 2019 16:17 UTC](https://discourse.nodered.org/t/read-variable-from-omron/9727/19 "2019-04-05T16:17:43Z")

</div>

thnx for ur replies i really appreciate your coorporation.  
i try to read data and save it in database from a sensor when it receives something (i mean that it is not in a cyclic way in everytime i press a button)  
which node can be able to ask the device? which node let me configurate the address of Omron output ?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [5 April 2019 16:55 UTC](https://discourse.nodered.org/t/read-variable-from-omron/9727/20 "2019-04-05T16:55:43Z")

</div>

One of the modbus nodes I expect. I haven't used them though so I don't know which will do modbus serial.

[Next page](https://discourse.nodered.org/t/read-variable-from-omron/9727.md?page=2)
