Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UCM/Modbus Master - Number of Registers
#1
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
  1. Modbus address 0 -> Flag 21
  2. Modbus address 1 > Flag 22
  3. Modbus address 2 > Flag 23
  4. Modbus Address 3 > Flag 24
  5. 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
Reply
#2
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
Reply
#3
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.
Reply
#4
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?
Reply
#5
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?
Reply
#6
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
Reply
#7
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? 
Reply
#8
No. i have not.I tested this device with modbus poll too,this work only with multiple register write function(16)

Reply
#9
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)