Skip to content

Cannot connect to Siemens Logo8 #15

@MartinMuzatko

Description

@MartinMuzatko

Hey there!

I was able to connect to our LOGO 8 via tools like http://www.frickelzeugs.de/logocontrol/

However via nodejs S7Client, I have no success.

This is my setup:

const { S7Client } = require('s7client')
const plcSettings = {
    name: "SLOGO8",
    host: '192.168.255.200',
    connectionCheckInterval: 20000,
    maxRetryDelay: 20000,
    alivePkgCycle: 20000,
}

const client = new S7Client(plcSettings)
client.on('error', console.error)

const start = async () => {
    await client.connect()
    // client.disconnect()
}

start()

This is my result:

(node:1597) UnhandledPromiseRejectionWarning: Error: SLOGO8:  ISO : An error occurred during recv TCP : Connection timed out    at S7Client._getErr (/mnt/c/Users/Martin Muzatko/dev/test/slogo/node_modules/s7client/src/index.js:325:12)    
    at /mnt/c/Users/Martin Muzatko/dev/test/slogo/node_modules/s7client/src/index.js:336:36
(node:1597) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1597) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

When I try to connect to another port, I get at least:

``(node:1567) UnhandledPromiseRejectionWarning: TCP : Unreachable peer`

Thank you in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions