Member Login
member
passwd
remember me on
this computer.

- join now -
- forgot username or password? -

Jump to a Date

Cool stuff
Select a topic of interest:
...and press:
RSS Feed
RSS feed Use this link to get an RSS feed of the Modbus Community article flow, for private, non-commercial use only:
modbus.control.com/rss/
To get a personalized feed, become a member at no cost.
from the Development department...
Modbus addressing
Software, including programming, OS issues, etc. topic
Posted by ParagonIndore on 30 October, 2009 - 8:02 am
The registers address range for Discrete Input given in the device manual for n=1 is 10001-10004, and for the n=2 10153-10156 Now how to specify the register address in Modbus Request?


Posted by M Griffin on 30 October, 2009 - 4:15 pm
The "1" digit on the front of the address might be just a "type" indicator. The address of "10001-10004" might be 1 to 4, and for "10153-10156" might be 153 to 156.

Or, it might be 0 to 3 and 152 to 155. The difference is whether you are talking about the protocol address (which starts at 0) or the "data model" address (which starts at 1). The protocol address is what gets sent on the wire. the "data model" address is just a documentation convention.



Posted by Brian F on 30 October, 2009 - 6:31 pm
I agree, sounds like a block of addresses. For the first address in a table the protocol reads 0, so offset those addresses (153 - 156 for instance) by -1 and make sure the function (1x table it looks like) and length are correct.


Posted by ParagonIndore on 5 November, 2009 - 4:43 am
http://74.125.77.132/search?q=cache:Rj0LgiQ3ie8J:www.pragoclima.cz/fil es/vrf/sm_modbus_tcbifmb640tle_eng.pdf+IFMB640TLE&cd=2&hl=en& ct=clnk&gl=in

Check out the link ,and pls tell me how to assign the address for n=64 for Read Coils.

Thank You


Posted by M Griffin on 5 November, 2009 - 12:09 pm
That document describes a module which converts between Modbus and TSCNet. According to the document the addressing appears to be predefined.


Posted by ParagonIndore on 6 November, 2009 - 12:22 am
Thank You for your reply.

I know the address is preassigned. That's what i am asking what will be the address for input coil if n=64.


Posted by M Griffin on 6 November, 2009 - 3:30 pm
According to page 7 of your document, for n=64 the coil address are:

9577-9584 On/Off setting
9585-9592 Operation mode setting
9593-9600 Fan speed setting

etc.

For discrete inputs, input registers, and holding registers, the addresses are similar, except the first digit is not actually part of the address. Rather it is a "type" indicator (0 = coils, 1 = discrete input, 3 = input register, 4 = holding register). This is similar to using "I" for inputs, "Q" for outputs, etc.

Note that the documentation refers to the first address in each case as "1", not "0". A "0" is what gets sent "on the wire" as the protocol for the first address, but the documentation calls this address "1".

I have a brief explanation of Modbus here that you might want to read:
"http://mblogic.sourceforge.net/mbapps/ModbusBasics-en.h tml"


Posted by M Griffin on 6 November, 2009 - 3:36 pm
To add to my previous reply, "coils" are read-write and are normally used as outputs. Discrete inputs are read-only, and are normally used as inputs. You said "coil inputs", which seems to be confusing the two types.

For n=64 for discrete inputs:

9577-9580 On/Off setting status
9585-9592 Operation mode status
9593-9600 Fan speed set status

etc.

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2009 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.