Interface ISCADAPlugin


public interface ISCADAPlugin
Interface to be implemented by all the CPC SCADA plug-ins.
Author:
Ivan Prieto Barreiro
  • Method Summary

    Modifier and Type
    Method
    Description
    computeAddress(String deviceAlias)
    Get the address of a device element (e.g.
    research.ch.cern.unicos.utilities.IPLCMemoryMapper
    Get the PLC memory mapper instance.
    For Siemens only: get the DB number for a given resource name.
    void
    writeInstanceInfo(String theInstanceData)
    Used to write an instance declaration in the WinCC O.A.
  • Method Details

    • computeAddress

      String computeAddress(String deviceAlias)
      Get the address of a device element (e.g. computeAddress("AnalogInput1_MPosR")).
      Parameters:
      deviceAlias - The device alias.
      Returns:
      The requested address if it exists, otherwise the empty String.
    • getPLCMemoryMapper

      research.ch.cern.unicos.utilities.IPLCMemoryMapper getPLCMemoryMapper()
      Get the PLC memory mapper instance.
      Returns:
      The PLC memory mapper instance.
    • writeInstanceInfo

      void writeInstanceInfo(String theInstanceData)
      Used to write an instance declaration in the WinCC O.A. Data file
      Parameters:
      theInstanceData -
    • getResourceAddress

      String getResourceAddress(String resource)
      For Siemens only: get the DB number for a given resource name.

      Example:

       DB_WINCCOA_Address = self.thePlugin.getResourceAddress("DB_WINCCOA")
       thePlcDsIpAddress = "DB"+str(DB_WINCCOA_Address)+".DBD0"
       

      Parameters:
      resource - The resource which address is required.
      Returns:
      The requested DB number for the resource if it exists, otherwise null.