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.
Modbus address 0 -> Flag 21
Modbus address 1 > Flag 22
Modbus address 2 > Flag 23
Modbus Address 3 > Flag 24
Modbus Adress 4 > Flag 25
These modbus addresses must be the same type eg Discrete Inputs
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
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
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.
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?
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?
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