Unitronics GW-BAC1 User Manual

Page 1
The information in this document reflects products at the date of printing. Unitronics reserves the right, subject to all applicable laws, at any time, at its sole discretion, and without notice, to discontinue or change the features, designs, materials and other specifications of its products, and to either permanently or temporarily withdraw any of the forgoing from the market.
All information in this document is provided "as is" without warranty of any kind, either expressed or implied, including but not limited to any implied warranties of merchantability, fitness for a particular purpose, or non-infringement. Unitronics assumes no responsibility for errors or omissions in the information presented in this document. In no event shall Unitronics be liable for any special, incidental, indirect or consequential damages of any kind, or any damages whatsoever arising out of or in connection with the use or performance of this information.
The tradenames, trademarks, logos and service marks presented in this document, including their design, are the property of Unitronics (1989) (R"G) Ltd. or other third parties and you are not permitted to use them without the prior written consent of Unitronics or such third party as may own them
DOC01002-A5 10/14
GW-BAC1
BACnet Gateway
User Guide
For Interfacing Unitronics PLCs
To Building Automation Systems:
Page 2
Unitronics’s BACnet Gateway User Guide Page 2 of 28
The BTL Mark on GW-BAC1 is a symbol that indicates that a product has passed a
series of rigorous tests conducted by an independent laboratory which verifies that
the product correctly implements the BACnet features claimed in the listing.
The mark is a symbol of a high-quality BACnet product.
Go to http://www.bacnetinternational.net/btl/ for more information about the
BACnet Testing Laboratory.
Certifications
BTL MARK – BACNET TESTING LABORATORY
Unitronics
Page 3
Unitronics’s BACnet Gateway User Guide Page 3 of 28
TABLE OF CONT ENTS
1 Introduction ................................................................................................................................................................ 5
1.1 GW-BAC1 Gateway ............................................................................................................................................. 5
1.2 Record Identification Data .................................................................................................................................. 5
1.3 Technical Support ............................................................................................................................................... 5
2 Interfacing GW-BAC1 to Devices ................................................................................................................................ 6
2.1 GW-BAC1 Showing Connection Ports ................................................................................................................. 6
2.2 Connecting a Unitronics PLC to the GW-BAC1 via Modbus RS-485 .................................................................... 7
2.2.1 Biasing the Modbus RS-485 Network ........................................................................................................... 8
2.2.2 End of Line Termination Switch for the Modbus RS-485 port on the GW-BAC1 .......................................... 9
2.3 BACnet MS/TP Field Devices: Wiring Field Port to RS-485 Network ................................................................ 10
2.4 Connecting Power to GW-BAC1 ........................................................................................................................ 11
3 Creating configuration file and configurating the PLC ....................................................................................... 12
3.1 UniBACnet configurator .................................................................................................................................... 12
3.2 PLC configuration example. .............................................................................................................................. 18
4 ChangING the GW-BAC1 IP Address .................................................................................................................. 21
4.1 Connect the PC to GW-BAC1 via the Ethernet Port .......................................................................................... 21
4.2 BACnet/IP: Setting IP Address for Field Network ............................................................................................. 22
Appendix A. Troubleshooting ................................................................................................................................... 23
Check Wiring and Settings ..................................................................................................................... 23 Appendix A.1.
Diagnostic Capture ................................................................................................................................ 24 Appendix A.2.
LED Diagnostics for Modbus RTU Communications Between GW-BAC1 and Devices .......................... 27 Appendix A.3.
Appendix B. Reference ............................................................................................................................................. 28
Specifications ......................................................................................................................................... 28 Appendix B.1.
Compliance with UL Regulations ........................................................................................................... 28 Appendix B.2.
Unitronics
Page 4
Unitronics’s BACnet Gateway User Guide Page 4 of 28
LIST O F FIGUR ES
Figure 1: BACnet board ....................................................................................................................................................... 6
Figure 2: Power and RS-485 Connections ........................................................................................................................... 7
Figure 3: Modbus RS-485 Biasing Switch on the GW-BAC1 .............................................................................................. 8
Figure 4: Modbus RS-485 End-Of-Line Termination Switch on the GW-BAC1 ................................................................... 9
Figure 5: Connection from GW-BAC1 to RS-485 Field Network ....................................................................................... 10
Figure 6: RS-485 EOL Switch ............................................................................................................................................. 10
Figure 7: Required current draw for the GW-BAC1 .......................................................................................................... 11
Figure 8: Power Connections ............................................................................................................................................ 11
Figure 9: Tools menu on VisiLogic .................................................................................................................................... 12
Figure 10: Tools menu on UniLogic .................................................................................................................................. 12
Figure 11: BACnet Connection MS/TP Screen .................................................................................................................. 13
Figure 12: BACnet Connection IP Screen .......................................................................................................................... 13
Figure 13: BACnet Nodes Screen ..................................................................................................................................... 14
Figure 14: BACnet Map descriptors Screen ...................................................................................................................... 14
Figure 15: Modbus connection RTU Screen ..................................................................................................................... 15
Figure 16: Modbus connection IP Screen ......................................................................................................................... 15
Figure 17: Finish Screen .................................................................................................................................................... 16
Figure 18: File Transfer Screen ......................................................................................................................................... 17
Figure 19: File menu ......................................................................................................................................................... 17
Figure 20: MODBUS RTU configuration ............................................................................................................................ 18
Figure 21: Example of COM initialize ................................................................................................................................ 18
Figure 22: Example of Modbus configuration .................................................................................................................. 19
Figure 23: Example of MODBUS TCP/IP configurator ....................................................................................................... 19
Figure 24: Example of TCP/IP card and socket initialize ................................................................................................... 19
Figure 25: Example of TCP/IP card and socket initialize ................................................................................................... 20
Figure 26: Example of MODBUS Command ...................................................................................................................... 20
Figure 27: Ethernet Port Location..................................................................................................................................... 21
Figure 28: PC IP configuration .......................................................................................................................................... 21
Figure 29: Changing IP Address via FST Web GUI ............................................................................................................. 22
Figure 30: Ethernet Port Location..................................................................................................................................... 24
Figure 31: Diagnostic tool – device selection ................................................................................................................... 24
Figure 32: Diagnostic selection ......................................................................................................................................... 25
Figure 33: Diagnostic tool – start diagnostic .................................................................................................................... 25
Figure 34: Diagnostic tool –diagnostic test complete ...................................................................................................... 26
Figure 35: Diagnostic LEDs ................................................................................................................................................ 27
Figure 36: Specifications ................................................................................................................................................... 28
Unitronics
Page 5
Unitronics’s BACnet Gateway User Guide Page 5 of 28
1
1 INT RODUCTION
1.1 GW-BAC1 Gateway
The GW-BAC1 is an external, high performance Building Automation multi-protocol gateway that has been preprogrammed for enabling Unitronics products (hereafter called “device”) to various building automation protocols. These protocols include BACnet®1MS/TP and BACnet/IP2. Configuration for the various protocols is done via Unitronics configuration tool UniBACnet Configurator.
1.2 Record Identi fic atio n Data
Each GW-BAC1 has a unique serial number located on the underside of the unit. This number should be recorded, as it may be required for technical support.
1.3 Technical Sup port
For technical support and questions concerning setting up the GW-BAC1 to work with a Unitronics PLC (e.g. Vision, UniStream etc.) please contact Unitronics technical support at support@unitronics.com .
BACnet is a registered trademark of ASHRAE
Unitronics
Page 6
Unitronics’s BACnet Gateway User Guide Page 6 of 28
2 INT ERFACIN G GW-BAC1 TO DEVIC ES
2.1 GW-BAC1 Showing Con nect ion Ports
Figure 1: BACnet board
Unitronics
Page 7
Unitronics’s BACnet Gateway User Guide Page 7 of 28
Device Pins
GW-BAC1 Pin #
Pin assignment
Pin RS-485 +
Pin 1
RS-485 +
Pin RS-485 -
Pin 2
RS-485 -
Pin GND
Pin 3
RS-485 GND
Power In (+)
Pin 4
V +
Power In (-)
Pin 5
V -
Frame Ground
Pin 6
FRAME GND
2.2 Connec tin g a Unit ronics P LC to the GW-BAC1 vi a Mo dbu s RS -485
GW-BAC1 6 Pin Phoenix connector for RS-485 Device
The 6 pin Phoenix connector is the same for GW-BAC1. Pins 1 through 3 are for Modbus RS-485 devices.
o The RS-485 GND (Pin 3) is not typically connected.
Pins 4 through 6 are for power. Do not connect power (wait until Section 3.4).
Figure 2: Power and RS-485 Connections
Unitronics
Page 8
Unitronics’s BACnet Gateway User Guide Page 8 of 28
RS-485 Bias Switch
2.2.1 Biasin g the M odbu s RS -485 Networ k
An RS-485 network with more than one device needs to have biasing to ensure proper communication.
The biasing needs to be done on one device.
The GW-BAC1 has 530 Ohm resistors that can be used to set the biasing. The GW-BAC1’s default positions
from the factory for the Biasing jumpers are OFF.
The OFF position is when the 2 RED biasing jumpers straddle the 4 pins closest to the outside of the board of the GW­BAC1. See Error! Reference source not found..
Only turn biasing ON:
o IF the BMS cannot see more than one device connected to the GW-BAC1 o AND you have checked all the settings (Modbus COM settings, wiring, and DIP switches).
To turn biasing ON, move the 2 RED biasing jumpers to straddle the 4 pins closest to the inside of the
board of the GW-BAC1.
Figure 3: Modbus RS-485 Biasing Switch on the GW-BAC1
Unitronics
Page 9
Unitronics’s BACnet Gateway User Guide Page 9 of 28
2.2.2 End of Line T erm inat ion Swi tch for the Modbus RS-485 port on the GW- BAC 1
On long RS-485 cabling runs, the RS-485 trunk must be properly terminated at each end. The GW-BAC1 has an End Of Line (EOL) blue jumper. The default setting for this Blue EOL switch is OFF
with the jumper straddling the pins closest to the inside of the board of the GW-BAC1.
o On short cabling runs the EOL switch does not to need to be turned ON.
If the GW-BAC1 is placed at one of the ends of the trunk, set the blue EOL jumper to the ON position
straddling the pins closest to the outside of the board of the GW-BAC1.
Always leave the single Red Jumper in the A position (default factory setting).
Modbus RS-485 EOL Switch
Leave in A Position
Figure 4: Modbus RS-485 End-Of-Line Termination Switch on the GW-BAC1
Unitronics
Page 10
Unitronics’s BACnet Gateway User Guide Page 10 of 28
BMS RS-485
Wiring
GW-BAC1
Pin #
Pin
Assignment
RS-485 +
Pin 1
RS-485 +
RS-485 -
Pin 2
RS-485 -
-
Pin 3
RS-485 GND
G
-
End-of-Line Switch
2.3 BACnet MS/TP Fiel d D e vices: Wiring Fi eld Port to RS-4 85 Netw ork
Connect the BACnet MS/TP RS-485 network wires to the 3-pin RS-485 connector on GW-BAC1 as shown
below in Error! Reference source not found..
o The RS-485 GND (Pin 3) is not typically connected.
See Section 3 for information on connecting to BACnet/IP network. If the GW-BAC1 is the last device on the BACnet MS/TP trunk, then the End-Of-Line Termination
Switch needs to be enabled (Error! Reference source not found.).
o The default setting from the factory is OFF (switch position = right side). o To enable the EOL Termination, turn the EOL switch ON (switch position = left side).
Figure 5: Connection from GW-BAC1 to RS-485 Field Network
Figure 6: RS-485 EOL Switch
Unitronics
Page 11
Unitronics’s BACnet Gateway User Guide Page 11 of 28
Power Requirement for GW-BAC1 at 9V through 30 VDC or 12-24 VAC
Current Draw Type
GW-BAC1 Family
12VDC/VAC
24VDC/VAC
30VDC
FPC – N34 (Typical)
170mA
100mA
80mA
FPC – N34 (Maximum)
240mA
140mA
100mA
Note: These values are ‘nominal’ and a safety margin should be added to the power supply of the host system. A
safety margin of 25% is recommended.
Power to GW-
BAC1
GW-BAC1
Pin #
Pin
Assignment
Power In (+)
Pin 4
V +
Power In (-)
Pin 5
V -
Frame Ground
Pin 6
FRAME GND
2.4 Connec tin g Po wer to GW- BAC1
Apply power to GW-BAC1 as show below in Error! Reference source not found.. Ensure that the power supply used complies with the specifications provided in Appendix B.1.
GW-BAC1 accepts either 9-30VDC or 12-24 VAC on pins 4 and 5.
o The “Frame Ground” (pin 6) is not typically connected.
Figure 7: Required current draw for the GW-BAC1
Figure 8: Power Connections
Unitronics
Page 12
Unitronics’s BACnet Gateway User Guide Page 12 of 28
3 CREATING C ONFIGURATI O N FILE AND CON FIGURATI NG THE PLC
3.1 UniBAC net con fig urator
UniBACnet configurator is a tool provided Unitronics that allows the user to create the configuration file for the GW­BAC1 easily. Once created, the configuration file should be downloaded to the GW-BAC1 in order to enable it to communicate with the Unitronics PLC. The UniBACnet configurator can be launched from both the VisiLogic and UniLogic programing applications Tools menu.
Figure 9: Tools menu on VisiLogic
Figure 10: Tools menu on UniLogic
Unitronics
Page 13
Unitronics’s BACnet Gateway User Guide Page 13 of 28
Configuration file creation steps
BACnet Connection: Use this menu for setting up the BACnet Gateway communication parameters.
First you must choose the type of BACnet Protocol: MS/TP (Serial) or IP.
Figure 11: BACnet Connection MS/TP Screen
Unitronics
Figure 12: BACnet Connection IP Screen
Page 14
Unitronics’s BACnet Gateway User Guide Page 14 of 28
BACnet Device instance: Here you will add all the BACnet slave devices.
Figure 13: BACnet Nodes Screen
The Device instance must correspond with the ID given to the device. To assign an ID to the device please follow the configuration manual of the device.
BACnet Map Descriptions: Here you will add the Inputs/Outputs/values to be read and or write in each node,
select the format –Int16. Uint16, Int32, Uint32-, Object ID, scan interval and function type.
Unitronics
Figure 14: BACnet Map descriptors Screen
Page 15
Unitronics’s BACnet Gateway User Guide Page 15 of 28
Note that the read function will let you read and write while write function will only let you write. Read and write block continuous means that the data will be read and write continuously. Write block on change means that only when there is change in the data, it will be written.
Modbus Connection: Here the user will configure the Modbus connection to the PLC.
First the user must select between Modbus protocol: RTU or TCP/IP, then the corresponding configuration.
Figure 15: Modbus connection RTU Screen
Unitronics
Figure 16: Modbus connection IP Screen
Page 16
Unitronics’s BACnet Gateway User Guide Page 16 of 28
Finish: This window will show the addressing map of the data to be read/write from/to the device -to be use
in VisiLogic ladder logic- and will let you export the configuration file that you will download to the GW-BAC1 via the GUI browser.
Figure 17: Finish Screen
Once you have created the configuration file, it has to be downloaded to the GW-BAC1 unit according to the following instructions.
a. Connect a standard CAT5 Ethernet cable (Straight through or Cross-Over) between the PC and GW-
BAC1
b. The Default IP Address of GW-BAC1 is 192.168.1.24, Subnet Mask is 255.255.255.0. If the PC and
GW-BAC1 are on different IP Networks, assign a static IP Address to the PC on the 192.168.1.xxx network
c. Go to > > d. Right-click on Local Area Connection > Properties
e. Highlight > f. Select: Use the following IP address
Unitronics
g. Click twice
Page 17
Unitronics’s BACnet Gateway User Guide Page 17 of 28
h. After setting your PC to be on the same subnet as the GW-BAC1, open a web browser on your PC
and enter the IP address of the GW-BAC1; the default address is 192.168.1.24.
i. If IP address of the GW-BAC1 has been changed by previous configuration, down load FieldServer
Toolbox to discover unknown IP address of the GW-BAC1.
http://www.fieldserver.com/docs/downloads/FieldServer-Toolbox.zip
j. The FST Web GUI page will be presented.
From the FST Web GUI’s landing page, click on “Setup” to expand the navigation tree and then select “File transfer” to access the IP Settings menu. (Error! Reference source not found.)
Figure 18: File Transfer Screen
k. Select browse and look for the CSV file you just created. l. Click on submit button. The download process should take a couple of seconds. m. To finish please click on system restart.
The File menu will let you save the current configuration or open a previously saved one.
Unitronics
Figure 19: File menu
Page 18
Unitronics’s BACnet Gateway User Guide Page 18 of 28
3.2 PLC configur ati on e xample.
Please note: The following section provides an example of the required configuration using the Vision570 PLC. The configuration required for your specific application may require some changes. VisiLogic includes further examples for BACNet/Modbus RTU and BACnet/Modbus TCP_IP.
In all setting the PLC must be configured as a MODBUS master. Depending on the MODBUS protocol the user has chosen, the PLC needs to be configured as MODBUS RTU or MODBUS TCP_IP master.
Figure 20: MODBUS RTU configuration
Unitronics
Figure 21: Example of COM initialize
Page 19
Unitronics’s BACnet Gateway User Guide Page 19 of 28
Figure 22: Example of Modbus configuration
Figure 23: Example of MODBUS TCP/IP configurator
Unitronics
Figure 24: Example of TCP/IP card and socket initialize
Page 20
Unitronics’s BACnet Gateway User Guide Page 20 of 28
Figure 25: Example of TCP/IP card and socket initialize
After the initial configuration, add the proper Modbus commands to read/write data using the addresses table obtained in the finish screen of the UniBACnet Configurator.
Figure 26: Example of MODBUS Command
Unitronics
Page 21
Unitronics’s BACnet Gateway User Guide Page 21 of 28
Ethernet
4 CHANGING T HE GW-BAC1 IP ADDR ESS
4.1 Connec t the P C to GW-BA C1 v ia the Eth ernet Port
Figure 27: Ethernet Port Location
Connect a standard CAT5 Ethernet cable (Straight through or Cross-Over) between the PC and GW-BAC1 The Default IP Address of GW-BAC1 is 192.168.1.24, Subnet Mask is 255.255.255.0. If the PC and GW-BAC1
are on different IP Networks, assign a static IP Address to the PC on the 192.168.1.xxx network
Go to > > Right-click on Local Area Connection > Properties
Highlight > Select: Use the following IP address
Click twice
Figure 28: PC IP configuration
Unitronics
Page 22
Unitronics’s BACnet Gateway User Guide Page 22 of 28
4.2 BACnet/IP : Setting IP A ddress for Field Netwo rk
Open a browser application and type default IP address of the GW-BAC1 192.162.1.24.
The FST Web GUI page will be presented.
From the FST Web GUI’s landing page, click on “Setup” to expand the navigation tree and then select
Network Settingsto access the IP Settings menu. (Error! Reference source not found.)
Figure 29: Changing IP Address via FST Web GUI
Enter the new IP address for the GW-BAC1’s Ethernet port in the “N1 IP address” field. If necessary, change the Subnet Mask setting in the “N1 Netmask” field. If necessary, change the IP Gateway setting in the “Default Gateway” field. Note: If the GW-BAC1 is connected to a router, the IP Gateway of the GW-BAC1 should be set to the IP
address of the router that it is connected to.
Click the “System Restart” button at the bottom of the page to apply changes and restart the GW-BAC1. Unplug Ethernet cable from PC and connect the GW-BAC1 to the network hub or router. Record the IP address assigned to the GW-BAC1 for future reference.
Unitronics
Page 23
Unitronics’s BACnet Gateway User Guide Page 23 of 28
Appendix A. Troubleshooting
Check Wiring and Settings Appendix A.1.
If Tx/Rx are not flashing rapidly then there is a COM issue on the Modbus side and you need to check the
following things:
o Visual observations of LEDs on GW-BAC1. (Appendix A.3) o Check baud rate, parity, data bits, stop bits o Check Modbus device address o Verify wiring
Field COM problems:
o Visual observations of LEDs on GW-BAC1. (Appendix A.3) o Visual dipswitch settings (using correct baud rate and device instance) o Verify IP address setting o Verify wiring
If the problem still exists, a Diagnostic Capture needs to be taken and sent to Unitronics technical support.
( Appendix A.2)
Unitronics
Page 24
Unitronics’s BACnet Gateway User Guide Page 24 of 28
Ethernet Port
Diagnostic Capture Appendix A.2.
Once the log in Diagnostic Capture is complete, email it to support@unitronics.com.
The Diagnostic Capture will allow us to rapidly diagnose the problem.
Ensure that FieldServer Toolbox is loaded on the PC that is currently being used, or download FieldServer­Toolbox.zip at http://www.protocessor.com/tech-support/utilities-and-design-documents.php
Extract the executable file and complete the installation.
Figure 30: Ethernet Port Location
Disable any wireless Ethernet adapters on the PC/Laptop Disable firewall and virus protection software if possible Connect a standard cat5 Ethernet cable between the PC and GW-BAC1 Double click ion the FS toolbox Utility. Step 1: Take a Log
o Click on the diagnose icon of the desired device.
Figure 31: Diagnostic tool – device selection
Unitronics
Page 25
Unitronics’s BACnet Gateway User Guide Page 25 of 28
o Select full Diagnostic
Figure 32: Diagnostic selection
o If desired, the default capture period can be changed. o Click on Start Diagnostic.
Figure 33: Diagnostic tool – start diagnostic
Wait for Capture period to finish. Diagnostic Test Complete window will appear.
Continue to step 2.
Unitronics
Page 26
Unitronics’s BACnet Gateway User Guide Page 26 of 28
Step 2: Send Log
o Once the Diagnostic test is complete, a .zip file will be saved on the PC.
o Choose open to launch explorer and have it point directly at the correct folder. Send the Diagnostic
zip file to support@fieldserver.com
Figure 34: Diagnostic tool –diagnostic test complete
Unitronics
Page 27
Unitronics’s BACnet Gateway User Guide Page 27 of 28
Tag
Description
SPL
The SPL LED will light if the GW-BAC1 is off line.
RUN
The RUN LED will start flashing 20 seconds after power indicating normal operation.
ERR
The SYS ERR LED will go on solid 15 seconds after power up. It will turn off after 5 seconds. A steady red light will indicate there is a system error on GW-BAC1. If this occurs, immediately report the related “system error” shown in the error screen of the GUI interface to Unitronics technical support for evaluation.
RX
The RX LED will flash when a message is received on the host port.
TX
The TX LED will flash when a message is sent on the host port.
PWR
This is the power light and should show steady green at all times when GW-BAC1 is powered.
Diagnostic LEDs
SPL
LED Diagnostics for Modbus RTU Communications Between GW-BAC1 and Devices Appendix A.3.
Please see the diagram below for GW-BAC1 LED Locations.
Figure 35: Diagnostic LEDs
Unitronics
Page 28
Unitronics’s BACnet Gateway User Guide Page 28 of 28
GW-BAC1
Electrical Connections
One 6-pin Phoenix connector, one RS-485 +/- ground port, power +/- frame ground port One 3-pin RS-485 Phoenix connector, one RS-485 +/- ground port One Ethernet-10/100 Ethernet port
Approvals:
CE Certified; TUV approved to UL 916, EN 60950-1, EN 50491-3 and CSA C22-2 standards; FCC Class A Part 15; DNP3 Conformance Tested; OPC Self-tested for Compliance; RoHS Compliant; CSA 205 Approved
BTL Marked
Power Requirements
Multi-mode power adapter: 9-30VDC or 12 - 24VAC
Physical Dimensions
11.5 cm L x 8.3 cm W x 4.1 cm H (4.5 x 3.2 x 1.6 in.)
Weight:
0.2 kg (0.4 lbs)
Operating Temperature:
-40°C to 75°C (-40°F to167°F)
Surge Suppression
EN61000-4-2 ESD EN61000-4-3 EMC EN61000-4-4 EFT
Humidity:
5 - 90% RH (non-condensing)
(Specifications subject to change without notice)
Appendix B. Reference
Specifications Appendix B.1.
Figure 36: Specifications
Compliance with UL Regulations Appendix B.2.
For UL compliance, the following instructions must be met when operating GW-BAC1.
The units shall be powered by listed LPS or Class 2 power supply suited to the expected operating
temperature range.
The interconnecting power connector and power cable shall:
Comply with local electrical code. Be suited to the expected operating temperature range. Meet the current and voltage rating for GW-BAC1/Net
Furthermore, the interconnecting power cable shall:
Be of length not exceeding 3.05m (118.3”) Be constructed of materials rated VW-1 or FT-1 or better
If the unit is to be installed in an operating environment with a temperature above 65 °C, it should be
installed in a Restricted Access Area requiring a key or a special tool to gain access
This device must not be connected to a LAN segment with outdoor wiring.
Unitronics
Loading...