background image

 

45 

ICC 

 

Figure 21: BACnet - Modbus (Analog Objects & Registers) Little Endian 

 

11.5

 

BACnet - Modbus Binary Element Example 

This example also contains two networks that both employ an object value 

method for exchanging data, but unlike the previous example, the database 

endianness does affect the end-to-end alignment of the data. In this example, 

communication is taking place between a BACnet network and a Modbus 

network using single-bit data elements. The BACnet side is using binary values 1 

through 32, while the Modbus side is using coil status 1 through 32. The byte 

ordering of the database is significant because of the manner in which Modbus 

coils are mapped in the gateway. Coils (and input statuses) are mapped to 

registers, not addresses (refer to the Modbus driver documentation for more 

information). Since registers are 16-bit entities, the byte order of the registers 

(and by association, the coils), is affected by the endianness configured for the 

database. BACnet binary objects, however, are mapped on a byte-wise basis 

into the database. 

 

When the database is configured for a little-endian byte order, binary values 1…8 

corresponds to coils 1…8, binary values 9…16 corresponds to coils 9…16, and 

so on. This can be seen in Figure 22. Notice that the least significant bytes of the 

registers that the coils map to are placed in the lower memory addresses in the 

database. Because Modbus discretes are mapped to registers in a bit-wise little-

endian fashion, it is recommended that the database be little endian in this 

scenario so that bit-wise data will align between networks. 

 

Summary of Contents for XLTR-1000

Page 1: ...January 1 2016 ICC 10756 2016 Industrial Control Communications Inc ICC INDUSTRIAL CONTROL COMMUNICATIONS INC XLTR 1000 Multiprotocol RS 485 Gateway Instruction Manual...

Page 2: ...sent in a system of any size In order to prevent danger to life or property it is the responsibility of the system designer to incorporate redundant protective mechanisms appropriate to the risk invol...

Page 3: ...ations that may be subjected to large shocks or vibrations Avoid installation locations that may be subjected to rapid changes in temperature or humidity Operating Environment Proper ground connection...

Page 4: ...al Interface 14 6 Installation 16 6 1 Mounting the Gateway 16 6 1 1 Panel Wall Mounting 16 6 1 2 DIN Rail Mounting 17 6 2 Wiring Connections 18 6 3 Grounding 18 7 LED Indicators 19 7 1 Gateway Status...

Page 5: ...ss 38 11 1 Modbus PROFIBUS Example 40 11 2 Modbus DeviceNet Example 41 11 3 BACnet DeviceNet Example 42 11 4 BACnet Modbus Analog Element Example 44 11 5 BACnet Modbus Binary Element Example 45 12 App...

Page 6: ...w iccdesigns com Before continuing please take a moment to ensure that you have received all materials shipped with your kit These items are XLTR 1000 Gateway in plastic housing Documentation CD ROM D...

Page 7: ...SB virtual COM port allowing a PC to directly communicate to the gateway using any supported serial protocol tunnel through the gateway to communicate on the connected RS 485 bus or capture network tr...

Page 8: ...7 ICC Flexible Mounting Capabilities The gateway includes all hardware for desktop panel wall and DIN rail mounting capabilities Refer to section 6 1 for more information...

Page 9: ...ateway will cycle through the defined service objects in a round robin fashion however the gateway does implement a write first approach This means that the gateway will perform any outstanding write...

Page 10: ...igned data type is selected if network data values can be negative For example if 0xFF is written to the database at a location corresponding to a service object with an 8 bit unsigned data type the r...

Page 11: ...trical Installations all regulations of the Occupational Safety and Health Administration and any other applicable national regional or industry codes and standards DO NOT install operate perform main...

Page 12: ...re Preventive maintenance and inspection is required to maintain the gateway in its optimal condition and to ensure a long operational lifetime Depending on usage and operating conditions perform a pe...

Page 13: ...c or your local distributor 4 7 Disposal Contact the local or state environmental agency in your area for details on the proper disposal of electrical components and packaging Do not dispose of the un...

Page 14: ...way Overview Gateway Overview Front RS 485 B TX and RX LEDs RS 485 A terminal block USB connector Gateway status LED RS 485 A TX and RX LEDs Gateway Overview Back Shield terminal RS 485 B terminals Po...

Page 15: ...s RS 485 B terminal block at terminals 5 POWER and 6 GND as highlighted in Figure 1 Figure 1 RS 485 B Terminal Block Power Supply Connections 5 2 RS 485 Port Electrical Interface In order to ensure ap...

Page 16: ...ighlights the terminals on the gateway s RS 485 B terminal block that are specific to RS 485 network connections Equivalent terminals exist on the RS 485 A terminal block for connection to that separa...

Page 17: ...om of the enclosure A DIN rail adapter with two pre mounted screws is provided for mounting the gateway on a DIN rail The user must choose the appropriate hardware for mounting the gateway on a panel...

Page 18: ...clip the DIN rail adapter onto the DIN rail and mount the gateway on the screws the screws should already be seated into the adapter at the proper height Refer to Figure 7 Figure 8 and Figure 9 Figure...

Page 19: ...iable stable operation Communication system characteristics may vary from system to system depending on the system environment and grounding method used The gateway has two logic ground terminals term...

Page 20: ...nnected to a PC via a USB cable Flashing red If a fatal error occurs the status LED will flash a red error code The number of sequential blinks followed by 2 seconds of OFF time indicates the error co...

Page 21: ...panel Dragging it from the Available Devices panel into the Project panel Selecting it and selecting Add Selected Device from the Edit menu Selecting it and clicking the Add button in the toolbar The...

Page 22: ...ct Hitting the DELETE key on the keyboard when the device is selected in the Project panel Right clicking on the device in the Project panel and choosing Remove from the context sensitive menu Selecti...

