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

Problem with uploading project

abolhasan
2020-05-04
2020-05-05
  • abolhasan - 2020-05-04

    Dear experts,
    I experienced a weird problem, when I connected via gateway to janz tec embeded PC and upload the project that is running I only see 2 remote I/O racks while there are 10 of them! How is it possible?

     
  • eschwellinger

    eschwellinger - 2020-05-04

    Hi,
    which version of the runtime is this?

    BR
    Edwin

     
    • abolhasan - 2020-05-04

      I only know that janz tec PC has linux operating system and the version by which it is programmed is Codesys v3.5 sp3 patch1.I have attached to pics from linux magbe it can help.I am really confused how it is possible that the uploaded program is like that!

       
  • i-campbell

    i-campbell - 2020-05-04

    One must explicitly download the source code to the controller, it does not happen automatically at application download. The application names and controller versions are both different in IMG_20200504_102648.jpg . It sounds like at some point someone downloaded source code to this controller, but it is not the source code for the application which is currently running. If the source code is not downloaded every time to the PLC, you must retrieve the source code from your company's source code management system. If your source code management system doesn't have it, I do not know of any way to retrieve it.

     
    • abolhasan - 2020-05-04

      Hi,
      Thanks for your reply but I am new to codesys so I do not understand what you say!
      Could you explain more?

       
  • i-campbell

    i-campbell - 2020-05-04

    If you are used to other PLCs, the default is that you can at least go online with any of that brands PLCs, unless the original programmer specifically ticked the "protected source code" box.
    With CODESYS it is the other way around, the default is that you can't go online with the PLC unless you have the original source code (.project file). If you don't have the original source code, the project is lost. It is like having a .exe file and no source code for it.
    The two most common methods of storing the source code are:
    1. Setting the project to always download the source code to the controller.
    2. Storing the .projectarchive in a safe place.

    You can also manually download the source code to the controller whenever you please.

    It sounds like in your case, someone did download the source to the PLC one time, but then stopped downloading the source when changes were made. So you have maybe version 3 of the code, when the code running in the PLC is maybe version 5.

    A) So, you have looked in one place for the code (the PLC) and it wasn't there.
    B) Now you look in your company's file system for the code.
    C) And if you don't find it there, you have to hunt down the original programmer and ask them where they stored the project. This step sometimes involves loud yelling, or other forms of diplomacy. Generally this step should not be reached very often.

    There is a possibility that you do not find the source code. In which case you cannot modify what is running in the PLC without completely rewriting it.

    One of the important things with CODESYS programming, is not to lose the source code.

     

    Last edit: i-campbell 2020-05-04

Log in to post a comment.