1.0.11 • Published 5 years ago
node-red-contrib-redplc-piface v1.0.11
node-red-contrib-redplc-piface
Node-Red node for PiFace Digital
Node Features
- 8 x Digital Outputs with 2 x Relays
- 8 x Digital Inputs with 4 tactile Switches
- 8 x Leds for Digital Inputs
- Four selectable Module Address
Install
For using with Ladder-Logic install redPlc nodes
For using with other nodes, install module nodes
Install with Node-Red Palette Manager or npm command:
cd ~/.node-red
npm install node-red-contrib-redplc-pifaceUsage
Update is triggered by redPlc cpu node or module-update node This node reads/writes from/to Node-Red global variables This node works only on Raspberry Pi with Raspberry Pi OS Enable SPI with raspi-config
I/O Mapping
Digital Input (Variable I):
| Pin | Bit | Function |
|---|---|---|
| I0 | 0 | Input 0, Switch S0 |
| I1 | 1 | Input 1, Switch S1 |
| I2 | 2 | Input 2, Switch S2 |
| I3 | 3 | Input 3, Switch S3 |
| I4 | 4 | Input 4 |
| I5 | 5 | Input 5 |
| I6 | 6 | Input 6 |
| I7 | 7 | Input 7 |
Digital Output (Variable Q):
| Pin | Bit | Function |
|---|---|---|
| O0 | 0 | Output 0, Relay 0 |
| O1 | 1 | Output 1, Relay 1 |
| O2 | 2 | Output 2 |
| O3 | 3 | Output 3 |
| O4 | 4 | Output 4 |
| O5 | 5 | Output 5 |
| O6 | 6 | Output 6 |
| O7 | 7 | Output 7 |
Donate
If you like my work please support it with donate: