Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Dataserver with serial port

Trapp
2016-08-09
2016-08-11
  • Trapp - 2016-08-09

    Hi ,

    I am trying to get some variables from a small PLC connected on RS232 to raspi using the DataServer.

    I have modified the CODESYSConfig.cfg like this:

    [SysCom]
    Linux.Devicefile=/dev/ttyAMA
    portnum := COM.SysCom.SYS_COMPORT1

    [CmpRouter]
    EnableLoopDetection=1
    EnableParallelRouting=1
    NumRouters=2
    0.MainNet=ether 1
    1.MainNet=MyCom

    [CmpBlkDrvCom]
    Com.0.Port=1
    Com.0.Name=MyCom
    Com.0.Baudrate=115200
    Com.0.EnableAutoAdressing=1

    I am not able to connect to the RS232 PLC through raspi. It seams that the Com Port is not used.

    Any Ideas what to do ?

    Thanks

    Volker

     
  • suibaf - 2016-08-09

    l viewtopic.php?f=21&t=7127 l

    May be the problem is the same.
    BR

     
  • Trapp - 2016-08-10

    Thanks for your answer,
    but this does not look like the problem.

    The serial port is not used for the console and it is ttyAMA0...

     
  • Trapp - 2016-08-11

    to me it looks like the component CmpBlkDrvCom is not in the Raspberry.

    Any ideas how to get this ?

     

Log in to post a comment.