Yotta GPIO API nodes for Node-RED
npm install node-red-contrib-yotta-gpio
Introduction
------------
This Node-RED module provides a collection of custom nodes for communicating with distributed controllers and communication modules produced by Yottacontrol Co.. These nodes allow you to easily read from and write to various digital and analog inputs/outputs over Modbus using Node-RED.
Modbus-Flex-Getter and Modbus-Flex-Write nodes provided by node-red-contrib-modbus
Read_DI
Read_DO
Read_AI
Read_AO
msg.payload. When reading more than one point, msg.payload should be an array.
Write_DO
Write_AO
javascript
{ value: msg.payload, 'fc': 1, 'unitid': 1, 'address': 0 , 'quantity': 1 }
`
$3
`javascript
{ value: msg.payload, 'fc': 3, 'unitid': 1, 'address': 0 , 'quantity': 1 }
`
Write node
$3
`javascript
{value: msg.payload, 'fc': 5, 'unitid': 1, 'address': 0 , 'quantity': 1}
`
$3
`javascript
{value: msg.payload, 'fc': 6, 'unitid': 1, 'address': 0 , 'quantity': 1}
`
Usage Tips
- Ensure all required fields are filled; otherwise, message construction may fail.
- When reading multiple channels, make sure msg.payload` is in array format.