Skip to content

Driver channels, devices and tags

eaxScadaReferenceStarterView as Markdown

Driver configuration (data/drivers/config.json): channels, their devices and tag mappings, and the protocol settings object of each channel.

Keys are the JSON keys. Optional marks keys that are omitted when empty, or that may be absent (pointers).

Channel represents a physical or logical communication channel (eaxDrivers Channel level)

Source: eaxScada/internal/drivers/types.go

Key Type Optional Description
id string
name string
description string
protocol string ETHERNET_IP, ISO_ON_TCP, MODBUS_TCP, etc.
enabled boolean
inter_request_delay_ms integer ms delay between packets
connect_timeout_ms integer
request_timeout_ms integer
retry_count integer
settings JSON value Protocol-specific settings JSON
status ChannelStatus
last_error string yes
last_error_at timestamp (RFC 3339 string) yes in ERROR since (history: diagnostics)
packets_sent integer
packets_recv integer
error_count integer
last_rtt_ms number
last_connected timestamp (RFC 3339 string) yes
devices list of Device yes
simulated boolean Simulated mirrors the Simulated flag inside Settings so the UI can show it without parsing protocol-specific settings. A simulated channel never touches the network and every tag under it is generated, which is indistinguishable from healthy live data unless it is surfaced. Derived server-side on read; never trust it from a request body.
link LinkStats yes Link is the running driver’s link-level diagnostics (frames, checksum errors, timeouts, node states) for the serial and CAN drivers. Derived on read; absent for drivers that do not report it.
_rev string yes Rev is the revision of the channel’s configuration: send it back in the If-Match header of a save (a stale one is refused with 409). Read only.

Device represents a physical PLC, RTU, or endpoint under a channel (eaxDrivers Device level)

Source: eaxScada/internal/drivers/types.go

Key Type Optional Description
id string
channel_id string
name string
description string
station_id string IP address, node number, slave address, or topic prefix
model string e.g. 1769-L33ER, S7-1516-3, Micro850, Generic Modbus
scan_rate_ms integer
enabled boolean
block_read_optimization boolean
max_block_size integer
status ChannelStatus
last_error string yes
tag_count integer
packets_sent integer
packets_recv integer
error_count integer
tags list of TagMapping yes
scan_measured_ms number yes ScanMeasuredMs (runtime, read only) is the measured time between two polls of the device (averaged), PollCycleMs how long its last poll took; both 0 until it was polled twice. A measured rate well above scan_rate_ms means the line or the controller cannot keep up.
poll_cycle_ms number yes
uns_prefix string yes UNSPrefix is the ISA-95 path this device sits at, e.g. “Plant/Processing/BlendLoop”. Protocols that carry less hierarchy than the UNS needs (Modbus carries none, CIP and Sparkplug carry equipment and signal) use it to build the suggested UNS path of a browsed tag. Without it the suggestion is only the part the device actually knows.
plc_id string yes PLCID, optional, declares the device as the eaxPLC with this id (as configured on this server, e.g. “plc-01”). Active PLC forces are then shown on the device’s tags by address, without guessing which PLC the device is. Empty: the device is not declared as an eaxPLC.
simulated boolean Simulated is inherited from the parent channel, surfaced here so a device row can be badged without the caller re-resolving the channel.
_rev string yes Rev is the revision of the device’s configuration (If-Match of a save). Read only.

TagMapping maps a device hardware address to a NATS-based Unified Namespace (UNS) tag path

Source: eaxScada/internal/drivers/types.go

