ModBus ASCII

Материал из WebHMI Wiki
Версия от 15:25, 17 июля 2017; Evgeniy.mozoliak (обсуждение | вклад) (Новая страница: «== MHRxx - Multiple Holding Registers == These registers identical to HRxx. The difference is that for write operations Modbus #16 (Preset Multiple Register) func…»)

Перейти к: навигация, поиск

WebHMI supports various devices using the ModBus ASCII protocol

Version 1.5 supports 4 types of ModBus regisers :

Cxx - Coils

Flag registers

ModBus functions: read - 0x01, write - 0x05

Data type: Bit

Register range: 0 <= xx <= 65535

Examples: C0, C12, C65535

DIxx - Discrete Inputs

Digital input registers

ModBus function: read- 0x02

Data type: Bit

Registers range: 0 <= xx <= 65535

Examples: DI0, DI2, DI65535

HRxx - Holding Registers

Holding Registers.

ModBus functions : read - 0x03, write - 0x06

Data type: Word

Registers range: 0 <= xx <= 65535

Examples: HR0, HR1, HR2, HR65535

MHRxx - Multiple Holding Registers

These registers identical to HRxx. The difference is that for write operations Modbus #16 (Preset Multiple Register) function is used.

IRxx - Input Registers

Регистры регистров ввода.

Функции ModBus: чтение - 0x04

Тип данных: Word

Диапазон регистров: 0 <= xx <= 65535

Примеры регистров: IR0, IR1, IR2, IR65535