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

Connecting codesys to ecomat controller through raspbian device

dtimperman
2021-04-15
2021-05-19
  • dtimperman - 2021-04-15

    Good afternoon,

    We have an ecomat cr721s controller and a display connected to a raspbian device with ethernet cable to lan port.
    This interface is configured with a static ip address in the same range as the controller.
    The raspbian device is connected to the internet with a sim card.

    I can establish a ssh session with putty to the raspbian device from my client pc and set up ssh tunneling. After this I can connect to a webvisu.htm page and see the display. (ssh tunnels port 8080 to display.ipaddres:8080/webvisu.htm)
    We are having trouble using Codesys (V3.5 SP11) to find the cr721s controller.
    Any tips would be helpful. I am not the person who programs the controller, but the it'er who needs to set up the connection.

    Thanks in advance.
    (Hope I have supplied enough information, but otherwise please ask for more info...)

     
  • dtimperman - 2021-04-19

    Unfortunately I'm unable to install the package from command line, getting syntax error. Is it possible to install this from command line?

     
  • dtimperman - 2021-04-19

    I would also like to know why the original setup with ssh tunnel is not working.
    Can anyone help me understand?

    Thanks in advance

     
  • dtimperman - 2021-05-19

    Hi again and goodmorning,

    Meanwhile, I have been able to install the gateway on the device, so the setup is now:
    Client pc -> ssh to linux gateway device -> ethernet to controller (interface in same network range as controller).
    -> ssh tunneling of port 8080 to 192.168.82.6:8080 for webvisu

    With this I'm able to view the webvisu page.

    -> ssh tunneling of port 1217 to 192.168.82.247:1217 for scanning of controller
    -Not sure if this is the way to do it...

    It was my understanding I would be able to find the controller in codesys once I installed the gateway software on the gateway device. But I am still unable to find the controller when scanning the network.

    Am I still missing something?

    Greetings and thanks,
    Dominiek

     

    Last edit: dtimperman 2021-05-19
  • dtimperman - 2021-05-19

    Hello again,

    I think I've managed to find the device. In codesys I can add a favorite device which uses port 11740. I then added local port forward in putty for port 11740.
    So 'scan network' does not find the controller, I have to manually specify the ip...

    I will check with our plc programmer if he can work with this connection in the same way as if he was directly connected over ethernet.

    Thanks for the help so far.

    One question though, would this have worked without the edgegateway installed?

     

Log in to post a comment.