import { MODBUSDataAdapterInstance } from './MODBUSDataAdapterInstance'; import { MODBUSConnectionType } from './MODBUSConnectionType'; import { MODBUSRTUParity } from './MODBUSRTUParity'; export declare class MODBUSOptions { id?: number; uuid: string; connectionType: MODBUSConnectionType; host: string; port: number; rtuPath: string; /** * How fast bits are sent. Common Modbus values: 9600, 19200, 38400, 57600, 115200. * Tip: Start with the slave’s documented baud. Higher ≠ better if the line is long/noisy. */ rtuBaudRate: number; /** * Bits per character, usually 8 for Modbus (a.k.a. “8N1” or “8E1”). Some very old gear uses 7. * Typical: 8. */ rtuDataBits: number; /** * Time between characters to let receivers resync. Usually 1; some devices require 2 at high baud or with parity=none. * Typical: 1 (or 2 if the device manual says so). */ rtuStopBits: number; /** * parity?: 'none' | 'even' | 'mark' | 'odd' | 'space' * Error detection bit in each character. Modbus-RTU devices most often use even or none. * Typical: 'even' (8E1) or 'none' (8N1). Match the slave exactly. */ rtuParity: MODBUSRTUParity; /** * Hardware flow control (RTS/CTS). RS-485 adapters often don’t use CTS/RTS for flow; many do auto-direction. Enable only if your adapter/slave requires it. * Typical: false for Modbus-RTU. */ rtuRtsCts: boolean; /** * Software (in-band) flow control. Modbus frames are binary and should not use XON/XOFF. * Typical: false for all three. */ rtuXon: boolean; rtuXoff: boolean; rtuXany: boolean; rtuX: boolean; /** * Driver/read buffer size. Modbus-RTU max response is ~256 bytes (253 PDU + addr + CRC). Give headroom. * Typical: 512 or 1024. */ rtuBufferSize: number; clientId: number; connectTimeout: number; reconnectTimeout: number; timeout: number; poolInterval: number; mostSignificantByte: boolean; mostSignificantWord: boolean; zeroBasedAddressing: boolean; /** * SHORT/USHORT: we read the first byte under the configured byte order. * If your device actually uses the other byte. */ hiByte: boolean; maxRegistryGroupLength: number; instance: MODBUSDataAdapterInstance; }