Preview only show first 10 pages with watermark. For full document please download

Nt A007 - Modbus Gateway Vantage Pro2

   EMBED


Share

Transcript

Technical Note A007 Modbus Gateway Vantage Pro2™ 25/09/2009 Rev. A 1 de 7 Introduction 1. This Technical Note explains how to configure the Modbus Gateway for Vantage Pro2™. The Modbus Gateway allows the easy connection of a PLC (Programmable Logic Controller), RTU (Remote Telemetry Unit) or SCADA system to a Davis Instruments Vantage Pro2™ weather station. Using the Modbus RTU (binary) protocol it enables your programmable controller to monitor and carry out actions based on wind speed, wind direction, temperature and many other weather-based variables. The Gateway is linked to the weather station’s RS-232 serial connection. The Gateway polls the weather station for its readings every 10 seconds. These readings are then stored in the Modbus holding registers in the Gateway. The PLC or RTU acting as a Modbus master is able to use the Modbus function 3 to read the contents of the Gateway's holding registers, which will contain the latest weather readings. Features 2. • • PLC or RTU connects to Gateway COM Port 1, RS-232 or RS-485 connection. VantagePro2™ weather station connects to Gateway RS-232 COM Port 2 with baud rate 19200. • PLC or RTU connection features: - Selectable Modbus address from 1 to 16. - Selectable baud rate from 2400, 4800, 9600 to 19200. - Selectable parity none, odd, even. • LED indication of transmit and receive communications between the weather station and Gateway and between PLC or RTU and Gateway. • Weather station main readings are: - Outdoor Temperature - Outdoor Humidity - Indoor Temperature (console) - Indoor Humidity (console) - Wind Speed - Wind Direction - Rainfall (Precipitation) - Daily Rainfall - Monthly Rainfall Darrera meteo C/ de l’Església, 5-7-9 – Esplugues de Llobregat 08950 Barcelona (Spain) Tel: +34 934 734 532 – Fax: +34 934 735 708 www.darrera.com – [email protected] Technical Note A007 Modbus Gateway Vantage Pro2™ 25/09/2009 Rev. A 2 de 7 - Yearly Rainfall - Barometric Pressure and trend - Solar Radiation and UV - Evaporative Transfer * See the next section to find a complete list of the weather variables. • Communications OK status shows the communications between the weather station and the Gateway is OK. Modbus description 3. The Gateway operates as a Modbus slave. To access the holding registers in the Gateway, the PLC or RTU must be configured as a Modbus master. Using Modbus function 3 the PLC or RTU can read the holding registers 1 to 60. NOTE: The PLC or RTU cannot read more than 30 registers at one time. To interrogate the full 60 holding registers two separate reads must be used. The following table shows the available holding registers in the Gateway: Holding Register Address 1 2 No. Of Registers 1 1 3 1 4 5 6 7 8 9 10 11 15 17 1 1 1 1 1 1 1 4 2 2 Description Multiplier Current 3-Hour Barometer Trend. Packet Type, always 0 Location in the archive memory where the next data packet will be written. This can be monitored to detect when a new record is created. Barometer Inside Temperature Inside Humidity Outside Temperature Wind Speed 10-Min Average Wind Speed Wind Direction 7 Extra Temperatures 4 Soil Temperatures 4 Leaf Temperatures Darrera meteo 0.001 0.1 1 0.1 1 1 1 0.1 0.1 0.1 Units inHg degF % degF mph mph degrees degF degF degF C/ de l’Església, 5-7-9 – Esplugues de Llobregat 08950 Barcelona (Spain) Tel: +34 934 734 532 – Fax: +34 934 735 708 www.darrera.com – [email protected] Technical Note A007 Modbus Gateway Vantage Pro2™ 25/09/2009 Rev. A 3 de 7 19 20 24 25 26 27 28 29 30 31 32 33 34 35 1 4 1 1 1 1 1 1 1 1 1 1 1 2 37 2 39 40 41 42 46 48 49 50 51 52 53 60 1 1 1 4 2 1 1 1 1 1 1 1 Outside Humidity 7 Extra Humidity Rain Rate UV Index Solar Radiation Storm Rain Current Date of Storm Rain Daily Rain Monthly Rain Yearly Rain Daily ET Monthly ET Yearly ET 4 Soil Moistures 4 Leaf Wetnesses 0 to 15 (0 = very dry / 15 = very wet) Inside Alarms Rain Alarms Outside Alarms Extra Temp/Hum Alarms Soil and Leaf Alarms Transmitter Battery Status Console Battery Voltage Forecast Icons Forecast Rule Number Time of Sunrise Time of Sunset Communications Status (1 = OK / 0 = Fault) 1 1 0.01 1 1 0.01 0.01 0.01 0.01 0.01 0.01 0.01 0.01 1 % % in/hr W/m2 inches inches inches inches inches inches inches inches centibars 1 1 1 1 1 1 1 1 1 1 1 1 1 volts HHMM HHMM Table 1. Variables and holding register addresses Holding Register 60 or Communications Status indicates if the Gateway is receiving data from the weather station. 4. Weather station setup The Davis Instruments Vantage Pro2™ weather station must be fitted with a RS-232 serial interface. The Gateway includes an RJ-45 cable which has a 9 pin male DB-9 connector, Darrera meteo C/ de l’Església, 5-7-9 – Esplugues de Llobregat 08950 Barcelona (Spain) Tel: +34 934 734 532 – Fax: +34 934 735 708 www.darrera.com – [email protected] Technical Note A007 Modbus Gateway Vantage Pro2™ 25/09/2009 Rev. A 4 de 7 connect this to COM2 on the Gateway and the other end to the serial interface on the weather station. Ensure that the serial baud rate on the weather station is set to 19200 bauds. Ensure S2 is in the RS-232 position. NOTE: The weather station must have batteries or power supply fitted into its console. If power is lost to the weather station it will not respond to data requests from the Gateway. 5. Gateway setup Connect 9VDC to 15VDC to the screw terminals V+ and V-. For advanced wiring through the RJ-45 connectors refer to their pinout further in this Technical Note. If RS-232 is used to communicate with the Modbus master then the provided RJ-45 to DB-9 dongle can be used in COM1, if RS-485 is to be used a RJ-45 connector is required to be wired, refer to Table 5 for connections. Set the DIP switches on S3 on the Gateway to match the Modbus address, baud rate and parity of your system. NOTE: NOTE: If DIP switches are altered while power is on then no change will take effect until power is re-applied. Next tables show the DIP switch configuration: Modbus Address 1 2 3 4 5 6 7 8 9 10 Switch 1 Switch 2 Switch 3 Switch 4 OFF ON OFF ON OFF ON OFF ON OFF ON OFF OFF ON ON OFF OFF ON ON OFF OFF OFF OFF OFF OFF ON ON ON ON OFF OFF OFF OFF OFF OFF OFF OFF OFF OFF ON ON Darrera meteo C/ de l’Església, 5-7-9 – Esplugues de Llobregat 08950 Barcelona (Spain) Tel: +34 934 734 532 – Fax: +34 934 735 708 www.darrera.com – [email protected] Technical Note A007 Modbus Gateway Vantage Pro2™ 25/09/2009 Rev. A 5 de 7 11 12 13 14 15 16 OFF ON OFF ON OFF ON ON ON OFF OFF ON ON OFF OFF ON ON ON ON ON ON ON ON ON ON Table 2. Modbus addresses Baud Rate 2400 4800 9600 19200 Switch 5 OFF ON OFF ON Switch 6 OFF OFF ON ON Table 3. Modbus baud rate Parity None Even Odd None Switch 7 OFF ON OFF ON Switch 8 OFF OFF ON ON Table 4. Modbus parity Next figures show the connections diagrams of the board: Figure 1. Connections and switch locations Darrera meteo C/ de l’Església, 5-7-9 – Esplugues de Llobregat 08950 Barcelona (Spain) Tel: +34 934 734 532 – Fax: +34 934 735 708 www.darrera.com – [email protected] Technical Note A007 Modbus Gateway Vantage Pro2™ 25/09/2009 Rev. A 6 de 7 Figure 2. Port identification and LED locations Pin 1 2 3 4 5 6 7 8 Name VS CM RX TX CM DD+ CM Function V+ Power in Common RS-232 Receive RS-232 Transmit Common RS-485 DataRS-485 Data+ Common Table 5. COM1 and COM2 pins Troubleshooting 6. LED's are provided to assist in troubleshooting. TX2 and RX2 should flash once every 10 seconds to indicate communication to the weather station is good. • If TX2 is not flashing, check: 1. 12VDC is applied between V+ and V- terminals. • If RX2 is not flashing, check: 1. The serial baud rate on the weather station is set to 19200. Darrera meteo C/ de l’Església, 5-7-9 – Esplugues de Llobregat 08950 Barcelona (Spain) Tel: +34 934 734 532 – Fax: +34 934 735 708 www.darrera.com – [email protected] Technical Note A007 Modbus Gateway Vantage Pro2™ 25/09/2009 Rev. A 7 de 7 2. The cable connections are OK. TX1 and RX1 LED’s indicate communications to the PLC or RTU. • If RX1 is not flashing, check: 1. If crossover on pins 2 and 3 (RX and TX) is needed. 2. Baud rate and parity DIP switches match baud rate and parity of PLC or RTU. • If Tx1 is not flashing, check: 1. Modbus Address DIP switches are correct 2. Baud rate and parity DIP switches match baud rate and parity of PLC or RTU. Darrera meteo C/ de l’Església, 5-7-9 – Esplugues de Llobregat 08950 Barcelona (Spain) Tel: +34 934 734 532 – Fax: +34 934 735 708 www.darrera.com – [email protected]