Key Type Optional Description
id string
device_id string
channel_id string
tag_name string Hardware symbolic name or register
address string e.g. “HR:40001”, “DB1.DBD0”, “Program:Main.Speed”, “ns=2;s=Temp”
data_type string Float32, Float64, Int16, Int32, UInt16, Bool, String
access string “RO” (Read Only: every write refused before it is sent, whoever asks), “RW” (Read / Write; also empty), “WO” (Write Only)
deadband number Value delta for publishing trigger
eng_unit string RPM, °C, bar, %, kW
uns_path string Core UNS path: “Plant/Processing/Reactor1/Temperature”
nats_topic string Auto-derived: “uns.telemetry.Plant.Processing.Reactor1.Temperature”
live_value number
quality integer 192 = Good, 0 = Bad, 64 = Uncertain
timestamp integer
last_error string yes runtime: why the last read failed (“” after a good read)
simulated boolean The mapping’s channel is simulated (derived from the channel; never a fallback for a disconnected device)
live_text string yes LiveText (runtime) is a String mapping’s last text read from the device (FINS, MC protocol: TextReader). Quality and Timestamp are its read’s: a failed read keeps the text with quality BAD, never GOOD. The tag engine holds numbers, so the text is not in it.
scale number yes Scale divides the raw value read from the device to produce the engineering value. Modbus transmitters send integers — a level in percent as value100, a pump speed in rpm as value10 — and the factor differs per signal because a single factor overflows a 16-bit register for large spans. Zero and one both mean “no scaling”; zero is the zero value of the field and must not be treated as “divide by zero”.
eng_min number yes Engineering range (instrument span), optional. A Good value outside it is published as Uncertain (EU exceeded), never as Good.
eng_max number yes
esign_external boolean yes ESignExternal: an external writer - a NATS command, a non-session API caller, an AI agent - must sign every write to this tag (a person’s e-signature or a registered integration’s signature). The HMI keeps the screen policy. Founder decision 2026-10-01 (internal/writepolicy).
write_range Range yes WriteRange: the values a write to this tag may carry (min, max, step, allowed values; for a String tag max_length and allowed texts). The server refuses a write outside it, whoever sends it. Distinct from the engineering range, which only flags a read value’s quality.
handed_over Handover yes HandedOver: the mapping took its path over from a local tag (“Hand over to driver”, handover.go). Set by the server only, never from a request; kept by every save on the same path. It holds the local definition “Return to local tag” puts back.
_rev string yes Rev is the revision of the mapping’s configuration (If-Match of a save). Read only.

EtherNetIPSettings configures a CIP controller reached over EtherNet/IP: tag reads and writes by name over a connected session. A Logix controller in a chassis (or a compact one) is reached through the backplane (“1,<slot>”); a controller with no backplane (the Micro family, controller_type MicroCIP) is reached with an empty route. With controller_type DeviceCIP the connection is an EtherNet/IP device instead (drive, I/O adapter): attributes by class/instance/attribute, unconnected explicit messages, no route. With controller_type MicroLogixPCCC, SLC500PCCC or PLC5PCCC it is a PCCC controller (MicroLogix, SLC 500, PLC-5): data-table addresses, PCCC commands in unconnected messages, no route. Assembly I/O and implicit (Class 1) connections are not supported.

Source: eaxScada/internal/drivers/types.go

Key Type Optional Description
host string Controller (or Ethernet module) IP address, e.g. 192.168.1.50
port integer Default 44818
slot integer Controller slot in the chassis (route “1,<slot>”; 0 for a compact controller; not used by a controller with no backplane)
cip_path string Optional route that replaces the slot, e.g. “1,0” or a multi-hop “1,2,2,10.0.0.5,1,0”
connection_type string Kept for compatibility; not read by the driver (always a connected session)
controller_type string Controller family (“CompactCIP”, “ModularCIP”, “MicroCIP”, “GenericCIP”), “DeviceCIP” for an EtherNet/IP device (drive, I/O adapter), or a PCCC controller (“MicroLogixPCCC”, “SLC500PCCC”, “PLC5PCCC”: data-table addresses such as N7:0); selects the route (MicroCIP → empty route, no backplane). Empty is read as a backplane (“1,<slot>”) controller, unchanged from before.
auto_discover boolean Kept for compatibility; not read by the driver
simulated boolean yes Explicit simulator mode
timeout_ms integer yes TimeoutMs bounds each request to an EtherNet/IP device (DeviceCIP) or a PCCC controller (ms, 100-30000). 0: 2000. Not read for a Logix controller.

ISOOnTCPSettings configures an S7-300/400/1200/1500 PLC over ISO-on-TCP (RFC 1006, port 102): absolute addresses in DB, M, I and Q. An S7-1200/1500 needs PUT/GET access allowed and data blocks without optimized access.

Source: eaxScada/internal/drivers/types.go

