node-red-contrib-rpiplc-node

A collection of Node-RED nodes for using analog inputs, analog outputs, digital inputs and digital outputs from Raspberry PLC of Industrial Shields®.

Usage no npm install needed!

<script type="module">
  import nodeRedContribRpiplcNode from 'https://cdn.skypack.dev/node-red-contrib-rpiplc-node';
</script>

README

node-red-contrib-rpiplc-node

A collection of Node-RED nodes for using analog inputs, analog outputs, digital inputs and digital outputs from Raspberry PLC of Industrial Shields®.

Install

To install the stable version use the Menu - Manage palette - Install option and search for node-red-contrib-rpiplc-node, or run the following command in your Node-RED user directory, typically ~/.node-red

npm i node-red-contrib-rpiplc-node

Usage

Provides four nodes:

  1. Analog Read: Gets the value of an analog input.
  2. Analog Write: Sets a value of an analog output.
  3. Digital read: Gets the value of a digital input.
  4. Digital write: Sets a value of a digital output.

1. Analog Read

Reads the value from the specified analog pin. The Raspberry PLC model and input pin must be selected.

analog-read

2. Analog Write

Writes an analog value (PWM wave) to a pin. The Raspberry PLC model, input pin and a value between 0 and 4095 must be set.

analog-write

3. Digital Read

Reads the value from a specified digital pin, either HIGH or LOW. The Raspberry PLC model and input pin must be selected.

digital-read

4. Digital Write

Writes a HIGH or a LOW value to a digital pin. The Raspberry PLC model, input pin and value must be set.

digital-write