Jump to content
OMRON Forums

Rajiv

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Rajiv

  1. Hello,

    I am facing some other issue also .

    I have multiple program under Background Program. I want to execute second program under the first  program.

    Sample Program


    ■open plc1
        system "var/ftp/usrflash/Project/C\ Language/Background\ Programs/capp1.out"
        disable plc 1
    close


    ■capp1
    int main()
    {
        InitLibrary();

        // ↓Here I want to execute capp2.out
        Command("cx system \"/var/ftp/usrflash/Project/C\\ Language/Background\\ Programs/capp2.out\"");
        CloseLibrary();
        return 0;
    }

    ■capp2
    int main()
    {
        InitLibrary();

        //And in second capp2 want to execute capp3 and so on

        Command("cx system \"/var/ftp/usrflash/Project/C\\ Language/Background\\ Programs/capp3.out\"");

        CloseLibrary();
        return 0;
    }

    I have tried to execute in many different ways by using system , Command etc command .But unable to execute.

     

     

     

     

  2. Thanks for responding.

    But I think my explanation was not enough to know the exact problem.

    Let me explain.

    Suppose when PMAC execute a program some data is generated  like motor speed, velocity, distance etc and it is stored in PMAC memory /var/ftp/www.

    I want to transfer that data to my local machine that is having window OS.

    Automatically data should get transferred with the help of code once data is generated and for every time.

    waiting for valuable feedback. 

×
×
  • Create New...