Key Type Optional Description
host string PLC IP address (e.g. 192.168.1.10)
port integer Default 102
rack integer Default 0
slot integer CPU slot: 1 for S7-1200/1500, 2 for S7-300 (0 takes the family default)
plc_family string “S7-1500”, “S7-1200”, “S7-300”, “S7-400” (legacy “ISO-1500” etc. are read as these)
pdu_size integer Negotiated PDU (240 to 960)
auto_reconnect boolean
simulated boolean yes Explicit simulator mode

ModbusTCPSettings configures Modbus TCP/IP Ethernet

Source: eaxScada/internal/drivers/types.go

Key Type Optional Description
host string Gateway/PLC IP address
port integer Default 502
unit_id integer Default 1 (Slave address)
byte_order string “ABCD” (Big-Endian), “CDAB” (Word-Swap), “BADC”, “DCBA”
max_block_size integer Default 125 registers
zero_based boolean Address indexing starts at 0 or 1
simulated boolean yes Explicit simulator mode; the port is never used to infer it
gateway boolean yes Gateway: the address is a Modbus TCP gateway with several devices behind it (meters, drives, RTUs on its serial side). Each device is a station whose station_id is its unit id (1-247); its reads and writes carry that unit id over the one connection, and a device without a station id uses UnitID. Off (the default, and every configuration saved before gateways existed): every request goes to UnitID and the station_id is not read.
timeout_ms integer yes TimeoutMs bounds each request (ms, 100-30000). 0: 2000, as before; the channel’s request timeout is not used for Modbus TCP.
block_gap_registers integer yes BlockGapRegisters: with block reads on a device, the most unmapped holding or input registers one block read spans between two tags. Unset: 16; 0: only adjacent tags are read together.
block_gap_bits integer yes BlockGapBits: with block reads on a device, the most unmapped coils or discrete inputs (bits) one block read spans between two tags. Unset: 64; 0: only adjacent tags are read together.

ModbusRTUSettings configures Modbus Serial RTU

Source: eaxScada/internal/drivers/types.go

Key Type Optional Description
serial_port string e.g. “COM3” or “/dev/ttyUSB0”
baud_rate integer 9600, 19200, 38400, 57600, 115200
data_bits integer 7, 8
stop_bits integer 1, 2
parity string “N” (None), “E” (Even), “O” (Odd)
slave_id integer 1 to 247
byte_order string “ABCD”, “CDAB”, “BADC”, “DCBA”
turnaround_delay integer Silence time ms
simulated boolean yes Explicit simulator mode
rs485 boolean yes RS485: let the operating system drive RTS for the transmitter direction (Linux only; adapters with automatic direction control need nothing).
rts_before_send_ms integer yes RTSBeforeSendMs: with rs485, time the driver is enabled before the first bit is sent.
rts_after_send_ms integer yes RTSAfterSendMs: with rs485, time the driver stays enabled after the last bit, before the line is released for the answer.
inter_frame_us integer yes InterFrameUs overrides the inter-frame silence; 0 computes 3.5 character times (1750 us above 19200 baud).
allow_broadcast boolean yes AllowBroadcast permits writes to unit 0, which every slave on the line executes and none acknowledges. Off by default; reads of unit 0 are always refused.
block_gap_registers integer yes BlockGapRegisters: as on Modbus TCP, the most unmapped registers one block read spans between two tags (16 when unset).
block_gap_bits integer yes BlockGapBits: as on Modbus TCP, the most unmapped coils or discrete inputs (bits) one block read spans between two tags (64 when unset).

OPCUASettings configures OPC-UA Client

Source: eaxScada/internal/drivers/types.go

Key Type Optional Description
endpoint_url string opc.tcp://192.168.1.100:4840
security_policy string “None”, “Basic256Sha256”, “Aes128_Sha256_RsaOaep”
security_mode string “None”, “Sign”, “SignAndEncrypt”
auth_mode string “Anonymous”, “Username”, “Certificate”
username string yes
password string yes
publish_interval_ms integer Subscription rate
simulated boolean yes Explicit simulator mode

MQTTSettings configures MQTT Broker & Sparkplug B bridge

Source: eaxScada/internal/drivers/types.go

Key Type Optional Description
broker_url string tcp://broker.example.com:1883 or ssl://…
client_id string SCADA-Edge-Gateway-01
username string yes
password string yes
clean_session boolean
keep_alive_sec integer Default 60
qos integer 0, 1, 2
payload_format string “JSON_TELEMETRY”, “SPARKPLUG_B”, “RAW_VALUE”
topic_sub_pattern string e.g. “sensors/+/telemetry” or “spBv1.0/#”
topic_pub_prefix string e.g. “scada/edge/telemetry”
uns_mapper_regex string Pattern to extract UNS path from topic
simulated boolean yes Explicit simulator mode
ingest_path_prefix string yes IngestPathPrefix: a received message writes only the tags this channel maps to its topic (a Sparkplug metric: a tag this channel maps). Set, a path under this UNS prefix (e.g. “Plant/Edge”) that no other channel maps is accepted too: the payload’s “path”, else the topic without “sensors/”. Empty (the default): mapped tags only. A wildcard or a bare “/” is no prefix.

NATSSettings configures NATS Core UNS & Cluster Bridge

Source: eaxScada/internal/drivers/types.go

Key Type Optional Description
broker_url string nats://127.0.0.1:4222 or remote cluster
auth_token string yes
inbound_prefix string e.g. “uns.telemetry.>”
outbound_prefix string e.g. “uns.command.>”
jetstream_bucket string e.g. “scada_uns_snapshots”
queue_group string Load balancing queue
simulated boolean yes Explicit simulator mode
own_broker boolean yes OwnBroker: read this server’s own broker in process, signed in with a reader identity the broker makes for the channel (subscribe its inbound subjects, publish nothing; natsengine.ConnectReader). No credentials: broker_url and auth_token are not used. The inbound subject must lie under uns.telemetry.

SerialSettings configures Raw Serial COM

Source: eaxScada/internal/drivers/types.go

Key Type Optional Description
port string COM1, /dev/ttyUSB0
baud_rate integer 9600, 115200
data_bits integer 8
stop_bits integer 1
parity string N, E, O
flow_control string None, RTS/CTS, XON/XOFF
delimiter string “\r\n”, “\n”
simulated boolean yes Explicit simulator mode

ModbusRTUTCPSettings configures Modbus RTU framing carried over TCP (a serial device server or gateway in transparent mode): the RTU frame with its CRC, not the Modbus TCP header.

Source: eaxScada/internal/drivers/types.go

Key Type Optional Description
host string device server address
port integer device server TCP port (often 4001 or 950)
slave_id integer unit for devices without a station id
byte_order string “ABCD”, “CDAB”, “BADC”, “DCBA”
allow_broadcast boolean yes permit writes to unit 0
simulated boolean yes Explicit simulator mode
block_gap_registers integer yes BlockGapRegisters: as on Modbus TCP, the most unmapped registers one block read spans between two tags (16 when unset).
block_gap_bits integer yes BlockGapBits: as on Modbus TCP, the most unmapped coils or discrete inputs (bits) one block read spans between two tags (64 when unset).

CANopenSettings configures a CANOPEN (and CAN_RAW) channel. A device’s station_id is its CANopen node id (1-127).

Source: eaxScada/internal/drivers/types.go

