# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
# SPDX-License-Identifier: Apache-2.0


nodes = {
     	iec104_node = {
        type = "iec60870-5-104"

        # Network address and port of the server
        # 0.0.0.0 listens on all interfaces
        address = "0.0.0.0"
        port = 2404

        # Common address of this IEC104 slave
        ca = 41025

        # Queue sizes for this node
        low_priority_queue = 100
        high_priority_queue = 100

        out = {
            # Map signals to information object addresses and ASDU data types
            # one ASDU per specified asdu_type_id/asdu_type+with_timestamp is
            # send for each sample. Signals of the same type are collected
            # in a single ASDU.
            signals = (
                {
                    # The ASDU data type
                    asdu_type = "normalized-float"
                    # add 56 bit unix timestamp to ASDU
                    with_timestamp = false
                    # the information object address of this signal
                    ioa = 4202832
                },
                {
                    # Equivalent to the asdu_type above
                    asdu_type_id = "M_ME_NA_1"
                    ioa = 4202852
                },
                {
                    # A boolean value
                    asdu_type = "single-point"
                    with_timestamp = true
                    ioa = 4206948
                }
            )
        }
    }
}
