node-red-contrib-rpiplc-node
v2.0.1
Published
A collection of Node-RED nodes for using analog inputs, analog outputs, digital inputs and digital outputs from Raspberry PLC of Industrial Shields®.
Downloads
107
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:
- Analog Read: Gets the value of an analog input.
- Analog Write: Sets a value of an analog output.
- Digital read: Gets the value of a digital input.
- 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.
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.
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.
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.