Key Type Optional Description
interface string Interface: a SocketCAN interface (can0, Linux), or slcan:<port> for an SLCAN adapter on a serial port (slcan:COM5, slcan:/dev/ttyACM0) or a serial device server (slcan:tcp://host:port).
bitrate integer yes Bitrate in bit/s (default 500000). Set on SLCAN adapters; a SocketCAN interface is configured by the system.
heartbeat_timeout_ms integer yes HeartbeatTimeoutMs: a node whose heartbeat is older than this is lost and every tag of it is BAD. 0 disables liveness monitoring (not recommended).
node_guarding_ms integer yes NodeGuardingMs > 0 polls nodes that have no heartbeat with node guarding requests at this period; lost after life_time_factor misses.
life_time_factor integer yes LifeTimeFactor: missed node guarding periods before a guarded node is lost (default 3).
sdo_timeout_ms integer yes SDOTimeoutMs bounds every SDO step (default: the channel request timeout, else 500).
sdo_poll_ms integer yes SDOPollMs: an SDO tag is read from the node at most this often (default 1000); SDO is a request/response service and polling it at the scan rate loads the bus.
pdo_stale_ms integer yes PDOStaleMs > 0: a PDO or frame value older than this is UNCERTAIN.
nmt_start_on_connect boolean yes NMTStartOnConnect sends NMT Start to each node when it is first polled. Off by default: an operational node acts on the RPDOs other devices send it.
sync_period_ms integer yes SyncPeriodMs > 0 makes this channel the SYNC producer. Off by default: two SYNC producers on one bus break synchronous PDOs.
allow_broadcast boolean yes AllowBroadcast permits NMT commands to node 0 (every node).
simulated boolean yes Explicit simulator mode

LinkStats are a serial or CAN driver’s link-level counters. They are cumulative since the channel started; a rising CRC or timeout count with GOOD tags is the early sign of a marginal line (termination, biasing, grounding, a wrong baud rate on one device).

Source: eaxScada/internal/drivers/link_stats.go

Key Type Optional Description
medium string e.g. “COM5 19200 8-E-1”, “can0”, “slcan:COM7”
connected boolean
frames_tx integer
frames_rx integer
crc_errors integer CRC (RTU) or LRC (ASCII)
timeouts integer
exceptions integer yes
frame_errors integer yes wrong unit/function, malformed
retries integer yes
sdo_requests integer yes CANopen
sdo_aborts integer yes
sdo_timeouts integer yes
heartbeat_losses integer yes
emcy integer yes
nmt_sent integer yes
bus_errors integer yes adapter / interface errors
nodes list of NodeLinkState yes
suspended_units list of integer yes Units on a multi-drop serial line that stopped answering and are polled at a reduced rate so they do not starve the others.
identity CIPIdentity yes EtherNet/IP device: its Identity object, read when the connection opened (absent until it answered).
last_error string yes
last_error_at integer yes When last_error happened (Unix ms).
previous_error string yes The error before, kept after it cleared: a serial Modbus link clears last_error once the line, or the unit that failed, answers again.
previous_error_at integer yes When previous_error happened (Unix ms).
recovered_at integer yes When previous_error cleared (Unix ms).
unit_errors list of UnitLinkError yes Every unit (node, station; -1: the medium) in error now, the oldest first; last_error is the first of them.

ChannelStatus represents current communication state

Source: eaxScada/internal/drivers/types.go

Underlying type: string.

Value Name Description
ONLINE StatusOnline
CONNECTING StatusConnecting
OFFLINE StatusOffline
ERROR StatusError
DISABLED StatusDisabled

Range is a tag’s write range. The zero value allows every finite number and, on a string tag, any text of at most DefaultMaxLength characters.

Source: eaxScada/internal/writerange/writerange.go

Key Type Optional Description
min number yes Min / Max: the lowest and highest value a write may carry (inclusive).
max number yes
step number yes Step: a written value must be Min + kStep (0 + kStep without Min), within a relative tolerance of 1e-9.
values list of number yes Values: the only values a write may carry (a mode selector: 0, 1, 2).
max_length integer yes MaxLength: a string tag’s longest text, in characters (default 256).
texts list of string yes Texts: the only texts a write to a string tag may carry.

Handover records where a mapping’s path came from (handover.go).

Source: eaxScada/internal/drivers/types.go

Key Type Optional Description
from string the producer that held the path (“eaxtags”)
at integer Unix ms
by string yes who handed it over
description string yes Description: the local tag’s, the tag’s description from then on.
local_tag JSON value LocalTag: the local definition as it was (its JSON), for “Return to local tag”.

NodeLinkState is one CANopen node as the master sees it.

Source: eaxScada/internal/drivers/link_stats.go

Key Type Optional Description
node integer
state string
alive boolean
last_seen_ms_ago integer -1: never
emcy_code string yes

CIPIdentity is a device’s Identity object (class 1, instance 1), read with Get Attributes All when the connection opens.

Source: eaxScada/internal/drivers/ethernetip_device.go

Key Type Optional Description
vendor_id integer
device_type integer
product_code integer
revision string major.minor
status integer the Identity object’s status word
serial string 0x and 8 hex digits
product_name string
raw string Raw is the whole Get Attributes All reply, hexadecimal: the byte-string view of the object, for diagnostics.

UnitLinkError is one unit’s current link error (unitTracker).

Source: eaxScada/internal/drivers/link_stats.go

Key Type Optional Description
unit integer
error string
since integer Unix ms: when the unit went into error
last integer Unix ms: its latest failure