Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled rejection #1

Open
rafixo opened this issue Aug 2, 2017 · 1 comment
Open

Unhandled rejection #1

rafixo opened this issue Aug 2, 2017 · 1 comment

Comments

@rafixo
Copy link

rafixo commented Aug 2, 2017

Hi,
I'm testing OPCModbusUAServer. Default config.json work perfect, but with my new config I have a problem. Could you help me?

cmd:

node server.js
OPC UA Server initialized
Created a Modbus device on 192.168.50.40:502 1
creating folder: 192.168.50.40:502 unit:1
Creating folder: coils
Server is now listening...
Unhandled rejection (<{"errorCode":129,"exceptionCode":1,"me...>, no stack trace)

config.json:

{
    "url": "ModbusServer",
    "port": 8080,
    "modbusdevices": [
        {
            "modbushost": "192.168.50.40",
            "modbusport": 502,
            "unit": 1,
            "pollrate":500,
            "onebased":true,
            "deviceaddressspace": [
                {
                    "type": "coils",
                    "addresses": [
                        {
                            "address": 30002,
                            "count": 1
                        }
                    ]
                }
            ]
        }
    ]
}
@ghost
Copy link

ghost commented Apr 3, 2019

Address 30002 looks a bit odd for a coil. Usually, numbers in the 30000 range are input registers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant