Interface ISCADAPlugin
public interface ISCADAPlugin
Interface to be implemented by all the CPC SCADA plug-ins.
- Author:
- Ivan Prieto Barreiro
-
Method Summary
Modifier and TypeMethodDescriptioncomputeAddress(String deviceAlias) Get the address of a device element (e.g.research.ch.cern.unicos.utilities.IPLCMemoryMapperGet the PLC memory mapper instance.getResourceAddress(String resource) For Siemens only: get the DB number for a given resource name.voidwriteInstanceInfo(String theInstanceData) Used to write an instance declaration in the WinCC O.A.
-
Method Details
-
computeAddress
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
Used to write an instance declaration in the WinCC O.A. Data file- Parameters:
theInstanceData-
-
getResourceAddress
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.
-