Examples
  • 10 Oct 2022
  • 1 Minute to read
  • PDF

Examples

  • PDF

Article Summary

The following steps show how to access data coming from an OPC XML server using N3uron's OPC XML Client module.

  • Step 1: Create a module instance (Config => Modules => Model=> New module)

Figure 8- Create a new module(2)Figure 4. Create a new module


  • Step 2: Provide a name for the module (in this case OpcXmlClient), assign the module type (in this case OpcXmlClient), and save the new configuration settings.

Figure 9- Configure the module(1)Figure 5. Configure the module


  • Step 3: Configure the Logger and API sections (the default values are usually sufficient). Save these settings.

  • Step 4: Create a new client (Config => Modules => OpcXmlClient => Model => New client).

Figure 10- Create a new clientFigure 6. Create a new client


  • Step 5: Provide a name for the client (in this case OpcXmlClient01) and configure as appropriate. For this example. the following settings have been used:
    • Connection
      • Host: 10.101.3.210
      • Port: 80
    • Authentication
      • Username: user
      • Password: n3uron

The rest of the parameters have been left as their default values.

Figure 11- Configure the clientFigure 7. Configure the client


  • Step 6: Create a new tag (Config => Tags => Model=> New tag)

Figure 12- Create a new tag(3)Figure 8. Create a new tag


  • Step 7: Provide a name for the tag (in this case Tag) and configure it as appropriate. All details regarding communication should be configured in the Source entry.
  • Source:
    • Enabled: Yes
    • Module Type: OpcXmlClient
    • Module Name: OpcXmlClient 
    • Config:
      • Client: OpcXmlClient01
      • Address: Random.Item1
      • Array: No
      • Index: 0
      • OPC scan rate: 5000

Figure 13- Tag Configuration(1)Figure 9. Tag configuration


  • Step 8: The tag should now be available and displaying as good quality in the Real-Time display.

Figure 14- Values displayed in Real-TimeFigure 10. Values displayed in Real-Time

Note:
Log files for troubleshooting can be downloaded from the WebUI at Diagnostics => This node => Export logs button



Was this article helpful?

What's Next