# 插件设置

# MQTT

{
    "node": "",
    "params": {
        // required, MQTT client ID
        "client-id": "test",
        // optional, subscription data reporting channel
        "upload-topic": "",
        // optional, the channel for heartbeat data reporting
        "heartbeat-topic": "",
        // required, the json format selection of the reported data, 0 values, 1 tags
        "format": 0,
        // required, whether to enable mqtt ssl
        "ssl": false,
        // required, MQTT Broker host
        "host": "broker.emqx.io",
        // required, MQTT Broker port number
        "port": 1883,
        // optional, username to use when connecting to the broker
        "username": "",
        // optional, the password to use when connecting to the broker
        "password": "",
        // ca file, only enabled when the ssl value is true, in which case it is required
        "ca": "",
        // optional, cert file, only enabled when the ssl value is true
        "cert": "",
        // optional, key file, only enabled when the ssl value is true
        "key": "",
        // optional, key file password, only enabled when the ssl value is true
        "keypass": ""
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

# Modbus

# modbus-tcp

{
    "node": "modbus-tcp-1",
    "params": {
        // required, the ip of the remote device
        "host": "127.0.0.1",
        // required, the tcp port of the remote device
        "port": 502,
        // required, timeout for sending requests to the device
        "timeout": 3000
    }
}
1
2
3
4
5
6
7
8
9
10
11

# modbus-plus-tcp

{
    "node": "modbus-plus-tcp",
    "params": {
        // required, 0 the neuron driver is used as the client, 1 the neuron driver is used as the server
        "connection_mode": 0,
        // required, client: host means the ip of the remote device. server: it means the ip used by neuron locally
        "host": "127.0.0.1",
        // required, client: port means the tcp port of the remote device. server: it means the tcp port used by neuron locally
        "port": 502,
        // required, timeout for sending requests to the device
        "timeout": 3000
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13

# modbus-rtu

# 串口连接设置

{
    "node": "modbus-rtu",
    "params": {
        // required, connection method, 0 serial port, 1 tcp,
        "link": 0,
        // required, timeout for sending requests to the device
        "timeout": 3000,
        // serial port required, use a serial device
        "device": "dev/ttyUSB0",
        // serial port required, stopbits
        "stop": 0,
        // serial port required, parity bit
        "parity": 0,
        // serial port required, baudrate
        "baud": 4,
        // serial port required, bytesize
        "data": 3
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

# TCP 连接设置

{
    "node": "modbus-rtu",
    "params": {
        // required, connection method, 0 serial port, 1 tcp,
        "link": 1,
        // required, timeout for sending requests to the device
        "timeout": 3000,
        // tcp required, client: host means the ip of the remote device. server: it means the ip used by neuron locally
        "host": "127.0.0.1",
        // tcp required, client: port means the tcp port of the remote device. server: it means the tcp port used by neuron locally
        "port": 502,
        // tcp required, 0 the neuron driver is used as the client, 1 the neuron driver is used as the server
        "connection_mode": 0
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

# OPC UA

{
    "node": "opc ua",
    "params": {
        // required, the address of the remote access plc
        "url": "opc.tcp://127.0.0.1:4840/",
        // optional, the user used when connecting to plc
        "username": "",
        // optional, the password used when connecting to plc
        "password": "",
        // optional, the certificate to provide login user authentication
        "cert": "",
        // optional, the private key to provide signature and encrypted transmissions
        "key": ""
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

# Simemens S7 ISOTCP

{
    "node": "s7",
    "params": {
        // required, remote plc ip
        "host": "127.0.0.1",
        // required, remote plc port
        "port": 102,
        // required, plc rack number
        "rack": 0,
        // required, plc cpu slot
        "slot": 1
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13

# OMRON FINS on TCP

{
    "node": "fins",
    "params": {
        // required, remote plc ip
        "host": "127.0.0.1",
        // required, remote plc port
        "port": 9600
    }
}
1
2
3
4
5
6
7
8
9

# Mitsubishi MELSEC-Q E71

{
    "node": "e71",
    "params": {
        // required, remote plc ip
        "host": "127.0.0.1",
        // required, remote plc port
        "port": 2000
    }
}
1
2
3
4
5
6
7
8
9

# IEC 60870-5-104

{
    "node": "iec104",
    "params": {
        // required, device ip
        "host": "127.0.0.1",
        // required, device port
        "port": 2404,
        // required, common address
        "ca": 1,
        // required, station interrogation interval
        "interval": 10
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13

# BACnet/IP

{
    "node": "bacnet",
    "params": {
        // required, BACnet device ip
        "host": "127.0.0.1",
        // required, BACnet device port
        "port": 47808
    }
}
1
2
3
4
5
6
7
8
9

# DL/T645-2007

# 串口连接设置

{
    "node": "dlt645-1",
    "params": {
        // required, connection method, 0 serial port, 1 tcp
        "link": 0,
        // required, contact address
        "mail_address": 210220003011,
        // required, timeout for sending requests to the device
        "timeout": 3000,
        // serial port required, use a serial device
        "device": "dev/ttyUSB0",
        // serial port required, stopbits
        "stop": 0,
        // serial port required, parity bit
        "parity": 2,
        // serial port required, baudrate
        "baud": 4,
        // serial port required, bytesize
        "data": 3
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

# TCP 连接设置

{
    "node": "dlt645-1",
    "params": {
        // required, connection method, 0 serial port, 1 tcp
        "link": 1,
        // required, contact address
        "mail_address": 210220003011,
        // required, timeout for sending requests to the device
        "timeout": 3000,
        // tcp required, client: host means the ip of the remote device. server: it means the ip used by neuron locally
        "host": "127.0.0.1",
        // tcp required, client: port means the tcp port of the remote device. server: it means the tcp port used by neuron locally
        "port": 502,
        // tcp required, 0 the neuron driver is used as the client, 1 the neuron driver is used as the server
        "connection_mode": 0
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

# Sparkplug_B

{
    "node": "sparkplugb",
    "params": {
        // required, the top-level logical group in Sparkplug_B
        "group-id": "test",
        // required, MQTT client ID, A unique identifier that can represent the edge end
        "client-id": "saprk-test",
        // required, whether to enable mqtt ssl,
        "ssl": false,
        // required, MQTT Broker host
        "host": "broker.emqx.io",
        // required, MQTT Broker port number
        "port": 1883,
        // optional, username to use when connecting to the broker
        "username": "",
        // optional, the password to use when connecting to the broker
        "password": "",
        // required, ca file, only enabled when the ssl value is true
        "ca": "",
        // optional, cert file, only enabled when the ssl value is true
        "cert": "",
        // optional, key file, only enabled when the ssl value is true
        "key": "",
        // optional, key file password, only enabled when the ssl value is true
        "keypass": ""
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

# NON A11

{
    "node": "nona11",
    "params": {
        // required, 0 the neuron driver is used as the client, 1 the neuron driver is used as the server
        "connection_mode": 0,
        // required, client: port means the tcp port of the remote device. server: it means the tcp port used by neuron locally
        "host": "127.0.0.1",
        // required, client: port means the tcp port of the remote device. server: it means the tcp port used by neuron locally
        "port": 10,
        // required, NON-A11 device site number
        "site": 1
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13