Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

NetDuino+ RS485 Industrial Communications


  • Please log in to reply
3 replies to this topic

#1 caEstrada

caEstrada

    Advanced Member

  • Members
  • PipPipPip
  • 84 posts

Posted 11 September 2012 - 08:05 AM

Hi there, Have you ever needed Modbus RTU using Netduino+ over a RS-485 network? Or do you need a Netduino with RS-485? Do it inexpensively with MAX483 connected directly to COM1 on the Netduino. Do you need a TCP to Serial Converter? You can do it with Netduino+ and the MAX483. Max483 works like a transceiver. The attached code allows to switch to transmit a Modbus message and turns on the receiver to catch the reply.

Attached Files



#2 HoosierInnovative

HoosierInnovative

    Member

  • Members
  • PipPip
  • 10 posts
  • LocationIndiana

Posted 11 September 2012 - 10:04 PM

Very interesting, so would you just use this to watch Modbus network traffic or can you communicate directly with a PLC?
Ethan

#3 caEstrada

caEstrada

    Advanced Member

  • Members
  • PipPipPip
  • 84 posts

Posted 12 September 2012 - 02:45 AM

Very interesting, so would you just use this to watch Modbus network traffic or can you communicate directly with a PLC?


If you know the protocol (Profibus, DH+, Optomux, etc.) you can write the code and have communication...

Regards,

#4 sayantan

sayantan

    Member

  • Members
  • PipPip
  • 10 posts
  • Locationindia

Posted 02 March 2014 - 08:45 AM

Hi there, Have you ever needed Modbus RTU using Netduino+ over a RS-485 network? Or do you need a Netduino with RS-485? Do it inexpensively with MAX483 connected directly to COM1 on the Netduino. Do you need a TCP to Serial Converter? You can do it with Netduino+ and the MAX483. Max483 works like a transceiver. The attached code allows to switch to transmit a Modbus message and turns on the receiver to catch the reply.

Hi caestrada,

i was trying out ur coding for my netduino plus 1 and rs485 communication, but while deploying the code its showindg

"Error 1 'System.IO.Ports.SerialPort' does not contain a definition for 'ReadByte' and no extension method 'ReadByte' accepting a first argument of type 'System.IO.Ports.SerialPort' could be found (are you missing a using directive or an assembly reference?) C:\Users\CSIO\Documents\Visual Studio 2010\Projects\ceNetduinoPlusModbusRTU42\ceNetduinoPlusModbusRTU42\Program.cs 277 40 ceNetduinoPlusModbusRTU42 "

this error, cn u pls help me to over come dis problem.

thank you.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.