#10 Add Device with Task Configuration

Unlicense
nobody
None
2020-02-08
2020-02-08
Ingo
No
# add device
proj.add('PLC', devId)
apps = proj.find('Application', True)
if len(apps) > 0:
    tc = apps[0].create_task_configuration()

# add task
task = tc.create_task('Task')
task.pous.add('PLC_PRG')

Discussion


Log in to post a comment.