node-red-contrib-lvin-crc16

1.0.2 • Public • Published

node-red-contrib-lvin-crc16

Node-RED Modbus CRC16

Installation

In Node-RED (preferred)

  • Via Manage Palette -> Search for "node-red-contrib-lvin-crc16"

In a shell

  • go to the Node-RED installation folder, e.g.: ~/.node-red
  • run npm install node-red-contrib-lvin-crc16

Examples

Body schema example

[
{
    "id": "1591fc8068016e71",
    "type": "tab",
    "label": "flow",
    "disabled": false,
    "info": "",
    "env": []
},
{
    "id": "259fa4d605fc4b5e",
    "type": "inject",
    "z": "1591fc8068016e71",
    "name": "",
    "props": [
        {
            "p": "payload"
        },
        {
            "p": "topic",
            "vt": "str"
        }
    ],
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": 0.1,
    "topic": "",
    "payload": "",
    "payloadType": "date",
    "x": 130,
    "y": 260,
    "wires": [
        [
            "de9b416f5dad1a59"
        ]
    ]
},
{
    "id": "de9b416f5dad1a59",
    "type": "function",
    "z": "1591fc8068016e71",
    "name": "消息",
    "func": "msg.payload = Buffer.from('5501020301','hex');\nreturn msg;",
    "outputs": 1,
    "noerr": 0,
    "initialize": "",
    "finalize": "",
    "libs": [],
    "x": 280,
    "y": 260,
    "wires": [
        [
            "04943ad4f4ed307b"
        ]
    ]
},
{
    "id": "04943ad4f4ed307b",
    "type": "modbus-crc16",
    "z": "1591fc8068016e71",
    "name": "CRC16",
    "x": 420,
    "y": 260,
    "wires": [
        [
            "74e5c237ab81a74b"
        ]
    ]
},
{
    "id": "74e5c237ab81a74b",
    "type": "debug",
    "z": "1591fc8068016e71",
    "name": "debug 4",
    "active": true,
    "tosidebar": true,
    "console": false,
    "tostatus": false,
    "complete": "false",
    "statusVal": "",
    "statusType": "auto",
    "x": 580,
    "y": 260,
    "wires": []
}
]

Package Sidebar

Install

npm i node-red-contrib-lvin-crc16

Weekly Downloads

14

Version

1.0.2

License

MIT

Unpacked Size

11.5 kB

Total Files

6

Last publish

Collaborators

  • lvin