-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathmodbus.yaml
More file actions
48 lines (42 loc) · 1.12 KB
/
modbus.yaml
File metadata and controls
48 lines (42 loc) · 1.12 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
# SPDX-License-Identifier: Apache-2.0
---
allOf:
- type: object
required: [transport]
properties:
response_timeout:
type: number
description: The timeout in seconds when waiting for responses from a Modbus server.
example: 1.0
rate:
type: number
description: The rate at which Modbus device registers are queried for changes.
example: 1.0
in:
type: object
properties:
signals:
type: array
items:
$ref: ./signals/modbus_signal.yaml
out:
type: object
properties:
signals:
type: array
items:
$ref: ./signals/modbus_signal.yaml
transport:
type: string
description: The transport protocol used for Modbus communication.
enum:
- tcp
- rtu
discriminator:
propertyName: transport
mapping:
tcp: ./modbus_tcp.yaml
rtu: ./modbus_rtu.yaml
- $ref: ../node.yaml