**Parameter**
| **Type**
| **Description**
| **Required**
| **Default Value**
(when not specified)
| **Range**
|
---|
TCP | RTU/ASCII | Min | Max |
---|
name
| string | User-friendly name for a device
| Yes | Yes |
|
|
|
description
| string | Description of a device
| No | No |
|
|
|
device\_alias
| string | Alphanumeric string to identify a device
| Yes | Yes |
|
|
|
enable | boolean | Enabling/disabling of a device
| No | No | 1 | 0 | 1 |
protocol | string | Protocol to be used
| Yes | Yes |
| Modbus RTU, Modbus TCP |
ip | string | IP address of TCP slave device | Yes | - |
|
|
|
port | integer | TCP communication port
| Yes
| -
| 502
| |
|
bind\_address | string | IP address of network adapter used to connect to slave device
(Default: ”0.0.0.0”)
| No | No | 0.0.0.0 |
|
|
id | integer | Modbus Slave ID | Yes | Yes |
|
|
|
mode | string | Choosing between RTU (”rtu”), ASCII
(”ascii”) and TCP(”tcp”) modes. ASCII
is the same as RTU, but with ASCII
symbols. | No | No | TCP (for TCP)
RTU (for Serial)
| rtu, ascii, tcp |
timeout\_ms | integer | Response timeout in milliseconds
| Yes
| Yes | 10000
| | |
device | string
| Communication port (”PORT1”/”PORT2”)
| -
| Yes | | PORT1
| PORT2
|
baudrate | integer | Communication speed, baud/s
| -
| Yes | 9600
| 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200
|
databits | integer | Data bit count for communication
| -
| Yes | 8
| 6
| 9
|
stopbits | integer | Stop bit count for communication
| -
| Yes | 1
| 1
| 2
|
parity | string
| Communication parity option
| -
| Yes | none
| none, even, odd
|
flowcontrol | string
| Number of requests, before link is considered lost (device status signals are changed) and reconnect attempt will be issued
| -
| Yes | none
| none
|
scan\_rate\_ms | integer | If provided and positive - all jobs will have similar scan rate - all reads and writes will be executed within this timeframe (parameter scan\_rate\_ms in Signals tab will be ignored)
| Yes | Yes | 300 |
|
|
retry\_count | integer | Number of requests, before link is considered lost (device status signals are changed) and reconnect attempt will be issued
| No | No | 3 |
|
|
serial\_delay | integer | RS485 delay between read and write operations in milliseconds
| -
| Yes | 50
| | |
keep\_alive\_timeout
| integer | Time interval for sending a keep alive packet (in milliseconds)
| No | No | 60 |
|
|
modbus\_multi\_write
| boolean | Use 15/16 functions to write 1 register/coil
(Default: 0)
| No | No | 0 | 0 | 1 |
comm\_restart\_delay
| integer | Time delay between disconnecting from slave device and restarting connection (in milliseconds)
(Default: 500)
| No
| - | 500
| | |
update
| boolean | Enable to keep updating the tags even if they have the same value.
| No
| No
| 0
| 0
| 1
|