Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

node-red-contrib-redplc-tf-csa23017

redplc17Apache-2.01.0.118

Node-Red node for CSA Controller 23017

node-red, raspberry pi, csa, csa23017, iot, iiot, digital, plc, redplc, control

readme

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

If you like my work please support it with donate:

Donate

changelog

1.0.09

  • Initial Release

1.0.10

  • Use own icon
  • Update README

1.0.11

  • Update keyword
  • Update reffernce developper

1.0.111

  • Update keyword
  • Update reffernce developper
  • add ~ to Input to be used to invert input value

1.0.112

  • add ~ to Output to be used to invert output value

1.0.113

  • Print node output value

1.0.116

  • Do not convert input

1.0.117

  • Back to invert input 1.0.118