# Tcp Request return invalid value

**URL:** https://discourse.nodered.org/t/tcp-request-return-invalid-value/95701
**Category:** General
**Created:** [27 February 2025 23:38 UTC](https://discourse.nodered.org/t/tcp-request-return-invalid-value/95701 "2025-02-27T23:38:37Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![bbakjae](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bbakjae/32/99167_2.png) [@bbakjae](https://discourse.nodered.org/u/bbakjae)
#### Post date: [27 February 2025 23:38 UTC](https://discourse.nodered.org/t/tcp-request-return-invalid-value/95701/1 "2025-02-27T23:38:37Z")

</div>

1. i build an IoT project with XGT-FENet Protocol
2. i send to PLC 38 length byte data.
3. it return 192 length byte data.
4. it worked but when PLC power has turn off and turn on then tcp request has return first 30 characters from sent data.

in this case, the code, server settings, firewalls all of setting is not changed.  
and i think it is not a PLC problem. if i run C# program with XGCommlib.dll it worked when node-red is not worked.

is there any cases same with us. plz let me know how to fix it.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [28 February 2025 00:44 UTC](https://discourse.nodered.org/t/tcp-request-return-invalid-value/95701/2 "2025-02-28T00:44:50Z")

</div>

This does not appear to be related to node-red core dev so changed the category to general.

---

<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: [28 February 2025 08:47 UTC](https://discourse.nodered.org/t/tcp-request-return-invalid-value/95701/3 "2025-02-28T08:47:38Z")

</div>

> [@bbakjae](#):
>
> when PLC power has turn off and turn on then tcp request has return first 30 characters from sent data.

What is in those 30 characters?

---

<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: [29 April 2025 08:48 UTC](https://discourse.nodered.org/t/tcp-request-return-invalid-value/95701/4 "2025-04-29T08:48:19Z")

</div>

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