Configuration Tree |
Home Back Next |
With the Configuration Topic all configurations can be done es the graphical configuration does. The topic can be created with the graphical configuration. If the software is installed on a new system the installer asks for the creation of this topic.
All details for the configuration is available in the Connection subtree. It is separated to
The configuration topic knows some dynamic handling.
Example 1: Read the details of a connection. Write the connection name to Configuration.Connection.Base.ConnectionName and the group name in Configuration.Connection.Base.ConnectionGroup. After this write true to Configuration.Connection.Operations.Read.The job starts the content of the variable Configuration.Connection.Base.Status will change to 6 (running). If the variable changes zu zero the list of connections is read. In Configuration.Connection.Base.ListResults the results will be delivered. In Configuration.Connection.Base.ListResultMaxLen the number of connections will return. In case of an error the variable Configuration.Connection.Base.ListStatus is containing the error code, Configuration.Connection.Base.ListErrorText is containing an error text for this. If this is handled over OPC UA so Configuration.Connection.Base.ListResult is an array with the desired length.
Example 2: Read the list of network adapters. Write the variable Configuration.Operations.Adapter.Start to true. The variable Configuration.Operations.Assistants.Adapter.Status will return 6 (running). If the job finishes without an error the variable will become zero. In Configuration.Operations.Assistants.Adapter.Result the recognized network adapters of the station will return..In case of an error a human readable text will be in Configuration.Operations.Assistants.Adapter.ErrorText, in Configuration.Operations.Assistants.Adapter.Status the corresponding error code is delivered.
Example 3: Read the list of available Rockwell PLC. Please search the network adapters as in example 2. Copy the needed adapter to Configuration.Operations.Assistants.RockwellHost.Configuration.Adapter. Write true to Configuration.Operations.Assistants.RockwellHost.Start. The job will start, The variable Configuration.Operations.Assistants.RockwellHostStatus will change to 6 (running). If the job will finish (in Configuration.Operations.Assistants.RockwellHost.Status zero comes) the found Rockwell controllers will be in Configuration.Operations.Assistants.RockwellHost.Result die Liste der gefundenen Steuerungen. Searching PLC will need time, some PLC will respond very late. So the variable Configuration.Operations.Assistants.RockwellHost.Start need set to true multiple times. If this is handled over OPC UA so Configuration.Operations.Assistants.RockwellHost.Result is an array with the desired length.
Please import the structures from the Configuration topic if your OPC client can handle structures. |