Giter Club home page Giter Club logo

Comments (10)

MattCost avatar MattCost commented on July 22, 2024 2

Yup! All working now

from node-ethernet-ip.

cmseaton42 avatar cmseaton42 commented on July 22, 2024 1

ahhhh, yep this is definitely related to #1. The readWallClock method in the connect method is causing the issue, apparently this feature only works with the latest rockwell releases (e.g. L8 series controllers). We will update the code soon and release a patch today. @patrickjmcd or myself will update the thread once the changes are live. Thanks for helping to track this down =].

from node-ethernet-ip.

cmseaton42 avatar cmseaton42 commented on July 22, 2024

Hey man, thanks for letting us know. Your code looks fine. I think this may be related to #1.

If you have a few minutes, can you run the following code and let me know what it prints?

const { Controller } = require("ethernet-ip");
const PLC = new Controller();

// Controller.connect(IP_ADDR[, SLOT])
// NOTE: SLOT = 0 (default) - 0 if CompactLogix
PLC.connect("10.115.45.55", 0).then(() => {
    console.log("Connected to PLC!");
    console.log(PLC.properties);
}).catch(e => {
    console.log(PLC.properties);
    console.log("=========================");
    console.log(e);
});

This should give some more insight into what might be happening.

from node-ethernet-ip.

MattCost avatar MattCost commented on July 22, 2024

#Results

C:\NodeJS\PLC01>node
plc01.js
{ name: '1756-L75/B LOGIX5575',
serial_number: 14878836,
slot: 0,
time: null,
path: <Buffer 01 00>,
version: '28.12',
status: 12384,
faulted: false,
minorRecoverableFault: false,
minorUnrecoverableFault: false,
majorRecoverableFault: false,
majorUnrecoverableFault: false,
io_faulted: false }
=========================
{ generalStatusCode: 8, extendedStatus: [] }

Time Settings. Only issue is DST adjustment is off.
image

from node-ethernet-ip.

patrickjmcd avatar patrickjmcd commented on July 22, 2024

You should be able to upgrade the npm package npm install --save --upgrade ethernet-ip and your issue should be resolved. The call to readWallClock has been removed so you should no longer get that error.

from node-ethernet-ip.

cmseaton42 avatar cmseaton42 commented on July 22, 2024

@MattCost Can you confirm that v1.1.1 resolves your issue?

from node-ethernet-ip.

cmseaton42 avatar cmseaton42 commented on July 22, 2024

Awesome! 🎉 Closing this.

from node-ethernet-ip.

RuanV avatar RuanV commented on July 22, 2024

HI Can Some one please help me I Have a Similar problem. But I keep getting this error:
caught error!Error Code:undefined { generalStatusCode: 5, extendedStatus: [] }.

Does this mean information is missing in the readtag parameters?
This is my Code:
var test = new Tag("CCW_Roll_RRCtrl", null, DINT);
PLC.connect("192.168.1.200", 2).then(async () => {
var { name } = PLC.properties;

console.log(`\n\nConnected to PLC ${name}...\n`);
await PLC.readTag(test);
console.log(tes.value);

}).catch(error => {
console.error('caught error!' + 'Error Code:' + error.Code, error);
});

Secondly:
Does this module connect with the Allen bradley Rockwell 1756-EN2T/D\u0003\u0000\u0000\u0000 PLC

from node-ethernet-ip.

jhenson29 avatar jhenson29 commented on July 22, 2024

1756-EN2T is an Ethernet card, not a PLC. You are connecting to slot 2. Is that where the EN2T is? Because that would be wrong. You need to enter the slot number for the processor, the one with a keyswitch and probably a 1756-Lxx part number. As a reminder, slot counting starts at 0.

from node-ethernet-ip.

RuanV avatar RuanV commented on July 22, 2024

Okay great, I did not take that in consideration. I will test today and see what is my results. Thanks for the assistance

from node-ethernet-ip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.