node-red-contrib-redplc-tf-csa23017

1.0.118 • Public • Published

node-red-contrib-redplc-tf-csa23017

Node-Red CSA Controller node by using mcp23017 16bit I/O Expander.
This module is modified from node-red-contrib-rpi-mcp23017

Node Features

  • 2 x 8 x Digital Inputs or Digital Outputs
  • Add Pullup Resistor to Digital Inputs
  • Eight selectable Device Addresses

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-tf-csa23017

Usage

This node reads/writes from/to Node-Red global variables
Update is triggered by redPlc cpu node or module-update node
This node works only on Raspberry Pi with Raspberry Pi OS
Enable I2C with raspi-config.
Consult datasheet for absolute maximum ratings

Digital Input (Variable I):

Digital Output (Variable Q):

PA = Input, PB = Input
PA = Output, PB = Output

Pin Bit Pin Bit
PA0 0 PB0 8
PA1 1 PB1 9
PA2 2 PB2 10
PA3 3 PB3 11
PA4 4 PB4 12
PA5 5 PB5 13
PA6 6 PB6 14
PA7 7 PB7 15

PA = Input, PB = Output
PA = Output, PB = Input

Pin Bit Pin Bit
PA0 0 PB0 0
PA1 1 PB1 1
PA2 2 PB2 2
PA3 3 PB3 3
PA4 4 PB4 4
PA5 5 PB5 5
PA6 6 PB6 6
PA7 7 PB7 7

Donate

If you like my work please support it with donate:

Donate

Package Sidebar

Install

npm i node-red-contrib-redplc-tf-csa23017

Weekly Downloads

1

Version

1.0.118

License

Apache-2.0

Unpacked Size

59.3 kB

Total Files

10

Last publish

Collaborators

  • forkee