background image

MB40 & MB45 MODBUS TCP/IP Gateway  

 

Page 

20

 of 

21

 

 

RTU 

address 

245 

Modbus 

RTU baud 

rate 

 

246 

Modbus 

RTU parity 

0 = None 2 = Even 3 = Odd 

247 

Weather 

station 

polling 

period 

default: 25 = 2.5 seconds 

248 

Year 

argument 

Four digits: format YYYY 

249 

Month 

argument 

Two digits: format MM. Padded with leading zeroes. 

250 

Day 

argument 

Two digits: format DD. Padded with leading zeroes. 

251 

Commit 

Date to 

Weather 

Station 

Write a 1 to send date command. 

252 

Hour 

argument 

Two digits: format HH. Padded with leading zeroes. 

253 

Minute 

argument 

Two digits: format MM. Padded with leading zeroes. 

254 

Second 

argument 

Two digits: format SS. Padded with leading zeroes. 

255 

Commit 

Time to 

Weather 

Station 

Write a 1 to send time command. 

256 

IP Config 

1st octet IP Address 

257 

IP Config 

2nd octet IP Address 

258 

IP Config 

3rd octet IP Address 

259 

IP Config 

4th octet IP Address 

260 

IP Config 

1st octet Subnet Mask 

261 

IP Config 

2nd octet Subnet Mask 

262 

IP Config 

3rd octet Subnet Mask 

263 

IP Config 

4th octet Subnet Mask 

264 

IP Config 

1st octet Default Gateway 

265 

IP Config 

2nd octet Default Gateway 

266 

IP Config 

3rd octet Default Gateway 

267 

IP Config 

4th octet Default Gateway 

268 

IP Config 

Commit to Gateway (write a 1) 

269 

Unused 

 

270 

Unused 

 

 

Содержание 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...

Отзывы: