Protocols
Protocols
These blocks give you the ability to restrict or permit access to different data
elements and also to provide simplified mechanisms at the application layer to
access different data types.
The blocks are completely conceptual. They may exist as separate memory
addresses in a given system, but they may also overlap. For example, coil one
may exist in the same location in memory as the first bit of the word
represented by holding register one. The addressing scheme is entirely defined
by the slave device, and its interpretation of each memory block is an important
part of the device’s data model.
Data Model Addressing
The specification defines each block as containing an address space of as many
as 65,536 (216) elements. Within the definition of the PDU, Modbus defines the
address of each data element as ranging from 0 to 65,535. However, each data
element is numbered from 1 to n, where n has a maximum value of 65,536.
That is, coil 1 is in the coil block at address 0, while holding register 54 is at
address 53 in the section of memory that the slave has defined as holding
registers.
The full ranges allowed by the specification are not required to be implemented
by a given device. For example, a device may choose not to implement coils,
discrete inputs, or input registers and instead only use holding registers 150
through 175 and 200 through 225. This is perfectly acceptable, and invalid
access attempts would be handled through exceptions.
Profibus Types
Advantages of Profibus PA