how to communicate codesys to other PLC

chinrose
2011-07-01
2011-07-06
  • chinrose - 2011-07-01

    here is my problem, im just starting using codesys V2.3 and I like to interlink the codesys to existing PLC controller by TCP/IP but the PLC only acknowledge the bit(i0.0),flagword(FW0) and so on, as you may know the codesys acknowledge C++.
    1.) how can i communicate by TCP/IP and what are the link i need to do so.
    2.) how can PLC and Codesys understand each other.in terms of controlling each other.

    thank.

    i'm using Festo PLC by the way.

     
  • eschwellinger

    eschwellinger - 2011-07-05

    hi,
    you try to login from CoDeSys to the festo plc (cecx or cpx)
    or is your problem to connect two plc's and realize some communication between these two?
    a) there is a scan in the controller configuration you should find the festo plc'sΒ΄if they are in the same network.
    Then set the scanned plc as active and login with your project to the plc
    If this does not work the festo support is a good adress to have sucess on that kind of problems
    b) Netvars UPD is an Option for communication between plc's

    hope this helps
    cu
    Edwin

     
  • chinrose - 2011-07-06

    Edwin Schwellinger hat geschrieben:
    hi,
    you try to login from CoDeSys to the festo plc (cecx or cpx)
    or is your problem to connect two plc's and realize some communication between these two?
    a) there is a scan in the controller configuration you should find the festo plc'sΒ΄if they are in the same network.
    Then set the scanned plc as active and login with your project to the plc
    If this does not work the festo support is a good adress to have sucess on that kind of problems
    b) Netvars UPD is an Option for communication between plc's
    hope this helps
    cu
    Edwin

    hi
    Letter A is almost what i needed but still now working may be, because i'm not using CPX but FST festo controller, can this work also even i'm using a router.

    Where can i find this Netvars UPD, is this built-in or a different software.

    thanks this really help me more in my study in codesys.hope to hear from you angain.

     
  • eschwellinger

    eschwellinger - 2011-07-06

    hi,
    ok i summerize:
    you have a cecx and you are connected via a router?
    could you ping the cecx if yes the a login should be possible.

    Netvars is a build in feature which you could enable in the targetsettings
    if enabled you could configure a global varable list (properties) add there the UDP communication

    cu Edwin

     

Log in to post a comment.