This example shows how to load or set the IP address of a controller of your choice by executing the script.
from __future__ import print_function
def main():
if not projects.primary:
system.ui.error("No active project.")
return
project = projects.primary
#find the controller by the object name where address should be set and read.
controller = project.find('LMC_PacDrive', True)[0]
#reboot the controller
controller.set_communication_address('192.168.2.25')
#read address back and show it.
print('get_communication_address := ' + controller.get_communication_address())
main()