You are on page 1of 18

s

Modbus Enhanced
Features of the new Modbus

Siemens Building Technologies

Building Automation

Modbus Enhanced

We had to do some changes

Siemens Building Technologies

Building Automation

Modbus Enhanced - Requirements

We want to be backward compatible We want to add new feature to make it faster and easier to integrate with Modbus We want to be flexible and integrate a multitude of devices with one driver We want to take advantage of expanded addressing and eliminate Meta-Points We want to add Modbus TCP support We want to combine Modbus Master and Slave in one driver

Siemens Building Technologies

Building Automation

Modbus Enhanced

Can run in three modes:


Legacy Mode Meta-Drop Driver Backwards compatible Enhanced Master Mode ISB Files Expanded Addressing Slave Mode ISB Files Expanded Addressing New concept not backward compatible
Siemens Building Technologies 4 Building Automation

Modbus Enhanced

Modbus Enhanced Mode will support:


Modbus TCP Client (Master) ISB Files Expanded Addressing New way of communicating Modbus TCP Server (Slave) ISB Files Expanded Addressing New way of communicating Implementation depends on baseline support

Siemens Building Technologies

Building Automation

Modbus Enhanced - Legacy Mode


Will be backwards compatible to MBA/MBG driver Will provide same functionality as current Modbus driver Will be configured like current standard Modbus Master Driver Will work under earlier (3.4) versions of Insight (Patch file required) Will only use FLN1 for communication Will not use Expanded Addressing Will not have fixed point maps Will not make use of ISB files Will require a minor Database change for upgrades
Meta Drop now at FLN 253 Drop 30 Diagnostic Drop now at FLN 253 Drop 31

Siemens Building Technologies

Building Automation

Modbus Enhanced Enhanced Master Mode


Will require the usage of ISB files
No ad-hoc configuration possible Will allow to read different point types in the same register range with one poll Will allow to integrate different devices with different needs on the same driver (e.g. Long Swap per point not per driver)

Will require a tool to create the ISB files


Application Builder Tool (pending)

Will make use of expanded addressing


FLN 1, 2 & 3 for serial communication FLN 6 to 100 for TCP/IP Up to 247 Drops/Slaves per FLN Up to 1000 points per Drop/Slave Up to 100 different applications per driver Up to 8000 different application points

Siemens Building Technologies

Building Automation

Modbus Enhanced Enhanced Master Mode


Will use one drop per device
drop number is device address on serial ports (default). Address point (point 1) can be used as slave address (Alternative addressing method).

Will communicated on different FLNs


Will support up to 31 devices on each FLN direct or up to 247 devices with repeaters. Will use drops 1 to 247 on FLN1, 2 and 3 Will provide virtual FLNs for TCP/IP operation Will use drops 0 to 247 for TCP/IP FLNs to support sub networks on TCP/IP devices

Different FLNs can use different communication set-up


Baud rate Parity

Will accommodate poll priority

Siemens Building Technologies

Building Automation

Modbus Enhanced Enhanced Master Mode

Siemens Building Technologies

Building Automation

Modbus Enhanced Modbus Slave Mode

Exclusive Mode if serial ports are used Uses ISB file Uses Expanded Addressing Can simulate multiple slaves in one driver Will use drop number to set slave address Will use only FLN1 for serial communication Will use virtual FLNs 6 to 100 for Modbus TCP Server (pending baseline support)

Siemens Building Technologies

10

Building Automation

0-65535

Auxiliary Fields Definition

Modbus Enhanced ISB File Properties

Siemens Building Technologies

Address Offset

Data Type
2
C, CM, B, I, IS, ID, IE, IF, IP, H, HS, HM, HN, D, DS, F ,P

XX 0-15 Y/N Y/N

3 4

Bit Number (Bit Mapped only)

Word Swap

Long Swap (32 Bit registers only)

11

Y/N

Command only with next register


Building Automation

0-255

Poll Priority

Modbus Enhanced ISB File Properties


Address Offset
(0-65,535) The address offset defines the offset from the base register for the particular register to be accessed in the range of 0 to 65535. This is a mandatory entry. If this field is not filled in or if a value above 65535 is entered, then the point will be declared invalid. The base registers are: 1 for Coil Registers 10,001 for Binary Input Registers 30,001 for Analog Input Registers 40,001 for Holding Registers

Siemens Building Technologies

12

Building Automation

Modbus Enhanced ISB File Properties


Data Types
C & CM for Coils CM uses function 15 instead 5 fro commanding B for Binary Inputs I, IS, ID, IE, IF & IP for Analog Inputs H, HS, HM, HN & P for 16 bit Holding Registers HM & HN are using function 16 instead of 6 for commanding D, DS & F for 32 bit Holding Registers

Bit number
Used for defining the bit number for point types P and IP

Siemens Building Technologies

13

Building Automation

Modbus Enhanced ISB File Properties


Word Swap
Selects if the bytes of a register are swapped default is no swap

Long Swap
Selects if the two registers of a two register value (32 bit value) should be swapped. Default is long swap

Command with next


Commands the current point only if the next point will be changed as well. Multiple register commands are used

Siemens Building Technologies

14

Building Automation

Modbus Enhanced ISB File Properties


Poll priority
Allows to poll less frequently for points with lower importance or which will change seldom. Poll priority of 0 is used for command only points, no poll will be created for such points Poll priority of 1 will poll a point every time the device is served. Poll priority of n (n = 2 to 255) will skip n-1 polls

Siemens Building Technologies

15

Building Automation

Modbus Enhanced Other Features


Build in Diagnostic / Test Mode
Will provide capability to create a manual poll and command definition Will allow to read one variable from one device at a time Will allow to write one variable to one device at a time Definition can be changed on the fly Can be used for initial start-up, e.g. to get the communication going Can be used to explore devices if special settings like Long Swap are needed Can be used to configure a device in the field if certain values have to be written to specific registers one time only

Siemens Building Technologies

16

Building Automation

Modbus Enhanced Other Features


Will provide Sunrise Sundown Calculation
Three control points will allow to enter Longitude, Latitude and Time Zone Three points will provide the sunrise time, sundown time and a status signal if it is dark or daylight

Siemens Building Technologies

17

Building Automation

Modbus Enhanced

Questions ?

Siemens Building Technologies

18

Building Automation