Showing results 1 to 5 of 5

Thread: Connect to Zenon under Windows 10

  1. #1

    Default Connect to Zenon under Windows 10

    Hello collegues
    I can't connect to Zenon Runtime ana Editor from my application.
    I use verson 7.11 build 19245 and v7.50 build 28116.
    I use code like this which work fine under Windows 7.


    private void GetApplicationInterface()
    {
    // Check if zenOn is registered in the ROT.
    try
    {
    zenOn.Application rt = Marshal.GetActiveObject("zenOn.Application") as zenOn.Application;

    if (rt != null)
    {
    zenOn.Projects proj = rt.Projects();
    string name = proj.Item(0).Name;
    }
    }
    catch (Exception ex)
    {

    }
    }

    I tryed to start ZenonRT as Administrator but it didn't help.
    I don't use ZenonRT as service.

    Does ZenonRT register into ROT under Windows 10?
    Where can be a problem?

  2. #2
    Join Date
    03.11.2015
    Posts
    39

    Default Re: Connect to Zenon under Windows 10

    Hi altera,

    you can check if the zenOn.Application object is correctly registered in the ROT by using a ROT Viewer (e.g. RotView).
    Usually the zenon runtime is registered as "zenOn.Application" also in Windows 10 and the example code you sent should work.

    Can you check if the application is registered correctly?
    When do you execute the code? It takes a while until the RT has registered into the ROT

  3. #3

    Default Re: Connect to Zenon under Windows 10

    Thank you.
    It realy works. I started Zenon as Administrator and my aplication is also needed to start as Administrator.
    Attached Thumbnails Attached Thumbnails rot.png  

  4. #4
    Join Date
    03.11.2015
    Posts
    39

    Default Re: Connect to Zenon under Windows 10

    Hi altea,

    so your code successfuly connects to the runtime now, or is there still an issue?

    BR,
    Joris
    Last edited by joris.l : 15th February 2017 at 10:06

  5. #5

    Default Re: Connect to Zenon under Windows 10

    Hello Joris

    I could connect to ZenonRT, thank you.
    Attached Thumbnails Attached Thumbnails connect.png  

Similar Threads

  1. zenon unable to connect to S7-1200
    By misbah in forum Drivers
    Replies: 6
    Last Post: 17th June 2018, 13:54
  2. zenon7 can't connect with sql on my pc
    By zhangbb_dimension in forum Editor and Runtime Setup
    Replies: 2
    Last Post: 8th June 2012, 00:57
  3. Connect VBA to Oracle
    By nblanquart in forum VBA
    Replies: 6
    Last Post: 9th July 2010, 19:41
  4. Replies: 1
    Last Post: 1st December 2008, 10:16

Posting Rules

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