16 lines
545 B
Smarty
16 lines
545 B
Smarty
id: {{ .id }}
|
|
{{- if .rs485serial }}
|
|
# Modbus: RS485 via adapter
|
|
device: {{ .device }} # USB-RS485 Adapter Adresse
|
|
baudrate: {{ .baudrate }} # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
|
|
comset: "{{ .comset }}" # Kommunikationsparameter für den Adapter
|
|
{{- end }}
|
|
{{- if .rs485tcpip }}
|
|
# Modbus: RS485 via TCPIP
|
|
uri: {{ .host }}:{{ .port }} # IP-Adresse oder Hostname: Port
|
|
rtu: true
|
|
{{- end }}
|
|
{{- if .tcpip }}
|
|
# Modbus: TCPIP
|
|
uri: {{ .host }}:{{ .port }} # IP-Adresse oder Hostname: Port
|
|
{{- end }}
|