background image

MB40 & MB45 MODBUS TCP/IP Gateway  

 

Page 

16

 of 

21

 

 

Troubleshooting  

A number of LED’s have been provided to assist with troubleshooting, should you run into problems 
with the MB40.  

Power Connected  

Without any connections made except power, the Tx LED next to the D9 port should flash red once 
roughly every 5 seconds. This confirms the gateway is on and operational.  

Weather station Comms  

If the Gateway is receiving messages from the weather station, the green Rx LED should flash in 
response to the red Tx LED roughly every 10 seconds.  

Ethernet  

If a valid connection is made on Ethernet cable between another controller, network card, or Ethernet 
switch, at least one LED on the Ethernet socket will be illuminated 

– regardless of TCP/IP settings. If 

not, there is a problem with the network equipment.  

RS485  

If any type of serial data is sent over RS485, the Rx LED will flash. If the serial data is a valid Modbus 
command at the correct address, baudrate, and parity, the gateway will send a response. This will 
cause the green Tx LED to flash.  

 

Troubleshooting Procedure  

 

1)  Begin with the Gateway disconnected from all cabling and all DIP switches in the off position.  
 
2)  Apply 8 to 28 volts to the power terminals. Check the Tx LED next to the D9 port. It should flash 

red roughly once every 5 seconds. If so, move to step 3. If not:  

 

a)  Check the wires of the power supply are the correct way around.  

 

b)  Probe the power terminals with a multimeter to ensure you are receiving the required DC 

voltage.  

 
3)  Plug the weather station into the MB40 using the D9 connector. Check the Rx LED next to the D9 

connector. It should now flash green in combination with the red LED. If so, move to step 4. If not:  

 

a)  Check that the weather station is powered.  

 

b)  Check the cabling from the weather station to the gateway.  

 

c)  Plug an Ethernet cable from the gateway to a controller (either directly or via an Ethernet 

switch). After a moment, the lights on the Ethernet socket should illuminate/flash. If so, go to 
step 4. If not, there is a problem with the network hardware. Try:  

 

i) 

Making a direct connection between the MB40 and a PC.  

 
4)  Use the switches to set the TCP/IP settings. Using a machine in the same subnet, browse to the 

IP address of the gateway. If you see the MB40 webpage, you have successful Ethernet 
communications. The gateway can be polled by a Modbus TCP/IP master on this address. If not:  

 

a)  Check your network settings to make sure the gateway is in the same subnet as your other 

network hardware. On windows:  

 
 

i) 

Press: w R to open the run dialogue box.  

 

Содержание MB40

Страница 1: ...ensland 4370 Australia Phone 07 4661 4699 Fax 07 4661 2485 International Phone 61 7 4661 4699 International Fax 61 7 4661 2485 Email sales environdata com au http www environdata com au Material in th...

Страница 2: ...nd carry out actions based on wind speed wind direction temperature and many other weather based variables The MB40 Modbus TCP DL3000 Gateway is a major upgrade to MB30 Serial DL3000 Gateway It provid...

Страница 3: ...port But in both cases the communication is text commands and NOT MODBUS commands MODBUSVIEW TCP is a program that can connect via either a LAN TCP IP address or a serial COM port and does use MODBUS...

Страница 4: ...h 3 4 7 Configuration Using Switches Switch 5 to 8 7 Configuration Using Webpage 7 Configuration Using Modbus RTU or TCP IP 8 Weather Station Data 9 Current Weather Data 9 Daily Weather Data 9 Last Ho...

Страница 5: ...t to RS485 terminal Indicates serial communications sent Modbus RTU on RS485 Green Rx LED next to D9 connector Indicates serial communications received from weather station on the serial port Red Tx L...

Страница 6: ...F OFF 2 ON OFF OFF OFF 3 OFF ON OFF OFF 4 ON ON OFF OFF 5 OFF OFF ON OFF 6 ON OFF ON OFF 7 OFF ON ON OFF 8 ON ON ON OFF 9 OFF OFF OFF ON 10 ON OFF OFF ON 11 OFF ON OFF ON 12 ON ON OFF ON 13 OFF OFF ON...

Страница 7: ...settings are loaded from when power is applied to the MB40 With this switch off settings are loaded from the current values of the switches regardless of previous settings With the switch on the sett...

Страница 8: ...Mask 255 240 0 0 Default Gateway 172 16 0 1 ON ON Configuration Using Switches Switch 5 to 8 The final four switches determine the last octet of the IP address Table 9 TCP IP IP Address switches Last...

Страница 9: ...RTU on RS485 or Modbus TCP IP Table 10 Modbus TCP IP Configuration Registers Modbus Register Function 256 1st octet IP Address 257 2nd octet IP Address 258 3rd octet IP Address 259 4th octet IP Addres...

Страница 10: ...Data Table 12 MEM 1 LAST Modbus Register Listing Holding Register Address 40 000 No of Registers Type Description 61 1 Time Year in format YYYY 62 1 Time Month and day in format MMDD 63 1 Time Hour in...

Страница 11: ...next available holding register up to a limit of 54 numbers 2 Weather Station data is internally limited to 32760 Values beyond this range are capped to an error code shown below 3 The decimal point...

Страница 12: ...s sent to the Weather Station by writing a 1 to Holding Register 255 Note that there is no error checking on this interface Once a one is written to the send register the command will be sent to the w...

Страница 13: ...either GOOD or BAD for each data packet Directly above the horizontal line reads the MAC address for the MB40 This identifier is globally unique Directly below the horizontal line are the configurati...

Страница 14: ...ess with the register number appended after a forward slash Alternatively the entire register listing can be returned by using the same query with a registers xml termination The XML file structure is...

Страница 15: ...TCP IP Gateway Page 14 of 21 All Registers IP Address registers xml Using a web browser with the gateway at its default address 192 168 1 100 registers xml Figure 3 Complete register listing HTTP requ...

Страница 16: ...MB40 MB45 MODBUS TCP IP Gateway Page 15 of 21 Error Request If the GET request is of the wrong format or otherwise unrecognised by the MB40 a bad request XML is returned Figure 5 Bad Request XML file...

Страница 17: ...y 8 to 28 volts to the power terminals Check the Tx LED next to the D9 port It should flash red roughly once every 5 seconds If so move to step 3 If not a Check the wires of the power supply are the c...

Страница 18: ...but not on 10 1 1 x b Check your network to ensure the MB40 has a unique IP address within the subnet The best way to do this is via your router if applicable Otherwise you could power off the gateway...

Страница 19: ...LAN adapter and go to properties 4 Click on Internet Protocol TCP IP and go to properties 5 Click on use the following IP address and set the values to IP Address 192 168 1 1 Subnet Mask 255 255 255...

Страница 20: ...s sequentially unpacked and placed into holding registers 120 1 Status Comms status for the MEM 1 LAST command 0 bad 1 good 121 1 Time Year in format YYYY 122 1 Time Month and day in format MMDD 123 1...

Страница 21: ...t Two digits format MM Padded with leading zeroes 254 1 Second argument Two digits format SS Padded with leading zeroes 255 1 Commit Time to Weather Station Write a 1 to send time command 256 1 IP Con...

Отзывы: