Modbus
Supported datatypes
C (Coil) | I (Input) | IR (Input register) | HR (Holding register) | |
---|---|---|---|---|
Bit | x | x | x | x |
Short (1 reg) | x | x | ||
Int (2 reg) | x | x | ||
Long (4 reg) | x | x | ||
Float (2 reg) | x | x | ||
Double (4 reg) | x | x | ||
String (variable length) | x | x |
Examples
Address starts at 0 for each register type => fe. integer located in holding reg 400001 = HR,INT0
Holding registers
HR,BIT10.5 => reg 10, bit 5 (mind byte swapping property)
HR,DOUBLE20
HR,STRING30.10 => length of this string is 10 regs
HR,SHORT40
HR,INT45
HR,LONG50
HR,FLOAT50
Input register
IR,BIT10.5 => reg 10, bit 5 (mind byte swapping property)
IR,DOUBLE20
IR,STRING30.10 => length of this string is 10 regs
IR,SHORT40
IR,INT45
IR,LONG50
IR,FLOAT50
Coil
C,BIT10
Input (digital)
I,BIT10