EcoStruxure Machine Expert version 1.1 does not support the M258, LMC058 and LMC078 controllers.

Reboot the Controller

Overview

Once there is an instance of the controller object in the script, you can reboot the controller by using a method on that object.

Script Engine Example

from __future__ import print_function
 
def perform_application_login(project):
    app = project.active_application
    onlineapp = online.create_online_application(app)
    onlineapp.login(OnlineChangeOption.Try, True)
 
def main():
    if not projects.primary:
        system.ui.error("No active project.")
        return
 
    perform_application_login(projects.primary)
 
    #find the controller named 'LMC_PacDrive' which shall be rebooted
    controller = projects.primary.find('LMC_PacDrive', True)[0]
 
    #reboot the controller
    controller.reboot_plc()
 
    system.ui.info("Download or OnlineChange complete")
 
 
main()