From 81ca448d8a2c70941ede44083f858dabb2cb9a9e Mon Sep 17 00:00:00 2001 From: Philipp Jungkamp Date: Sun, 15 May 2022 23:56:39 +0000 Subject: [PATCH] add example config for iec60870-5-104-slave node --- etc/iec104.conf | 71 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 etc/iec104.conf diff --git a/etc/iec104.conf b/etc/iec104.conf new file mode 100644 index 000000000..f0eae220c --- /dev/null +++ b/etc/iec104.conf @@ -0,0 +1,71 @@ + +nodes = { + iec104 = { + type = "iec60870-5-104-slave" + + # network address and port of the server + # 0.0.0.0 listens on all interfaces + address = "0.0.0.0" + port = 2402 + # common address of this IEC104 slave + ca = 2 + # pack information objects with subsequent information object adresses tighter + # ToDo: not implemented yet + #pack = [ + # { + # start = 1234 + # end = 1235 + # } + #] + + out = { + # map signals to information object addresses and asdu data types + # one asdu per specified asdu_type is send for each batch of samples + signals = ( + { + name = "signal0" + type = "float" + # the asdu data type + asdu_type = "short" + # add 56 bit unix timestamp to asdu + with_timestamp = true + unit = "V" + init = 0 + # the information object address of this signal + ioa = 1234 + }, + # signal1 could be packed tighter in the asdu + # as its ioa is adjacent to signal0 + # and signal0 and signal1 share the same + # asdu type + # + # ToDo: allow dense packing (see "pack" above) + # ToDo: allow mixed asdu types () + { + name = "signal1" + type = "float" + asdu_type = "short" + with_timestamp = true + unit = "V" + init = 0 + ioa = 1235 + } + ) + } + } + signal = { + type = "signal" + signal = "mixed" + values = 2 + } +} + +paths = ( + { + in = "signal" + out = "iec104" + hooks = ( + { type = "print" } + ) + } +)