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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@digta/fins

v1.0.0

Published

Omron FINS TCP client for PLC data acquisition (CP2E/NX) that forwards inputs to a DCS over a TCP socket.

Readme

@digta/fins — Omron FINS TCP for Data Acquisition

Omron FINS TCP is a protocol for communication between Omron PLCs and other devices. It is a TCP/IP based protocol, used for Omron PLCs with a network port such as the CP2E.

This package reads PLC inputs over FINS TCP and forwards them to a DCS over a plain TCP socket. It ships as a runnable app/service, not a library API.

Part of Protokit.

Install

npm i @digta/fins

Or run it from a clone of the monorepo (see dev setup).

Table of Contents

Prerequisites

Ensure you have the following installed:

  • Node.js (v14 or higher)
  • npm (Node Package Manager)
  • CX Programmer (tested on v9.7) for the PLC side
  • The PLC IP must be on the same subnet as the PC (sudo nmtui)

Configuration

Copy the sample config and edit it for your setup:

cp config/app.config.sample.js config/app.config.js
module.exports = {
  plc: {
    ip: '172.19.88.88',  // IP address of the PLC
    intervalRead: 200    // Interval for reading the PLC (in milliseconds)
  },
  machineId: 27,  // Machine ID (DCS)
  msg: [
    { proxy: 1 }, // pin 00.00
    { proxy: 1 }, // pin 00.01
    { proxy: 1 }, // pin 00.02
    { proxy: 1 }, // pin 00.03
    { proxy: 1 }, // pin 00.04
    { proxy: 1 }, // pin 00.05
    { proxy: 1 }, // pin 00.06
    { proxy: 1 }  // pin 00.07
  ],
  intervalBouncing: 5000,  // Delay between data transmissions
  dcs: {
    ip: '127.0.0.1',  // IP address of the DCS (localhost)
    port: 3000        // Port of the DCS
  }
};

Usage

Make sure you are in the package directory, then:

node index.js

Service Management (Linux)

Run the installer as root to set up the systemd service:

sudo ./install.sh
sudo systemctl start plcdcs.service   # start the service
sudo systemctl enable plcdcs.service  # enable auto-start on boot
sudo systemctl status plcdcs.service  # check status

Troubleshooting

sudo journalctl -u plcdcs.service