# Hello \*To function node Please tell me how to read 485 serial data\*

**URL:** <https://discourse.nodered.org/t/hello-to-function-node-please-tell-me-how-to-read-485-serial-data/82634>\
**Category:** General\
**Tags:** function-node\
**Created:** [6 November 2023 01:24 UTC](https://discourse.nodered.org/t/hello-to-function-node-please-tell-me-how-to-read-485-serial-data/82634 "2023-11-06T01:24:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShinDongHen](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@ShinDongHen](https://discourse.nodered.org/u/ShinDongHen)\
**Post date:** [6 November 2023 01:24 UTC](https://discourse.nodered.org/t/hello-to-function-node-please-tell-me-how-to-read-485-serial-data/82634/1 "2023-11-06T01:24:31Z")

</div>

hello

id 3 as function node  
hex 03 03 00 01 00 10 I will attach a photo of the manual.

Function JavaScript is  
msg.payload = {  
'fc': 3,  
'unitid': 3;  
'address': 0x0001,  
'quantity': 0x0010,  
};  
return msg;

What I want to do is check the status of 16 relays.  
It doesn't work... Please give me some advice.

[function node.json](https://discourse.nodered.org/uploads/short-url/iIMq8LArIfy9K1xEfT1XCuSkxM5.json) (2.7 KB)

 ![03 read status command](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/b/dbfa34a11ad1b4e5f527729ac8057495459f03e0.jpeg)

---

<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:** [5 January 2024 01:25 UTC](https://discourse.nodered.org/t/hello-to-function-node-please-tell-me-how-to-read-485-serial-data/82634/2 "2024-01-05T01:25:25Z")

</div>

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