# Send DATA to S7-1200 Problem

**URL:** https://discourse.nodered.org/t/send-data-to-s7-1200-problem/98894
**Category:** General
**Created:** [30 August 2025 17:49 UTC](https://discourse.nodered.org/t/send-data-to-s7-1200-problem/98894 "2025-08-30T17:49:08Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![kaan86](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kaan86](https://discourse.nodered.org/u/kaan86)
#### Post date: [30 August 2025 17:49 UTC](https://discourse.nodered.org/t/send-data-to-s7-1200-problem/98894/1 "2025-08-30T17:49:08Z")

</div>

Hi

I am new with Node-RED 😉 i am trying to send data from Shelly plug to s7-1200 PLC but i keep getting “Data for item of type 'INT' must be a number” error.

I have Debug in parallel where the data gets to as a number. Whey do i get the error when on the S7 out node?

 ![number](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/4/84e76c905bce7418ebd52be11d4e5526179ff735.png)

---

<div class="post-metadata">

### Author: ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)
#### Post date: [30 August 2025 18:06 UTC](https://discourse.nodered.org/t/send-data-to-s7-1200-problem/98894/2 "2025-08-30T18:06:23Z")

</div>

Welcome to the forums @kaan86

You will need to specify the exact name(s) (or link) to the shelly node you're using, the potential person to provide the answer, may not use shelly at all - but with knowing your full setup, may be able to to identify the issue - maybe provide a link to the node, so the community can review the Node.

A screenshot does nothing 😃

---

<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: [30 August 2025 18:26 UTC](https://discourse.nodered.org/t/send-data-to-s7-1200-problem/98894/3 "2025-08-30T18:26:22Z")

</div>

Or if the problem is when writing to the plc then tell us which node you are using for that.

---

<div class="post-metadata">

### Author: ![kaan86](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kaan86](https://discourse.nodered.org/u/kaan86)
#### Post date: [30 August 2025 19:06 UTC](https://discourse.nodered.org/t/send-data-to-s7-1200-problem/98894/4 "2025-08-30T19:06:15Z")

</div>

Can this help? I link the input to payload.switch0.freq from the shelly…

And the connection to the PLC works i can change the value of i tried with a inject node it works..

 ![2025-08-30 21_00_27-Greenshot](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/2/e2ef91bad6613bb5326de2b0933b2e0c9e651039.png) ![2025-08-30 21_01_05-Greenshot](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/1/11cfac3888a2069b0caf319561c0c0012cbe88fd.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: [30 August 2025 20:51 UTC](https://discourse.nodered.org/t/send-data-to-s7-1200-problem/98894/5 "2025-08-30T20:51:19Z")

</div>

If i works with 10 in msg.payload then insert a Change node configured to Move msg.payload.switch0.freq To msg.payload. Check in a debug node that then the required number appears in msg.payload and then feed that to the S7 node.

---

<div class="post-metadata">

### Author: ![kaan86](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kaan86](https://discourse.nodered.org/u/kaan86)
#### Post date: [31 August 2025 09:32 UTC](https://discourse.nodered.org/t/send-data-to-s7-1200-problem/98894/6 "2025-08-31T09:32:11Z")

</div>

That did the job. Thanks

---

<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: [14 September 2025 09:33 UTC](https://discourse.nodered.org/t/send-data-to-s7-1200-problem/98894/7 "2025-09-14T09:33:02Z")

</div>

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