npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-contrib-pccc

v1.0.2

Published

A Node-RED node to interact with some Allen-Bradley PLCs using PCCC protocol

Downloads

235

Readme

node-red-contrib-pccc

A Node-RED node to interact with some Allen-Bradley PLCs using PCCC protocol. Based on the awesome work of plcpeople/nodepccc.

Installing

You can install this node directly from the "Manage Palette" menu in the Node-RED interface. There are no external dependencies or compilation steps.

Alternatively, run the following command in your Node-RED user directory - typically ~/.node-red on Linux or %HOMEPATH%\.nodered on Windows

    npm install node-red-contrib-pccc

Usage

Just drop a pccc in node to read and watch addresses of the PLC, or a pccc out node to write values to the PLC. Both of them need a pccc endpoint, where you can configure the address of the PLC (IP Address, port, and routing), the cycle time and timeout values, and the list of addresses available on the PLC.

Addressing

The addresses follow the same syntax of what would be used on RSLogix, so for example B3:0/0 addresses the bit 0 of byte 0 in the file B3, and F8:1 points to the float 1 at the file F8.

About routing

The configuration of routing follows a very special syntax for now

0x01,0x00,0x01,0x00
  |    |    |    |
  |    |    |    +-- 0: The slot of the PLC
  |    |    +------- 1: Route over the backplane
  |    +------------ Reserved, always zero
  +----------------- 1: Number of words (1 = 2 bytes) of the routing section

You most likely just want to change the last number to the slot of the PLC when connecting to ControlLogix/CompactLogix controllers

Wishlist

  • Validate addresses
  • Improve routing configuration

Bugs and enhancements

Please share your ideas and experiences on the Node-RED forum, or open an issue on the page of the project on GitHub

License

Copyright: (c) 2016-2021, ST-One Ltda.

GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)