02-04-2008 12:36 PM
02-04-2008 05:52 PM
A single modbus command is limited to about 100 registers at a time. It helps to read blocks of data at one time. 100 registers in a row can be read faster than 10 groups of ten registers spread out all over the place. Here is a thread with the modbus protocol guide.
http://forums.ni.com/ni/board/message?board.id=170&message.id=197677&query.id=44668#M197677
02-19-2008 03:35 PM
02-20-2008 04:05 AM
02-25-2008 11:02 AM
02-25-2008 12:00 PM
02-25-2008 12:14 PM
02-25-2008 12:23 PM
You would select the function code for coils and address it as 0-based, but they will be the registers in the 00000 series. Use function code 1 to read and 5 to write a single coil or 15 to write multiple.
For discrete inputs, you can only read them. They are in the 10000 series and are also zero based. Use function code 2 to read them.
The device will know which bank of registers to address 0 series 10000 series 30000 series 40000 series, based on which function code you are sending to read or write.
02-25-2008 12:46 PM
02-25-2008 12:55 PM