Help me with Rs232

stephenr07
2016-03-17
2016-03-19
  • stephenr07 - 2016-03-17

    Good day

    I from colombia and i need to know how can use rs232 module or modbus-485 module with codesys 3.5 Patch 8, for a control PID, but i don't understan yet how do it .

    need some tutorial or some connection for tx-rx pins, o some document to start to know about it!!

    i need communication with a microcontroller, but a don't se how configure a port, from rasbiar or codesys!

    I hope some can help me!

    Thanx a lot!

    Atte:

    Stephen Ruiz

     
  • eschwellinger

    eschwellinger - 2016-03-17

    Hi,

    here in the forum:
    l viewtopic.php?f=21&t=5699 l

    more detailed:
    there are several Options:
    RS485:
    for a wetterstationconnection l viewtopic.php?f=23&t=6247&p=13503#p14144 l we use this RS485 modul on the PI
    http://www.amescon.com/de/produkte/raspicomm.aspx
    for this you need to install it and add to /etc/CODESYSControl.cfg

    [SysCom]
    Linux.Devicefile=/dev/ttyRPC

    RS232:
    use any USB to Serial converter and add to /etc/CODESYSControl.cfg

    [SysCom]
    Linux.Devicefile=/dev/ttyUSB

    In CODESYS you could use SysCom or CAASerial Com, think you will find here some application examples.

    BR
    Edwin

     
  • stephenr07 - 2016-03-18

    hi,
    i try to do but isn't works :/
    i'll do everything step to step but i don't know how before thath, i'll conect with raspberry pi 2 and that conect well withouth communication,
    only see 2 warning say it
    UINT don't convert to USINT but i don't understand what meaning!!
    Help me please
    And thank a lot.
    Have a nice day.

    Edwin Schwellinger hat geschrieben:
    Hi,
    here in the forum:
    l viewtopic.php?f=21&t=5699 l
    more detailed:
    there are several Options:
    for a wetterstationconnection l viewtopic.php?f=23&t=6247&p=13503#p14144 l we use this RS485 modul on the PI
    http://www.amescon.com/de/produkte/raspicomm.aspx
    for this you need to install it and add to /etc/CODESYSControl.cfg
    [SysCom]
    Linux.Devicefile=/dev/ttyRPC
    portnum := COM.SysCom.SYS_COMPORT1;
    use any USB to Serial converter and add to /etc/CODESYSControl.cfg
    [SysCom]
    Linux.Devicefile=/dev/ttyUSB
    portnum := COM.SysCom.SYS_COMPORT1;
    In CODESYS you could use SysCom or CAASerial Com, think you will find here some application examples.
    BR
    Edwin

     
  • eschwellinger

    eschwellinger - 2016-03-19

    Hi,
    could you attach the project and give more details what you have already done?
    Does the serial com work under Linux?

    BR
    Edwin

     

Log in to post a comment.