Shop OBEX P1 Docs P2 Docs Learn Events
About to put first object into OBEX - Can someone review it first? — Parallax Forums

About to put first object into OBEX - Can someone review it first?

pacmanpacman Posts: 327
edited 2013-05-05 19:28 in General Discussion
Well I've managed to polish my modbus object for the prop to the point where I think the laughter will not hurt too much.

Would some kind soul be able to review it before I submit it to the great unwashed?

I dont expect it to be GOLD standard - but hopefully it's not too far removed from bronze

Please be gentle - it's my first time...

Modbus_PAC - Archive [Date 2013.04.19 Time 17.03].zip

Comments

  • Prophead100Prophead100 Posts: 192
    edited 2013-04-18 19:58
    Is there a copy somewhere we can review?
  • pacmanpacman Posts: 327
    edited 2013-04-19 00:07
    Yep, good call

    I thought I had attached but my computer was in the middle of having a hissy fit. _Should_ be attached now.
  • Ken GraceyKen Gracey Posts: 7,392
    edited 2013-04-19 08:07
    We're about to launch a new OBEX - likely today. Hold off on posting to the old OBEX.

    Details will follow from Jeff Martin or Bump.

    Ken Gracey
  • Prophead100Prophead100 Posts: 192
    edited 2013-04-21 14:22
    I took a quick look and put comments into your code.. Overall, you have the main components except the MIT license and some documentation technique to show well under the documentation and summary tab.
  • pacmanpacman Posts: 327
    edited 2013-04-22 01:20
    BIG thanks Prophead100.

    I'll update and improve based on your feedback.

    (in actual fact the version I sent you had already been supersceeded as additional functionalilty had been added {now rev 0.7} soon to be 0.8 :smile: )
  • AHMET AKSUAHMET AKSU Posts: 62
    edited 2013-05-04 16:31
    hi.I check the code.I want to use sn 75176.ic has 3 pin (rx tx and txrx ) but code control 2 pin (rx and tx).how can we solve this.
  • pacmanpacman Posts: 327
    edited 2013-05-05 03:46
    The physical interface is upto you. The code is just a modbus RTU decoder.

    Looking at the data sheet my first thoughts are you could tie DE high and use D as the transmit pin, tie 'not RE' low and use R as the receive pin.

    The best method would be to get one and test....
  • AHMET AKSUAHMET AKSU Posts: 62
    edited 2013-05-05 07:25
    half duplex is general in industrial aps.in the modbus code you are using full duplex serial.so are there any solution which can work half duplex.
  • pacmanpacman Posts: 327
    edited 2013-05-05 19:28
    Unless I am mistaken the full duplex object allows comms in both directions at once. The object I'm using is not driven in full duplex mode.

    I receive characters, process them, and then transmit data. Effectively acting in half duplex mode. If there were multiple slaves then you may need to write some code to inhibit transmit when receiving data.

    I have tested this with a couple of industrial modbus hosts (a prosoft MVI card being the most recent) and in each case it has functioned as a slave (for the limited amount of data I need it to 'do') OK.

    Please make sure you are using the version in the OBEX, as it is the most upto date.

    Cheers
Sign In or Register to comment.