Page 23: ...online device is selected data values are updated from the device in real time and values can be edited by double clicking the desired location in the database Diagnostics To monitor the status of ser...

Page 24: ...select a parent object to display a summary of all its child objects For example selecting a protocol driver will display the driver s configuration in the Summary panel and list of current objects in...

Page 25: ...object in the Project panel after dragging the item Selecting Paste Item from the Edit menu Clicking on the Paste button in the toolbar After pasting an object the object s configurable fields can the...

Page 26: ...Redirect Select this option to redirect communications from the selected serial port on the device to the USB virtual COM port By selecting this option the device will communicate with the PC over the...

Page 27: ...COM port to view and save network packets captured by the device The device s USB Virtual COM port must be configured for Serial Sniffer mode and the Sniffer Output Format must be set to Formatted Dat...

Page 28: ...select Pause Display Note that even though the display does not update when paused packets are still being captured in the background Ending a Capture Session The capture session is ended by disconnec...

Page 29: ...Batch Update Mode from the Tools menu After the studio has entered batch update mode pressing the ESC key will exit batch update mode If any devices were discovered while in batch update mode the stud...

Page 30: ...ormed Errors The total number of devices that encountered an error while being updated Note that this does not necessarily imply that the device failed to update 8 3 Internal Logic Settings 8 3 1 Fail...

Page 31: ...the designated 8 bit 16 bit or 32 bit value is written to the corresponding database address es To add a timeout object to a device select the device in the Project panel then add Internal Logic Fail...

Page 32: ...scaled after operation execution The input is multiplied by the input multiplier and the result is divided by the output multiplier All operations can be dynamically enabled disabled using an optional...

Page 33: ...n cycle and the current execution cycle otherwise it outputs a 0 The Mutiplexer operation outputs one of its two inputs depending on the selection If Selection is zero Input 1 is output If Selection i...

Page 34: ...an that each operation is guaranteed to execute every scan cycle only that it will be evaluated as to whether or not it should execute Namely if an Enable Trigger element is added to an operation then...

Page 35: ...ption is used Auto Reset Allows the enable value to be automatically reset upon completion of the operation The actual value written to the enable value depends on the other trigger options selected I...

Page 36: ...ostics Objects Because the diagnostics object resides in the database alongside the service object s process data it can also be accessed over any supported network by mapping appropriate network elem...

Page 37: ...supports a variety of serial drivers on its RS 485 ports For a list of supported protocols refer to the Millennium Series Supported Drivers List For detailed information on each protocol refer to the...

Page 38: ...gateway Confirm that the protocol baud rate parity and address settings on the RS 485 port match your network configuration No communication between the RS 485 network and the gateway The gateway s RS...

Page 39: ...etrieves multi byte data to and from the database Data is stored into the database starting at the low address and filled to higher addresses The endianness determines whether the most significant or...

Page 40: ...ent to and from the gateway s internal database This idea helps explain the data movement as a whole from one port to the other on the gateway between two different networks Because networks vary in t...

Page 41: ...mples of how the database endianness affects end to end communication between networks and when each byte ordering scheme should be used 11 1 Modbus PROFIBUS Example This example shows the interaction...

Page 42: ...his example shows the interaction between a network using an object value method Modbus and one using a bag of bytes method DeviceNet to exchange data The gateway reads holding registers 1 and 2 from...

Page 43: ...that in both examples the DeviceNet network data is always identical byte for byte to the gateway s database For this reason it is important to configure gateways that use a bag of bytes style networ...

Page 44: ...the gateway interprets the 4 bytes the resulting 4 byte value will be 0x12345678 thus successfully receiving the original value of the BACnet analog value object Figure 18 BACnet DeviceNet Little Endi...

Page 45: ...he values from the BACnet network are stored into the database with big endian byte ordering Figure 21 shows the values from the BACnet network being stored into the database with little endian byte o...

Page 46: ...put statuses are mapped to registers not addresses refer to the Modbus driver documentation for more information Since registers are 16 bit entities the byte order of the registers and by association...

Page 47: ...to coils 1 8 and so on This can be seen in Figure 23 Since the most significant bytes of the Modbus registers that the coils map to are now mapped to lower addresses the alignment between the two netw...

Page 48: ...that increments when the driver transmits a packet RX Counter A 32 bit counter that increments when the driver receives a valid packet RX Error Counter A 32 bit counter that increments when the gatew...

Page 49: ...Address 0xF1 Data Error 0xF2 Write To Read Only 0xF3 Read From Write Only 0xF4 Target Busy 0xF5 Target Error 0xF6 Cannot Execute 0xF7 Mode Error 0xF8 Other Error 0xF9 Memory Error 0xFA Receive Error 0...

Page 50: ...net Building Controller B BC BACnet Advanced Application Controller B AAC BACnet Application Specific Controller B ASC BACnet Smart Sensor B SS BACnet Smart Actuator B SA BACnet Interoperability Build...

Page 51: ...inding supported This is currently for two way communication with MS TP slaves and certain other devices Yes No Networking Options Router Clause 6 List all routing configurations Annex H BACnet Tunnel...

Page 52: ...51 ICC If this product is a communication gateway describe the types of non BACnet equipment networks s that the gateway supports Refer to protocol specific manuals for other supported protocols...

Page 53: ...on R Services Supported R Object Types Supported R Object List R Max APDU Length R Segmentation Support R APDU Timeout W 10 65535 Number APDU Retries W 0 10 Max Master W 1 127 Max Info Frames R Device...

Page 54: ...ICC INDUSTRIAL CONTROL COMMUNICATIONS INC 1600 Aspen Commons Suite 210 Middleton WI USA 53562 4720 Tel 608 831 1255 Fax 608 831 2045 http www iccdesigns com Printed in U S A...

Reviews: