Coder Social home page Coder Social logo

Comments (7)

Lichtjaeger avatar Lichtjaeger commented on July 23, 2024

Can you post your configuration? For S7 1x00 it should look like:

const plc = new (require('nodes7'))({ silent: true })
plc.initiateConnection({
  host: '<IP of the plc>',
  port: 102,
  slot: 1,
  rack: 0
}, err => {
  // ...
})

Can you ping the plc?

from nodes7.

volkanalkilic avatar volkanalkilic commented on July 23, 2024

Yes, i can ping the plc.

var nodes7 = require("nodes7");
var conn = new nodes7;

conn.initiateConnection({ port: 102, host: '192.168.1.150', rack: 0, slot: 1 }, function (err) {

});

from nodes7.

Lichtjaeger avatar Lichtjaeger commented on July 23, 2024

Hmm..., should work.

Can you copy the console output? Is there an error?

from nodes7.

volkanalkilic avatar volkanalkilic commented on July 23, 2024

I do not have access to PLC at this point, but as far as I can remember console output is "internal server error".

from nodes7.

Lichtjaeger avatar Lichtjaeger commented on July 23, 2024

The console output of nodeS7 looks like:

[919,883304001] Initiate Called - Connecting to PLC with address and parameters:
[919,884208285] { port: 102, host: '192.168.1.150', rack: 0, slot: 1 }
[919,886065128] Connection cleanup is happening
[919,900610458 10.2.202.145 S2] Attempting to connect to host...
[919,908272737 10.2.202.145 S2] TCP Connection Established to 192.168.1.150 on port 102
[919,908350279 10.2.202.145 S2] Will attempt ISO-on-TCP connection
[919,913547538 10.2.202.145 S2] ISO-on-TCP Connection Confirm Packet Received
[919,918113432 10.2.202.145 S2] Received PDU Response - Proceeding with PDU 240 and 2 max parallel connections.

(If you don't pass silent: true)
If you get an error before this lines, your program is crashing before even reach your conn.initiateConnection line.

from nodes7.

plcpeople avatar plcpeople commented on July 23, 2024

Any updates on an actual connection error?

from nodes7.

plcpeople avatar plcpeople commented on July 23, 2024

Closing due to lack of activity. Please re-open if you are still having difficulty and can post some console output or other information that might help resolve the issue.

from nodes7.

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.