![]() |
|
UCM/Modbus Master - Number of Registers - Printable Version +- Comfort Automation/ Security System Forums (https://www.comfortforums.com) +-- Forum: Third Party (interfacing to Comfort) (https://www.comfortforums.com/forum-5.html) +--- Forum: UCM/Modbus (https://www.comfortforums.com/forum-133.html) +--- Thread: UCM/Modbus Master - Number of Registers (/thread-5393.html) |
- slychiu - 09-25-2022 Using UCM/Modbus 7.167 and Comfigurator 3.13.7 and above, each modbus entry in Modbus to Comfort can have Number of Registers from 1 to 16, as shown below ![]() This means that multiple modbus slave registers can be polled in one command. For example in the above screenshot example on the 1st line, Modbus address 0 Discrete Input and mapped to Flag 21. No of Registers = 5 means that 5 sequential Modbus registers are mapped to 5 sequential Flags. eg
This allows the Modbus Master to poll the slave very fast and reduces the number of Modbus to Comfort Table entries. The above example required 5 entries before, but nopw only requires 1 entry in Modbus to Comfort - Elyas Riahi - 12-17-2022 Dear Friend,Many thanks for your new feature support, When we select No of registers more than 1 on modbus element addition,Does Configure use function codes 0x10 and 0x16 for read and write multiple registers on master mode?BR - slychiu - 12-18-2022 Only READ Multiple registers is supported, not WRITE multiple registers. Read Multiple registers for Coils, Holding Registers, Discrete Inputs, Input Registers is useful as it allows the Modbus Master to Poll the items in the Modbus to Comfort table. Write Multiple registers is not useful as registrs dont all change at the same time. When any registyer mapped to comfort in the Modbus to Comfort table changes there is an immediate Write to Modbus for the Single Register. I hope that answers your question. - Elyas Riahi - 12-18-2022 Thanks Dear for your reply, But i have a problem , One of our device not support write single holding register write function code, It only support write multiple holding register function code,, Have you any solve? - slychiu - 12-18-2022 It is s not likely that any modbus slave device will support Write multiple register but not Write single register. Do you have the instruction manual of that device? - Elyas Riahi - 12-18-2022 Yea, i see But this device just support write multiple registers,i tested it several times with 0x06 Not work,it only work with (0x10) or 16 decimal - slychiu - 12-18-2022 That is a problem for that device. All modbus devices should work with write single registers. They do not have to work with write multiple registers. The device will not be able to work with many other modbus masters. Do you have the instruction manual? - Elyas Riahi - 12-18-2022 No. i have not.I tested this device with modbus poll too,this work only with multiple register write function(16) - slychiu - 12-19-2022 That device you are using does not seem to be a proper modbus Slave. All slaves should work with a master which sends write 1 register which is a standard Modbus command. I suggest you contact the other menufacturer, or use another Modbus ndevice |