CAS-2700-24 SMA Gateway Manual Page 3 of 62 TABLE OF CONTENTS TABLE OF CONTENTS ..........................3 1. SMA Gateway Description ......................6 2. Connections ..........................7 2.1. Block Diagram ..........................7 2.2. Wiring / Connections ........................8 2.2.1. Modbus RTU Connections ....................... 8 2.3.
Page 4
CAS-2700-24 SMA Gateway Manual Page 4 of 62 5.3. Interpreting Modbus Data ......................25 5.4. Test Procedure – Use CAS Modbus Scanner ................26 6. Reading BACnet Data ........................ 29 6.1. Most Common BACnet Problem ....................29 6.2. Interpreting BACnet Data ......................29 6.3.
Page 5
CAS-2700-24 SMA Gateway Manual Page 5 of 62 9.1.4. Backup State .......................... 57 9.1.5. Error ............................58 9.2. SMA Sunny Island Data Enumerations ..................59 9.2.1. Mode ............................. 59 9.2.2. Invertor Operating State (InvOpStt) ..................59 9.2.3. Relay State (Rly1Stt, Rly2Stt) ....................59 9.2.4.
CAS-2700-24 SMA Gateway Manual Page 6 of 62 SMA Gateway Description The SMA Gateway connects to a SMA Sunny Webbox via an Ethernet (TCP/IP) connection. The SMA Gateway can then be configured to poll for data values from a number of devices that are connected to the Webbox.
CAS-2700-24 SMA Gateway Manual Page 8 of 62 2.2. Wiring / Connections 2.2.1. Modbus RTU Connections Port 0 – RS485 Mode Terminals All 4 jumpers required for 2 wire operation. CAS recommends the use of 3 conductors for so called 2-Wire RS485.
CAS-2700-24 SMA Gateway Manual Page 9 of 62 2.3. Limitations and Best Practices Maximum Number of SMA Sunny Webboxes per Gateway Only 1 SMA Sunny Webbox can be connected to a single gateway. RS232 Best Practices We recommend a maximum of 30ft for the RS232 cable. A well-made cable in a clean environment can easily run to 100ft and provide satisfactory performance.
CAS-2700-24 SMA Gateway Manual Page 10 of 62 Configuration and Settings 3.1. SMA Sunny Webbox Connection Settings To poll for data from a Sunny Invertor, Sunny Island, or SensorBox all that is needed is the IP address of the Sunny Webbox that these devices are connected to.
CAS-2700-24 SMA Gateway Manual Page 11 of 62 3.3. ModbusTCP Settings To connect using ModbusTCP you need to know the IP address of the gateway and the Modbus ‘Station’ number (also known as ‘Device Address’ or ‘Node ID’) and the TCP Port for the connection.
CAS-2700-24 SMA Gateway Manual Page 12 of 62 3.5. BACnet IP Settings BACnet supports discovery. Thus any BACnet tool will discover the gateway and report its properties. Each gateway must be allocated a unique device instance number and thus this is a configurable setting.
CAS-2700-24 SMA Gateway Manual Page 14 of 62 Change the Settings and click Submit to save them. To cancel changes simply close the page without submitting. Note on IP Addresses: Another method is provided to change the Netmask and Gateway address.
CAS-2700-24 SMA Gateway Manual Page 16 of 62 Reading Data using HTML / Web Browser Use a Web Browser to browse to this page. This is the IP address of your gateway http://192.168.1.113/bin/sma/report You are presented with a screen similar to this one.
CAS-2700-24 SMA Gateway Manual Page 17 of 62 Reading Modbus Data Need to know more about Modbus? Read this guide. http://www.chipkin.com/september-2010-newsletter 5.1. Modbus Function Supported (RTU and TCP) The Gateway supports functions 1, 2, 3, and 4. Most masters should be configured to use function 3 (Read Holding Registers).
Page 19
Note 1: All of these values will be sent a 16 bit values, therefore any real (decimal) values will be sent as their whole number part (i.e. 24.3 will be sent as 24). If you require the entire decimal value, please contact Chipkin Automation Systems. Typical Sunny Island Data...
If you require the data as floats, please contact Chipkin Automation Systems to update the configuration and Modbus map. These values will be encoded as IEEE754 format floating point numbers.
Page 26 of 62 5.4. Test Procedure – Use CAS Modbus Scanner You can test the ModbusTCP data using free test software provided by Chipkin Automation Software. This is a link to the download page. http://www.chipkin.com/cas-modbus-scanner Configure the scanner as follows 1.
CAS-2700-24 SMA Gateway Manual Page 29 of 62 Reading BACnet Data BACnet supports discovery. When you discover the gateway, objects and properties you will find appropriately named objects that report data from the SMA Devices. Because BACnet supports discovery, usually knowledge of the BACnet Device Instance Number does not need to be known in advance.
Page 30
CAS-2700-24 SMA Gateway Manual Page 30 of 62 For the following BACnet objects, each set of data (Invertor, SensorBox, and Sunny Island) will be described as if it was the first device configured. Each additional device added will be offset by 100. So the first device will have data starting with analog-input 1, the second device will have data starting at analog-input 101, the third device will have data starting at analog-input 201, etc.
Page 31
CAS-2700-24 SMA Gateway Manual Page 31 of 62 analog_input (18) analog_input (19) Serial Number analog_input (20) VacL1 analog_input (21) VacL2 analog_input (22) Vpv-_PE analog_input (23) Max Temperature analog_input (24) Max Vpv analog_input (25) Vfan Typical SensorBox Data analog_input (1) ExlSolIrr...
CAS-2700-24 SMA Gateway Manual Page 38 of 62 6.4. BACnet Test Procedure You have been provided with a USB key to the CAS BACnet Explorer. This key activates the software. It cannot run without it. If you don’t have your USB key, you can still activate the application –...
CAS-2700-24 SMA Gateway Manual Page 44 of 62 Commissioning, Diagnostics and Trouble Shooting 7.1. What to Take to Site for Commissioning 1. The gateway and other supplied components. 2. USB->485 Converter Any will do. This will allow you run tests using the 485 serial connection for Modbus RTU.
Page 45
CAS-2700-24 SMA Gateway Manual Page 45 of 62 8. Serial Mini Tester 9. DB9 and DB25 male and female connector make-up kits (Solder free) Always useful but not required if you have tested your cable prior to attending the site.
Page 47
CAS-2700-24 SMA Gateway Manual Page 47 of 62 13. Hub Used as a last resort if there are problems on Modbus or BACnet A hub is not a switch. A hub can be used for trouble-shooting whereas only a ‘supervised’...
CAS-2700-24 SMA Gateway Manual Page 48 of 62 7.2. Gateway Status Browse to http://192.168.1.113/bin/sma/report and you will the present values of the data points If all of the data values are displayed as “-1” (or whatever the configured default value is) then it could mean one of two things.
CAS-2700-24 SMA Gateway Manual Page 49 of 62 7.4. Debug log. The debug messages are sent on UDP port 514 to the broadcast IP address: {255.255.255.255} as plain ASCII text. You can use "logview4net" tool to view and recorded the debug messages as they are sent from the device.
CAS-2700-24 SMA Gateway Manual Page 51 of 62 Operating Normally Occasional timeout messages should be tolerated. Normal Operation. 7.5. Veeder Device Connection Use a mini tester to check the serial ports. Connect the cable to the Veeder device only – RD should be green. If it isn’t this means the cable to the Veeder device is wrong or the port isn’t working.
CAS-2700-24 SMA Gateway Manual Page 53 of 62 7.6. Another Method for Changing the IP Address - DHCP This device supports DHCP and DHCP is disabled. When shipped the device IP = 192.168.1.113 Mask = 255.255.255.0 Gateway = 192.168.1.1 If you simply want to change the IP address then use the simpler method provided in section 3.6 Change Configuration Settings.
CAS-2700-24 SMA Gateway Manual Page 54 of 62 To change the IP address complete the Fields and click the ‘Set’ button. Please set the IP, Network Mask, and Gateway fields. To set it to DHCP, simply put all fields to 0.0.0.0 and click the ‘Set’ button.
Page 55
CAS-2700-24 SMA Gateway Manual Page 55 of 62 A tool is provided. It can be downloaded from http://www.chipkin.com/articles/cas-gateway-firmware-download-tool Screen Shot from the Firmware update tool. File name and path may Click to find a gateway change. You will be (discover) provided with specific instructions.
CAS-2700-24 SMA Gateway Manual Page 56 of 62 Specifications UL and ULc approved 10/100BaseT with RJ-45 connector 1x RS232 Port 1x RS485 Port (Different Models have additional ports) 2MBytes flash memory, 8MBytes of SDRAM ...
CAS-2700-24 SMA Gateway Manual Page 57 of 62 SMA Enumerations The following lists are the enumerated values for various SMA Data points 9.1. SMA Invertor Data Enumerations 9.1.1. Mode Offset Stop Disturbance Grid Monitoring Error Waiting Mpp Peak V Const...
CAS-2700-24 SMA Gateway Manual Page 58 of 62 9.1.5. Error No Error EarthCurMax Srr MSD VAC MSD FAC K1 Open K2 Open EEPROM p Power Balance MSD Idif EarthCurMax Bfr Derating XFMR TEMP W EeRestore Grid Timeout VacL1 Bfr VacL2 Bfr...
CAS-2700-24 SMA Gateway Manual Page 59 of 62 9.2. SMA Sunny Island Data Enumerations 9.2.1. Mode Same as 9.1.1 SMA Invertor Data Enumerations – Mode 9.2.2. Invertor Operating State (InvOpStt) None Startup Standby EmCharge Error 9.2.3. Relay State (Rly1Stt, Rly2Stt) 9.2.4.