# Tia Portal - S7 1200 OPC UA -\> NODE RED

**URL:** <https://discourse.nodered.org/t/tia-portal-s7-1200-opc-ua-node-red/99761>\
**Category:** Industrial\
**Created:** [23 November 2025 23:57 UTC](https://discourse.nodered.org/t/tia-portal-s7-1200-opc-ua-node-red/99761 "2025-11-23T23:57:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![josefransilva](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@josefransilva](https://discourse.nodered.org/u/josefransilva)\
**Post date:** [23 November 2025 23:57 UTC](https://discourse.nodered.org/t/tia-portal-s7-1200-opc-ua-node-red/99761/1 "2025-11-23T23:57:41Z")

</div>

Good morning to all!  
Im developing a program to a machine to read a sensor of each part made of to count the number of parts by reference.  
But at this time i have the program on the plc working, in UA Expert i can see the db variable, but on node Red in can´t see the value on the db, the debug gives me the "24/11/2025, 1:52:54node: debug 1 msg.payload : undefined .undefined  
On the OPC UA item node i have -\>Item ns=4;i=2  
Type int32.  
Even on the dashboard don´t apper the number on the db.  
Can anyone help me? Thanks in advance

---

<div class="post-metadata">

**Author:** ![rromele](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rromele/32/18431_2.png) [@rromele](https://discourse.nodered.org/u/rromele)\
**Post date:** [5 December 2025 20:56 UTC](https://discourse.nodered.org/t/tia-portal-s7-1200-opc-ua-node-red/99761/2 "2025-12-05T20:56:16Z")

</div>

My advice is to use the s7-comm node.  
R.

---

<div class="post-metadata">

**Author:** ![KristopherLeads](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kristopherleads/32/107231_2.png) [@KristopherLeads](https://discourse.nodered.org/u/KristopherLeads)\
**Post date:** [11 December 2025 13:51 UTC](https://discourse.nodered.org/t/tia-portal-s7-1200-opc-ua-node-red/99761/3 "2025-12-11T13:51:45Z")

</div>

> [@josefransilva](#):
>
> 24/11/2025, 1:52:54node: debug 1 msg.payload : undefined .undefined

Alright, so this suggests to me that you're simply not getting a value at all in this flow and that there's some sort of configuration issue at play. I'd check that your input isn't "Item ns=4;i=2", but is instad "ns=4;i=2". Also check your namespace is correct. Then I'd check the status text for the OPC UA node - specifically, if there's any reported disconnection.

That's all just surface level though - if you can, an you share the complete message object from the debug node so I can see what you're actually creating/passing?

---

<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:** [9 February 2026 13:52 UTC](https://discourse.nodered.org/t/tia-portal-s7-1200-opc-ua-node-red/99761/4 "2026-02-09T13:52:18Z")

</div>

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