<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Automation without UI</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6de27ece66/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6de27ece66/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/6de27ece66/</id><updated>2025-09-29T14:35:53.798000Z</updated><subtitle>Recent posts to Automation without UI</subtitle><entry><title>Automation without UI</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6de27ece66/?limit=25#ccc1" rel="alternate"/><published>2025-09-29T14:35:53.798000Z</published><updated>2025-09-29T14:35:53.798000Z</updated><author><name>monteta</name><uri>https://forge.codesys.com/u/monteta/</uri></author><id>https://forge.codesys.com5fe1393a6a8758a0df7c32cf11f81d6499a1f1e7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Problem solved, Once the perform_network_scan() is done, y just had to recover the address and using set_gateway_and_address(). &lt;br/&gt;
Now i'm looking how to deploy all my device's application on the PLC, I guess it will looks like :&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;for app in allapplication:
    with online.create_online_application(app) as onlineapp
    onlinedevice = onlineapp.get_online_device()
    online.set_default_credentials(x,y)
    try:
        onlineapp.login(OnlineChangeOption.Keep, False)
    except Exception as e:
        msg = str(e).lower()
        if "rescan" in msg :
            print("PLC service might be off")
        elif "targetdo" in msg:
            print("Bad credentials")
        else
            print(msg)
    else:
        onlineapp.create_boot_application()
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</summary></entry><entry><title>Automation without UI</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6de27ece66/?limit=25#874e" rel="alternate"/><published>2025-09-25T07:59:17.089000Z</published><updated>2025-09-25T07:59:17.089000Z</updated><author><name>monteta</name><uri>https://forge.codesys.com/u/monteta/</uri></author><id>https://forge.codesys.comc4491cb423e2f01ce20ce3f8f63f66de76437ae2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello all, there is my problem.&lt;br/&gt;
i have a project on a PC A who work properly, I aim to take this project and place it on a Pc B with a blank Codesys installed.&lt;br/&gt;
All seemd to work, the project is created on the PC B, i create my with with online.create_online_application(project.project.active_application) recover my onlineDevice and try onlinedevice.connect() so that i can use create_live_user_management() but then a problem occure on my connect() saying gateway .&lt;br/&gt;
I have setted my set_credentials_for_initial_user().&lt;/p&gt;
&lt;p&gt;when i use the Ui, there is absolutely no problem.&lt;/p&gt;
&lt;p&gt;an other question, is it possible to use the Start and Stop PLC of codesys Control Systray directly in my python script? So that if it detect that it's stopped, then he automatically start it?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>