Comments (10)
Yup! All working now
from node-ethernet-ip.
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.
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.
#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.
from node-ethernet-ip.
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.
@MattCost Can you confirm that v1.1.1
resolves your issue?
from node-ethernet-ip.
Awesome! 🎉 Closing this.
from node-ethernet-ip.
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.
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.
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)
- Class1 Implicit message
- TCP connection leaking on closing connection HOT 1
- Add an option to configure the timeout of "Unconnected Send" messages HOT 1
- Changed Event is missed for previously written tags
- Waht is the max Size of a TagGroup? HOT 2
- Decimal precision is not correct HOT 4
- Question: Can I get tag descriptions? HOT 3
- High PLC CPU utilization and large number of connection errors. HOT 14
- Can't Read Tag by using attribute ID HOT 1
- Error: TIMEOUT occurred while reading Controller Props. - Micrologix 1100 HOT 5
- tag.generateReadMessageRequest is not a function
- Error connecting to PLC: Error: TIMEOUT occurred while reading Controller Props. HOT 4
- Is this Project Still Maintained? HOT 4
- Possible for multiple scan rates without creating a "new" controller for each one? HOT 5
- Preferred disconnection or unsubscribe method?
- String Tags in Compact Logix / Control Logix HOT 1
- Micro820 PLC , Error: <SCAN_GROUP> TIMEOUT occurred while writing Reading Tag Group HOT 1
- PLC.foreach() doesn't work HOT 1
- Software name HOT 1
- Micro Queue is already full at size of 100 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-ethernet-ip.