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

@vitormnm/node-red-instructions-ladder-iec-61131-3

v1.1.1

Published

Node-RED instructions ladder IEC-61131-3

Readme

A Node-RED node that provides common IEC 61131-3 Ladder Logic instructions for building PLC-style logic flows directly inside Node-RED.

Features

Contacts

| Instruction | Description | | ----------- | --------------------------------------------------------------------------- | | NO | Normally Open contact. Passes execution when the source value is true. | | NC | Normally Closed contact. Passes execution when the source value is false. |

Comparison Instructions

| Instruction | Description | | ----------- | ---------------------------- | | EQ | Equal (==) | | NEQ | Not Equal (!=) | | GT | Greater Than (>) | | GE | Greater Than or Equal (>=) | | LT | Less Than (<) | | LE | Less Than or Equal (<=) |

Math Instructions

| Instruction | Description | | ----------- | -------------- | | ADD | Addition | | SUB | Subtraction | | MUL | Multiplication | | DIV | Division | | MOD | Modulus | | ABS | Absolute value | | SQR | Square root | | MOV | Move value |

counter Instructions

| Instruction | Description | | ----------- | -------------- | | CTU | counter up |

Output Instructions

| Instruction | Description | | ----------- | ---------------------------------------- | | SET | Sets the destination variable to true | | RESET | Sets the destination variable to false | | CTU | OBJ {"Q":true,"CV":15} |


Support the development of this project and others if you found it useful.

Supported Data Sources

Input values can be read from:

  • msg
  • flow
  • global
  • Numeric constants
  • Boolean constants
  • String constants

Output values can be written to:

  • msg
  • flow
  • global

Status Display

The node provides a compact real-time status display similar to PLC ladder diagnostics.

Examples:

NO motor_run(true)→TRUE

GT temp(85)>limit(80)→TRUE

ADD a(10)+b(5)→result=15

DIV x(9)/y(0)→÷0ERR

SET →motor=TRUE

RST →alarm=FALSE

The status indicator also changes color:

  • Green = instruction result is TRUE
  • Gray = instruction result is FALSE
  • Red = execution error

Example

Greater Than Comparison

Source A: msg.temperature
Source B: msg.limit

Instruction: GT

Input:

{
  "temperature": 85,
  "limit": 80
}

Result:

{
  "ladder": {
    "func": "GT",
    "result": true
  }
}

Addition

Source A: msg.value1
Source B: msg.value2

Instruction: ADD
Destination: msg.result

Input:

{
  "value1": 10,
  "value2": 5
}

Output:

{
  "value1": 10,
  "value2": 5,
  "result": 15
}

IEC 61131-3 Inspired

This node is inspired by the instruction set commonly found in PLC programming environments implementing the IEC 61131-3 standard.

It allows Node-RED users to create ladder-style logic using familiar industrial automation instructions without requiring a PLC.


Installation

npm install @vitormnm/node-red-instructions-ladder-iec-61131-3

Restart Node-RED after installation.


License

MIT