Zuviel Werbung? - > Hier kostenlos beim SPS-Forum registrieren

Results 1 to 7 of 7

Thread: Ungueltiger Kontext Error message While file transfer

  1. #1
    Join Date
    12.03.2018
    Posts
    3
    Danke
    0
    Erhielt 0 Danke für 0 Beiträge

    Default


    Zuviel Werbung?
    -> Hier kostenlos registrieren
    Hi,


    I was trying to upload(and download) a file from my computer to Simantic S7 300 PLC. (I'm using AGLINK API to do so)


    I tired with many options but i'm not able to do a file transfer. I'm pretty much new to SPS programming, so i'm not able to understand why i'm always getting "Ungueltiger Kontext Error message" or "Invalid context".


    I have tried following code snippet, which also shows the same error.


    public Int32 doNCK_CopyFromNC(Int32 connnr, Int32 timeout)
    {
    Int32 result = 0;
    String filename = "";
    Int32 neededlen = 1000;
    Byte[] buff = new Byte[neededlen];

    result = AGL4.NCK_CopyFromNC(connnr, filename, buff, out neededlen, timeout);
    if(result != AGL4.AGL40_SUCCESS)
    {
    // Error happened
    String errormsg = "";
    AGL4.GetErrorMsg(result, out errormsg);
    }
    return result;
    }


    I have used a sample application that provided by DeltaLogic Company, but which giving similar issue.
    https://drive.google.com/file/d/17C-...ew?usp=sharing
    UngueltigerKontext.JPG





    Since majority of the software forum and tools are in German i'm getting difficult to search this error in internet. Can anyone here please help me on resolving this issue ?




    Regards
    HERLE
    Reply With Quote Reply With Quote Ungueltiger Kontext Error message While file transfer  

  2. #2
    Join Date
    27.10.2005
    Location
    Schwäbisch Gmünd
    Posts
    5,328
    Danke
    670
    Erhielt 976 Danke für 790 Beiträge

    Default

    This is an API for Sinumerik NCK and not for a SIMATIC PLC. What do you want to upload to your PLC?
    Rainer Hönle
    DELTA LOGIC GmbH

    Man sollte nicht jedem Zitat im Internet glauben schenken (Leonardo da Vinci)

  3. #3
    herleraja is offline Neuer Benutzer
    Themenstarter
    Join Date
    12.03.2018
    Posts
    3
    Danke
    0
    Erhielt 0 Danke für 0 Beiträge

    Default

    Thanks for super quick reply.

    I wanted to upload a G code file(for some CNC machine). Or some program that i wanted to execute after uploading into the PLC.

    Regards
    HERLE

  4. #4
    Join Date
    27.10.2005
    Location
    Schwäbisch Gmünd
    Posts
    5,328
    Danke
    670
    Erhielt 976 Danke für 790 Beiträge

    Default

    You can't load a CNC programm to the PLC, you must load it in the NCK. Please tell me the MLFBNr of your "PLC" after connection.
    Rainer Hönle
    DELTA LOGIC GmbH

    Man sollte nicht jedem Zitat im Internet glauben schenken (Leonardo da Vinci)

  5. #5
    herleraja is offline Neuer Benutzer
    Themenstarter
    Join Date
    12.03.2018
    Posts
    3
    Danke
    0
    Erhielt 0 Danke für 0 Beiträge

    Default

    Ok. I heard Sinumerik 840D has internally a PLC inside it, so i was trying to load file to PLC. But looks like i entered through wrong way.

    MLFBNr : 6ES7 314-6EH04-0AB0

  6. #6
    Join Date
    27.10.2005
    Location
    Schwäbisch Gmünd
    Posts
    5,328
    Danke
    670
    Erhielt 976 Danke für 790 Beiträge

    Default

    This IS a PLC. You must connect to the NCK. Read the special Sinumerik manual of ACCON-AGLink for correct addressing mode. This depends on your selected interface.
    Rainer Hönle
    DELTA LOGIC GmbH

    Man sollte nicht jedem Zitat im Internet glauben schenken (Leonardo da Vinci)

  7. #7
    Join Date
    27.10.2005
    Location
    Schwäbisch Gmünd
    Posts
    5,328
    Danke
    670
    Erhielt 976 Danke für 790 Beiträge

    Default


    Zuviel Werbung?
    -> Hier kostenlos registrieren
    Do you have a now connection to the NCK? Can you download your program?
    Rainer Hönle
    DELTA LOGIC GmbH

    Man sollte nicht jedem Zitat im Internet glauben schenken (Leonardo da Vinci)

Similar Threads

  1. WinCC Flex Runtime Error bei Transfer - Siemens C7 - 935 - T
    By ASDF0815 in forum HMI
    Replies: 0
    Last Post: 30.06.2017, 07:12
  2. File transfer via FTP
    By moumie in forum CODESYS und IEC61131
    Replies: 2
    Last Post: 17.09.2015, 10:56
  3. HEX Editor mit Gramatik (zur Fileanalyse) + TIA-File Format Grammar File
    By Jochen Kühner in forum Hochsprachen - OPC
    Replies: 2
    Last Post: 14.04.2015, 09:26
  4. Replies: 0
    Last Post: 20.11.2009, 18:25
  5. OP 37 ''44 Transfer error #8''
    By crazygerman in forum HMI
    Replies: 4
    Last Post: 29.07.2008, 21:13

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •