Perhaps the following is an undocumented feature… or have I missed something around creation of OPC UA devices through a script?
System is Ignition 8.1.10 running under Ubuntu on an AWS server.
Here’s the story, albeit in point form:
- I managed to create a script to create a set of Modbus OPC UA devices (approx 70) using system.device.addDevice.
- Everything went fine except after creation of the devices none of the script-created devices connected, instead remaining with a “disconnected” status (listed as “Enabled: true”).
- I clicked “Edit” on one, and lo-and-behold: The “enabled” setting was ticked (default is true).
- I carefully checked all other parameters which were correct. Having changed nothing, I clicked “Save changes” down the bottom.
- The device immediately tried to connect and was successful (Status: Connected)
- I then proceeded to simply click “edit” then “Save changes” on each of the sites one-by-one, which all then proceeded to connect (network issues excluded) upon the “Save changes”
So my questions are:
- Why, in spite of being added and enabled by default, did none of these sites try to connect until I simply opened and closed them?
- Is there something I should have perhaps set in the script- nothing seems obvious in the system.device.addDevice parameters or device props?
Thanks,
Patrick.