Python Script to Start/Stop Control RTE V3 Services

ap040
2020-10-21
2020-10-24
  • ap040 - 2020-10-21

    Hello,
    I am able to start/stop service for the CODESYS Control Win V3 -x64 by using the Python script but my actual requirement to run this with CODESYS Control RTE V3. Can someone help how I can run Python script to start/stop the softPLC of Codesys RTE?.

     
  • eschwellinger

    eschwellinger - 2020-10-21

    Hi,
    from commandline it is:
    net start "CODESYS Control RTE V3"
    and
    net stop"CODESYS Control RTE V3"

     
    πŸ‘
    1
  • ap040 - 2020-10-21

    Thank You for your quick response @eschwellinger...!!
    I will try this and will get back to you if, found some trouble.

     
  • ap040 - 2020-10-21

    Hello @eschwellinger,

    It is not working as expected...In the script it is showing to started PLC successfully but when I checked same in the notification panel, it is not changing the sign of Systray. Also, not connected to device.
    Can you help it. I attached my script here.

    I am working on 64bits machine.

     

    Last edit: ap040 2020-10-21
  • eschwellinger

    eschwellinger - 2020-10-21

    Hi,
    for me your batch works as expected but only if you start a command line as admin:

     
  • ap040 - 2020-10-21

    Hi, I already checked this in admin mode and it works only for stop PLC but it is not started the PLC after it has stopped.

    Is any settings still missing?.

     
  • ap040 - 2020-10-24

    Hello,
    I tried with different scenarios as per my knowledge but I didn't get success for to start/stop the Control RTE services bu using the batch.

    @eschwellinger, Can you provide me the steps to do it?.

     

Log in to post a comment.