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

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 (2.7 KB)

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